The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Alter function of "Today's Posts" to make it "Recent Posts" for 3 days
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. |
#2
|
||||
|
||||
This is what I use in 3.8.8
Code:
search.php?do=getdaily&days=15 Not sure what the 5.0 code is, sorry. Hopefully this can push you in the right direction. |
#3
|
||||
|
||||
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. |
#4
|
|||
|
|||
You can replace lastDay with a number of days. Eg: 4
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|