![]() |
Easy Forum Jump hack
Is it possible to add the View New Posts link to Forum Posts? Our members are requesting it.........
|
you have to add the option to forumjump template and then edit this part in forumdisplay.php:
PHP Code:
|
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 |
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. :) |
You da man...You da man...You da man...You da man...You da man...You da man...You da man...You da man...:D
|
You can do "Get Today's Posts" the same way. I have them both in my forumjump. :)
|
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? |
instead of $user[userid] user $bbuserinfo[userid]
|
would you mind explaining more.
i want to do step by step. thank you for help |
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"); |
thank you very much :D
its work so fine |
You're welcome :)
|
:(
its not work ! its become as unknoiwn user and not has profile. lol:) |
oh, i see, can'T work, global.php has not been required in forumdisplay.php before this line...
change this: $goto2='&action=getinfo&userid=$bbuserinfo[userid]'; break; into this: $goto2='&action=getinfo&userid=$bbuserid'; break; and after </select> add <input type=hidden name="bbuserid" value="$bbuserinfo[userid]"> i think then it should work.. |
thank you very much:)
I will try do it & hope works:) thank you again:) |
All times are GMT. The time now is 05:02 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|