View Full Version : "getdaily" and "getnew" in forum jump
Salazar
06-08-2003, 01:16 AM
Hello everybody!
Is there a way to put search.php?s=&action=getdaily and search.php?s=&action=getnew into the forum jump? And if so... how is it done?
Salazar
Erwin
06-08-2003, 08:00 AM
Yes you can, because I've done it.
Do this:
1) Open the template "forumjump", and find:
<option value="search" $frmjmpsel[search]>Search Forums</option>
<option value="home" $frmjmpsel[home]>Forums Home</option>
Underneath, ADD:
<option value="getnp" $frmjmpsel[getnp]>Get New Posts</option>
<option value="gettp" $frmjmpsel[gettp]>Get Past 24hr Posts</option>
2) Then, edit forumdisplay.php
Find:
case 'home': $goto = 'index'; break;
case 'search': $goto = 'search'; break;
Below, ADD:
case 'getnp': $goto = 'search'; $goto2='?action=getnew'; break;
case 'gettp': $goto = 'search'; $goto2='?action=getdaily'; break;
3) Then in the same file, find:
header("Location: $goto.php?s=$sessionhash");
REPLACE with:
header("Location: $goto.php$goto2");
Done! :)
Salazar
06-08-2003, 09:08 AM
Thank you very much! :)
Salazar
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.