Announcement

Collapse
No announcement yet.

[3.5] Add 'View thread in Archive' options to thread tools dropdown

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

  • [3.5] Add 'View thread in Archive' options to thread tools dropdown

    [3.5] Add 'View thread in Archive' options to thread tools dropdown

    This small template modification shows how you can add another option like 'View thread in Archive' to the thread tools dropdown box above a thread.

    Instructions:

    * Add a new phrase called varname 'thread_archive' to phrase-type 'Show Thread', with text 'View thread in Archive'.

    * Open the template 'SHOWTHREAD'

    * Find this code:
    Code:
     <tr>
    <td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/printer.gif" alt="$vbphrase[show_printable_version]" /> <a href="printthread.php?$session[sessionurl]t=$threadid" accesskey="3">$vbphrase[show_printable_version]</a></td>
    </tr>
    * Above that code, on a new line, add this code:
    Code:
    <if condition="$vboptions['archiveenabled']">
    <tr>
    <td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/thread_archive.gif" alt="$vbphrase[thread_archive]" /> <a href="archive/index.php?t=$threadid">$vbphrase[thread_archive]</a></td>
    </tr>
    </if>
    * Save the template

    * Upload the thread_archive.gif image to your forum/images/buttons/* directory

    Screenshot:

    Enjoy!
    Last edited by Floris; Mon 18th Jul '05, 11:34am.
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X