Register Arama Bugünkü Mesajlar Mark Forums Read

Reply
 
Thread Tools
last 48 hours search
vB.Org Poster
vB.Org Poster has disabled reputation
Kayıt Tarihi: Jul 2018
Mesajlar: 298

Show Printable Version Email this Page
yazar vB.Org Poster 10 Jul 2018, 17:07

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:

Kod Blok Kilitli:      (Kayıt veya giriş yapmalısın)  
Engellenmiş, kayıtlı olmayan veya onay bekleyen kişiler kodlara erişemezler.

insert the 'elseif' statement right between the if and else as such (or just replace it w/ this code):

Kod Blok Kilitli:      (Kayıt veya giriş yapmalısın)  
Engellenmiş, kayıtlı olmayan veya onay bekleyen kişiler kodlara erişemezler.

you are done. if you now visit:

Kod Blok Kilitli:      (Kayıt veya giriş yapmalısın)  
Engellenmiş, kayıtlı olmayan veya onay bekleyen kişiler kodlara erişemezler.

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:
  • log on to your appliance admin: YourSite.com - Build your website easily
  • click 'Styles & Templates' on the left, then 'Style Manager'.
  • on the right hand menu, drop down to 'Edit Templates' and choose 'Go'.
  • double click 'Navigation / Breadcrumb Templates'
  • double click 'navbar'

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:

Kod Blok Kilitli:      (Kayıt veya giriş yapmalısın)  
Engellenmiş, kayıtlı olmayan veya onay bekleyen kişiler kodlara erişemezler.

afterwards add:

Kod Blok Kilitli:      (Kayıt veya giriş yapmalısın)  
Engellenmiş, kayıtlı olmayan veya onay bekleyen kişiler kodlara erişemezler.

enjoy!

Who Dah?
Views: 16
Reply With Quote
Reply

Thread Tools

Şunları Yapabilirsin
Yeni Konu Açmak
Konuya Cevap Yazmak
Eklenti Eklemek
Düzenleme Yapabilmek

Forum Atla


New To Site? Need Help?

All times are GMT +3. The time now is 14:13.

Tasarım Özelliği | Genişlik: Geniş Renk: last 48 hours search last 48 hours search last 48 hours search last 48 hours search last 48 hours search