PDA

View Full Version : Alter function of "Today's Posts" to make it "Recent Posts" for 3 days


mdawg
04-04-2015, 05:35 PM
On my old forum vbulletin 3 I had modified the code in the navbar so that I had another function of "Recent Posts" which went back three days.

Is there a way to modify the code in a vbulletin 5.1.6 forum to make "Today's Posts" go back three days instead of just one, and then alter it's name to "Recent Posts"?

Or, to add a whole new function in addition to "Today's Posts" which is the way I had done it on vbulletin 3.

blind-eddie
04-04-2015, 11:53 PM
This is what I use in 3.8.8
search.php?do=getdaily&days=15

Not sure what the 5.0 code is, sorry. Hopefully this can push you in the right direction.

mdawg
04-05-2015, 03:59 PM
What worked is

1) going to Site Builder, Navigation Bar, and choosing the Pencil icon next to its entry. First, changing the name of the module from Today's Posts to Recent Posts.

2) From the target URL the part that says: lastDay
Changing it to lastWeek or lastMonth for longer search periods.

I didn't know how to make it for a period less than a week, but a week is okay.

I changed it to lastWeek, and it works! vb5 is pretty nice because of the Edit Page modular feature.

Mark.B
04-07-2015, 08:35 PM
You can replace lastDay with a number of days. Eg: 4