Log in

View Full Version : Today's Posts


CoreIssue
03-13-2006, 04:25 PM
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
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

$_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
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.


$_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.

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
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.
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.

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.