vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How do I display New Posts by X time? (https://vborg.vbsupport.ru/showthread.php?t=262356)

dr1 04-21-2011 02:32 AM

How do I display New Posts by X time?
 
I know how to add a drop down to the menu bar, but not sure the right paramaters for the URL to show the following:

- All new posts since last visit
- All new posts in past 6 hrs
- All new posts in past 1 day
- All new posts in past 3 days

Thanks.

Lynne 04-21-2011 02:38 AM

New Posts in the Last 4 Days - change 4 to whatever you want:
PHP Code:

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

New posts since last visit:
PHP Code:

search.php?do=getnew&contenttype=vBForum_Post 


dr1 04-21-2011 02:46 AM

4 hrs would be something like below? Thanks.

search.php?do=getdaily&hours=4&contenttype=vBForum _Post

westy543 04-21-2011 02:57 AM

How do I change the settings of "new posts" tab so that it displays topics that have been commented on in the last 4 days??

Edit: I actually wont a button or something that will show active topics. That would be heaps handier.

Lynne 04-21-2011 03:03 AM

Quote:

Originally Posted by dr1 (Post 2186851)
4 hrs would be something like below? Thanks.

search.php?do=getdaily&hours=4&contenttype=vBForum _Post

No. hours is not an variable that may be used. 4 hours is 1/6 of a day or .17 or so.

Quote:

Originally Posted by westy543 (Post 2186858)
How do I change the settings of "new posts" tab so that it displays topics that have been commented on in the last 4 days??

Edit: I actually wont a button or something that will show active topics. That would be heaps handier.

What is an 'active' topic? I would think it would be threads with new content which is what What's New shows. If it's something else, then define it please.

westy543 04-21-2011 03:10 AM

<a href="http://www.clanz.com.au/forums/search.php?search_id=active_topics&sid=6c9e1c9dcc5 3b8a07ab2561103cf3123" target="_blank">http://www.clanz.com.au/forums/searc...b2561103cf3123</a>

Ok for instance that link is a gaming forum, not mine, just an example and that section shows all active topics. Its topics that are used the most and is heaps easier for finding threads, rather then going back through the other way to find a thread.

Edit: If you click forums on clanz it will take you back to yur normal page like vb4 does although clanz has a "active topics" button. Once you click that you will get a better picture of what it does.

Lynne 04-21-2011 03:49 AM

How is that different than What's New? It looks like a list of threads that were most recently replied to which is what What's New is.

westy543 04-21-2011 03:53 AM

Quote:

Originally Posted by Lynne (Post 2186871)
How is that different than What's New? It looks like a list of threads that were most recently replied to which is what What's New is.

Its actually a heap different because once you read those threads they don't just disappear and then when you wanna comment in them the next day or something they are still in active topics not like they do in "whats new".

Boofo 04-21-2011 04:18 AM

1 Attachment(s)
You mean something like this?

westy543 04-21-2011 04:39 AM

Quote:

Originally Posted by Boofo (Post 2186879)
You mean something like this?

Yeah that is correct.


All times are GMT. The time now is 11:39 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.01034 seconds
  • Memory Usage 1,737KB
  • 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
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete