PDA

View Full Version : at special request the active topics drop down was revived..



Silver_2000
01-21-2006, 09:34 PM
I didnt use it and didnt miss it ...
Its back now
Doug

Silver_2000
01-21-2006, 09:35 PM
here is code for later use
active topics popup



after this in the navbar template:

Code:
<!--<td class="vbmenu_control"><a href="$vboptions[forumhome].php?$session[sessionurl]">Home</a></td>-->
I added this:
Code:
<if condition="$show['searchbuttons']">
<td id="navbar_activetopics" class="vbmenu_control">
<a href="search.php?$session[sessionurl]&do=getdaily&days=1">Active Topics</a>
<script type="text/javascript">
vbmenu_register("navbar_activetopics");
</script>
</td>
</if>
Then farther down, where it has:
Code:
<if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->

<if condition="$show['searchbuttons']">
Add this after that (feel free to add/remove/change the menu options to suit your needs. days=30 for Last Month, etc):

Code:
<div class="vbmenu_popup" id="navbar_activetopics_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">Active Topics</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]&do=getdaily&days=1">Last Day</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]&do=getdaily&days=2">Last 2 Days</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]&do=getdaily&days=3">Last 3 Days</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]&do=getdaily&days=4">Last 4 Days</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]&do=getdaily&days=5">Last 5 Days</a></td>
</tr>
</table>
</div>