Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 03-13-2006, 04:25 PM
CoreIssue CoreIssue is offline
 
Join Date: Jan 2006
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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!
Reply With Quote
  #2  
Old 03-13-2006, 08:36 PM
merk merk is offline
 
Join Date: Nov 2001
Location: Canberra, Australia
Posts: 601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

forum/search.php?do=getdaily&days=2
Reply With Quote
  #3  
Old 03-13-2006, 09:40 PM
CoreIssue CoreIssue is offline
 
Join Date: Jan 2006
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #4  
Old 03-14-2006, 12:15 AM
merk merk is offline
 
Join Date: Nov 2001
Location: Canberra, Australia
Posts: 601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 03-14-2006, 12:51 AM
CoreIssue CoreIssue is offline
 
Join Date: Jan 2006
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:57 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03694 seconds
  • Memory Usage 2,200KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete