PDA

View Full Version : Update on pagejump.


Mark
10-14-2002, 02:57 AM
Well I'm still in need of this and I'm trying to get the source code. Heres what I found so far..


<table cellpadding="0" cellspacing="0" border="0">
<form action="forumdisplay.php" method="get"><tr><td>
<smallfont>
<input type="hidden" name="s" value="$session[sessionhash]">
<input type="hidden" name="daysprune" value="$daysprune">
<b>Forum Jump:</b><br>
<select name="forumid"
onchange="window.location=('forumdisplay.php?s=$session[sessionhash]&daysprune=$daysprune&forumid='+this.options[this.selectedIndex].value)">
<option value="-1" $defaultselected>Please select one:</option>
<option value="-1">--------------------</option>
<option value="pm" $frmjmpsel[pm]>Private Messages</option>
<option value="cp" $frmjmpsel[usercp]>User Control Panel</option>
<option value="wol" $frmjmpsel[wol]>Who's Online</option>
<option value="search" $frmjmpsel[search]>Search Forums</option>
<option value="home" $frmjmpsel[home]>Forums Home</option>
<option value="-1">--------------------</option>

$jumpforumbits
</select>$gobutton
</smallfont>
</td></tr></form>
</table>
<br>

That's the foumjump code, from the forumjump template. Now can we work with this code and get the forum's on there now?

Brad
10-14-2002, 04:20 AM
Heres some quick code, it *works* but its ganna require you to do some work. Basicly for every forum you wish to include you must add a new line like this:

<option value="1">Forum one</option>

Value is the forum id you want the jump to go to when its selected. the "forum one" sould be changed to the forum name that the link will direct someone to. This block of code can be added to any page, anywhere.

<smallfont><b>Forum Jump:</b>
<select name="forumid"
onchange="window.location=('forumdisplay.php?s=$session[sessionhash]&daysprune=$daysprune&forumid='+this.options[this.selectedIndex].value)">
<option value="-1" selected>Please select one:</option>
<option value="1">Forum one</option>
</select></smallfont>

Mark
10-14-2002, 04:26 AM
Uh huh.. let me go try it..

[Edit]
Works.. guess I'll devote an hour tommarrow to this code. Tnanks again Anime-loo. :)