vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Active Threads in Navbar (https://vborg.vbsupport.ru/showthread.php?t=279868)

Bulent Tekcan 03-10-2012 05:07 PM

Active Threads in Navbar
 
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 ?


Code:

<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

Quote:

Originally Posted by Lynne (Post 2308617)
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:

Code:

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

Bulent Tekcan 04-28-2012 06:12 PM

Quote:

Originally Posted by Lynne (Post 2324353)
Here's a link for all new posts in the last 4 days - modify to suite your needs:

Code:

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.


All times are GMT. The time now is 02:19 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00945 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete