vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Today's Posts (https://vborg.vbsupport.ru/showthread.php?t=110252)

CoreIssue 03-13-2006 04:25 PM

Today's Posts
 
I am still getting the hang of the vB templates and such.

Is there any where to change the default Today's Posts displayed from 24 hours or whatever the current setting is to 48 or such?

Thanks!

merk 03-13-2006 08:36 PM

forum/search.php?do=getdaily&days=2

CoreIssue 03-13-2006 09:40 PM

Quote:

Originally Posted by merk
forum/search.php?do=getdaily&days=2

Thanks. In tracking that by search back to the old topic I agree with the admin who said it is too complex for a lot of users. And if you don't do them all in one session they are marked read and not displayed again.

And the suggestion at the bottom is not in the templates for 3.5.4.

I got around it on phpBB by combining two mods that allowed me to select the most current x posts to display in a News and in a Topic listings.

Should be somewhere to change the get function look back time.

Thanks again.

I did some more digging. Time will tell if this is an okay partial solution.

In search.php find

Code:

  $_REQUEST['do'] = 'getdaily';
  if ($vbulletin->GPC['days'] < 1)
  {
  $vbulletin->GPC['days'] = 1;
  }
  $datecut = TIMENOW - (24 * 60 * 60 * $vbulletin->GPC['days']);

Change the 1 in = 1; to however many days you wish displayed.

I would still prefer a function for show the last X new posts. Get rid of the time element altogether.

But a beginning.

Grrr. What to blazes!

That was not a double post. Should not have been merged.

Will it merge this as well?

merk 03-14-2006 12:15 AM

Quote:

Originally Posted by CoreIssue
Thanks. In tracking that by search back to the old topic I agree with the admin who said it is too complex for a lot of users. And if you don't do them all in one session they are marked read and not displayed again.

This is incorrect for vBulletin 3.5 - a thread only disappears from the search pages once you've visited it. Today's Posts does not behave like this and they will still appear even if read.


Quote:

Code:

  $_REQUEST['do'] = 'getdaily';
  if ($vbulletin->GPC['days'] < 1)
  {
  $vbulletin->GPC['days'] = 1;
  }
  $datecut = TIMENOW - (24 * 60 * 60 * $vbulletin->GPC['days']);

Change the 1 in = 1; to however many days you wish displayed.
To avoid file modifications you can just replace $datecut with a new value in the search_getnew_start plugin.

Quote:

Grrr. What to blazes!

That was not a double post. Should not have been merged.

Will it merge this as well?
It is a pathetic modification that is aparently necessary to stop people bumping. I totally disagree, but anyway, thats what the admins of this forum believe.

CoreIssue 03-14-2006 12:51 AM

Quote:

This is incorrect for vBulletin 3.5 - a thread only disappears from the search pages once you've visited it. Today's Posts does not behave like this and they will still appear even if read.
I stand corrected.

But many users will not understand using the search function. Makes admining non tech boards interesting at times.
Quote:

To avoid file modifications you can just replace $datecut with a new value in the search_getnew_start plugin.
I am working my way up to be more confident with what I alter where. Not there yet on understanding hooks.
Quote:

It is a pathetic modification that is aparently necessary to stop people bumping. I totally disagree, but anyway, thats what the admins of this forum believe.
Hmmm. I understand stopping people from bumping. But I don't like it as here, where I was trying to add comments to existing post and not to confuse others reading.

Oh, well.


All times are GMT. The time now is 01:04 PM.

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.01031 seconds
  • Memory Usage 1,729KB
  • 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_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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