MyBB Community Forums

Full Version: Edit the amoiunt of time for pages to show up in 'view todays posts'
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey, I had a quick question about mybb 1.4.
I want to edit the time that a thread will show up on the view todays posts page. I looked through the general mybb settings and could not find it, so I assume i'm either blind or I need to edit the templates. How would I accomplish this?

Much appreciated,
Arsenic

http://leetcoders.org
there is no setting for it. its hardcoded in search.php in the section where

$mybb->input['action'] == 'getnew'
Alright, good to know. I wouldnt have gussed search.php, thanks. How would I manipulate that, to say something like "get new posts" and then set a variable saying that 'new posts' are posts that have been made in the past 2 or 3 days or so?
sorry, that should have been look for "getdaily", but that does not matter,.

just edit the "header_welcome..." templates and add "&days=X" after "action=getdaily" obviously changing X to the number of days you want
Works perfectly, Thank you so much! Smile