Announcement

Collapse
No announcement yet.

Help with IF EXIST in template

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help with IF EXIST in template

    Is it possible to add some code to a template that will display a link to a file that contains the current thread or forum ID in it's filename. If the file does not exist, nothing is displayed.

    Here is an approximate example of the logic I am seeking:
    Code:
    IF EXIST "/somewhere/[ThreadID].html" 
    <a href="/somewhere/[ThreadID].html"> More information on [ThreadTitle]</a>
    </IF>
    Of course, the coding syntax and variable names for ThreadID and ThreadTitle in the above are probably not correct.

    How would you code this for the SHOWTHREAD template?

    Thanks!

  • #2
    Originally posted by ataraxia
    Is it possible to add some code to a template that will display a link to a file that contains the current thread or forum ID in it's filename. If the file does not exist, nothing is displayed.

    Here is an approximate example of the logic I am seeking:
    Code:
    IF EXIST "/somewhere/[ThreadID].html" 
    <a href="/somewhere/[ThreadID].html"> More information on [ThreadTitle]</a>
    </IF>
    Of course, the coding syntax and variable names for ThreadID and ThreadTitle in the above are probably not correct.

    How would you code this for the SHOWTHREAD template?

    Thanks!
    Not in the templates, you will need to hack, i suggest asking over at vBulletin.org.

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X