The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Easy Forum Jump hack
Is it possible to add the View New Posts link to Forum Posts? Our members are requesting it.........
|
#2
|
||||
|
||||
you have to add the option to forumjump template and then edit this part in forumdisplay.php:
PHP Code:
|
#3
|
||||
|
||||
Okay, I added it to the forumjump template with a [gn] variable. What do I pass this on to in the forumdisplay.php?
I tried "getnew" and "newposts", none work: Code:
// jump from forumjump $goto = ''; switch($HTTP_GET_VARS['forumid']) { case 'home': $goto = 'index'; break; case 'search': $goto = 'search'; break; case 'pm': $goto = 'private'; break; case 'gn': $goto = 'getnew'; break; case 'wol': $goto = 'online'; break; case 'sb' : $goto = 'shoutbox'; break; case 'cp': $goto = 'usercp'; break; } if ($goto != '') { if ($HTTP_GET_VARS['s']) { $sessionhash = $HTTP_GET_VARS['s']; } else { $sessionhash = ''; } header("Location: $goto.php?s=$sessionhash"); exit; } // end forumjump redirects |
#4
|
||||
|
||||
Ok, here you go.
Change the template 'forumjump': search for: <option value="search" $frmjmpsel[search]>Search Forums</option> and add after: <option value="getnp" $frmjmpsel[getnp]>Get New Posts</option> Change the file 'forumdisplay.php': Search for: case 'cp': $goto = 'usercp'; break; and add after: case 'getnp': $goto = 'search'; $goto2='&action=getnew'; break; and search for: header("Location: $goto.php?s=$sessionhash"); and replace with: header("Location: $goto.php?s=$sessionhash$goto2"); That should do it. You owe me another one. |
#5
|
||||
|
||||
You da man...You da man...You da man...You da man...You da man...You da man...You da man...You da man...
|
#6
|
||||
|
||||
You can do "Get Today's Posts" the same way. I have them both in my forumjump.
|
#7
|
||||
|
||||
thanks for this action
but i want ask about some thing like this member.php?s=$session[sessionhash]&action=getinfo&userid=$user[userid] exactly in $user[userid] its become as wrong. no forum specefied! how can add it to forum jump? |
#8
|
||||
|
||||
instead of $user[userid] user $bbuserinfo[userid]
|
#9
|
||||
|
||||
would you mind explaining more.
i want to do step by step. thank you for help |
#10
|
||||
|
||||
using boofo's explanations
Ok, here you go. Change the template 'forumjump': search for: <option value="search" $frmjmpsel[search]>Search Forums</option> and add after: <option value="getinfo" $frmjmpsel[getinfo]>Show your Profile</option> Change the file 'forumdisplay.php': Search for: case 'cp': $goto = 'usercp'; break; and add after: case 'getinfo': $goto = 'member'; $goto2='&action=getinfo&userid=$bbuserinfo[userid]'; break; and search for: header("Location: $goto.php?s=$sessionhash"); and replace with: header("Location: $goto.php?s=$sessionhash$goto2"); |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|