PDA

View Full Version : Active Threads in Navbar


Bulent Tekcan
03-10-2012, 05:07 PM
Hello,

I was use this code for my vB3.8.4, but I need samething on vB4.1.1. Is it possible to adaptation for 4.1.11 ?


<div class="vbmenu_popup" id="navbar_activetopics_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[active_topics]</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&minutes=15">$vbphrase[active_last_15_minutes]</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&minutes=45">$vbphrase[active_last_45_minutes]</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&hours=1">$vbphrase[active_last_1_hour]</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&hours=4">$vbphrase[active_last_4_hour]</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&hours=6">$vbphrase[active_last_6_hour]</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&hours=12">$vbphrase[active_last_12_hour]</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]&do=getdaily&days=1">$vbphrase[active_last_day]</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]&do=getdaily&days=3">$vbphrase[active_last_3day]</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]&do=getdaily&days=7">$vbphrase[active_last_1_week]</a></td>
</tr>
</table>
</div>


This code looks like that

Active Threads
Last 15 Minutes
Last 45 Minutes
Last 1 Hour
Last 4 Hour
Last 6 Hour
Last 12 Hour
Last 1 Day
Last 3 Day
Last 1 Week

Regards,

Lynne
03-11-2012, 06:48 PM
There are articles on how to add navtabs and dropdowns. So, you can go pick an article and then adjust your html to work with the new vb4 method of adding tabs.

Bulent Tekcan
04-28-2012, 09:34 AM
There are articles on how to add navtabs and dropdowns. So, you can go pick an article and then adjust your html to work with the new vb4 method of adding tabs.

How to get time based search with vb4 ? Like that

Last 15 Minutes
Last 45 Minutes
Last 1 Hour
Last 4 Hour
Last 6 Hour
Last 12 Hour
Last 1 Day
Last 3 Day
Last 1 Week


What is the code for that ? Because old code is not work and get everytime last day result.

Regards,

Lynne
04-28-2012, 04:20 PM
Here's a link for all new posts in the last 4 days - modify to suite your needs:

search.php?do=getdaily&days=4&contenttype=vBForum_Post

Bulent Tekcan
04-28-2012, 06:12 PM
Here's a link for all new posts in the last 4 days - modify to suite your needs:

search.php?do=getdaily&days=4&contenttype=vBForum_Post

Thanks...Is it possible to hours or minutes and also latest threads since last visit ? Because under 1 day most important to us because our forum is very busy and post a lot of message.

Lynne
04-29-2012, 03:09 AM
You will need to modify that part of the code in the search.php code since if you have it set to less than 1, then it defaults to 1.