Latest Active Threads on What's Going On
This template modification will add the latest x active threads on your forumhome 'What's going on' box. You can change the number from 10 to anything you want. The threads link to the full thread, and the header links to getnew.
Step #1
Admin Control Panel > vBulletin Options > vBulletin Options > External Data Provider > Enable External Javascript > Make sure this is set to 'Yes'.
Step #2
Admin Control Panel > Styles & Templates > Style Manager > Dropdown: Edit Templates > Select the 'Forum Home Templates Group' and click on the 'Expand / Collapse' button to expand it > Select the template 'FORUMHOME' and click on the 'Customize' (or 'Edit') button to open it.
Find this code:
and above this code, on a new line, add the following code:
and click the 'save' button to save the template.
Step #3
Admin Control Panel > Languages & Phrases > Phrase Manager > 'Add New Phrase' button > and add a new phrase:
Phrase Type: GLOBAL
Varname: latest_active_threads
Text: Latest Active Threads
(and add any translations if required)
Press the 'save' button.
You're done, that's it.
This template modification will add the latest x active threads on your forumhome 'What's going on' box. You can change the number from 10 to anything you want. The threads link to the full thread, and the header links to getnew.
Step #1
Admin Control Panel > vBulletin Options > vBulletin Options > External Data Provider > Enable External Javascript > Make sure this is set to 'Yes'.
Step #2
Admin Control Panel > Styles & Templates > Style Manager > Dropdown: Edit Templates > Select the 'Forum Home Templates Group' and click on the 'Expand / Collapse' button to expand it > Select the template 'FORUMHOME' and click on the 'Customize' (or 'Edit') button to open it.
Find this code:
Code:
<if condition="$show['loggedinusers']">
Code:
<if condition="$vbulletin->options['externaljs']"> <!-- show latest active threads --> <tbody> <tr> <td class="thead" colspan="2"> <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_external')"><img id="collapseimg_forumhome_external" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_external].gif" alt="" border="0" /></a> <a href="search.php?$session[sessionurl]do=getnew">$vbphrase[latest_active_threads]</a> </td> </tr> </tbody> <tbody id="collapseobj_forumhome_external" style="$vbcollapse[collapseobj_forumhome_external]"> <tr> <td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="" border="0" /></td> <td class="alt1" width="100%"> <div class="smallfont"> <script type="text/javascript" src="external.php?type=js"></script> <script language="" type="text/javascript"> <!-- for (i = 0; i < 10; i++) { document.writeln("<img class=\"inlineimg\" src=\"$stylevar[imgdir_button]/lastpost.gif\" alt=\"\" border=\"0\" /> <a href=\"showthread.php?t="+threads[i].threadid+"\">"+threads[i].title+"</a> <span class=\"time\">($vbphrase[posted_by]: "+threads[i].poster+")</span><br />"); } //--> </script> </div> </td> </tr> </tbody> <!-- show latest active threads --> </if>
Step #3
Admin Control Panel > Languages & Phrases > Phrase Manager > 'Add New Phrase' button > and add a new phrase:
Phrase Type: GLOBAL
Varname: latest_active_threads
Text: Latest Active Threads
(and add any translations if required)
Press the 'save' button.
You're done, that's it.
Comment