![]() |
|
Article Options |
last 48 hours search
by
![]() what this hack does: shows the last 48 hours worth of posts difficulty to install (scale of 1 to 10, 10 being the hardest): 3 files to mod: 1 templates to mod: 1 i take no responsibility if this breaks your forums. this probably violates the vB warranty due to a file modification. u break it, u buy it, yaddi yaddi. don't do this hack... having said that... ![]() so the 'New Posts' link doesn't always work... u sign on, u leave w/out reading all the messages, come back, some are marked as read and don't show up on 'New Posts'... things of that nature. so on our old forum, pnphpbb, i added a search function to show just the last 48 hours of posts. once we migrated to vB, this had to be the feature i got the most PM's on that my peeps missed!!! ok, so it's a very easy hack. probably violates a vB warranty, so u break it, u buy it. i take no responsibility, yaddi yaddi.. here we go! file: forums/search.php find:
insert the 'elseif' statement right between the if and else as such (or just replace it w/ this code):
you are done. if you now visit:
it will show u the last 48 hours worth of posts. (it should be pretty obvious how to modify it to show the last 7 days or whatever u want. we like 48 hours...) so now, we added a link to that next to 'New Posts' on our NavBar... to do this, edit your 'navbar' template. for those that dont' know how:
somewhere in here, add a link to your new search function. in our case, we put it next to 'New Posts'. to do this, find:
afterwards add:
enjoy! ![]() Who Dah? No members have liked this post.
|
||||||||||||||||||||
Views: 2451
|
Comments |
#2
|
||||
|
||||
whoa.. try
search.php?do=getdaily&days=2
__________________
Looking for ImpEx?
No members have liked this post.
|
#3
|
||||
|
||||
Originally Posted by Zachery
Just what I was going to say ....
![]()
__________________
Former vBulletin.org Staff Member
Cable Forum Please do not PM me about custom work - I no longer undertake any. Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum. No members have liked this post.
|
#4
|
|||
|
|||
(in joking voice)
i don't want to play w/ u anymore... :P oh man - i seriously overlooked this functionality... i'll remove the hack, heh! oh, and thx btw! ![]() No members have liked this post.
Last edited by whodah; 02 May 2005 at 16:57. Reason: Automerged Doublepost |
![]() |
«
Previous Article
|
Next Article
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Article Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 16:24.