Welcome, Guest. Please Login or Register.
May 06, 2024, 06:42:44 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  [CODE] Adding the Go Button to Jump To « previous next »
Pages: [1] Reply Ignore Print
Author Topic: [CODE] Adding the Go Button to Jump To  (Read 4675 times)
iamdamnsam
Full Member
***
Posts: 225


RamchargerCentral.Com

WWW
[CODE] Adding the Go Button to Jump To
« on: May 11, 2002, 02:15:39 AM »
Reply with quote

don't know if this has been posted already but I have seen alot of posts asking to do this.

Open Subs.php and find
$selecthtml .= "</select>";
After that add this
$selecthtml .= "<input type=button value=\"go\" onclick=\"if(values.options[values.selectedIndex].value) window.location.href='$scripturl' + values.options[values.selectedIndex].value;\">";
Logged

Thunderace
Full Member
***
Posts: 211


I'm a llama!

Re:[CODE] Adding the Go Button to Jump To
« Reply #1 on: May 11, 2002, 07:40:25 AM »
Reply with quote

Doesn't work m8
Logged
Dude
Guest
Re:[CODE] Adding the Go Button to Jump To
« Reply #2 on: May 11, 2002, 08:37:59 AM »
Reply with quote

Yes it does.  ;D
« Last Edit: May 12, 2002, 03:52:43 AM by Dude » Logged
boyzie
Jr. Member
**
Posts: 63


Ya ever think your goin round in circles?

Re:[CODE] Adding the Go Button to Jump To
« Reply #3 on: May 11, 2002, 03:19:25 PM »
Reply with quote

Quote from: Thunderace on May 11, 2002, 07:40:25 AMDoesn't work m8
Worked for me...
Logged

tore-
Sr. Member
****
Posts: 291


I love YaBB SE!

Re:[CODE] Adding the Go Button to Jump To
« Reply #4 on: May 11, 2002, 06:25:35 PM »
Reply with quote

url to your boards?
Logged

Star wars rules!
iamdamnsam
Full Member
***
Posts: 225


RamchargerCentral.Com

WWW
Re:[CODE] Adding the Go Button to Jump To
« Reply #5 on: May 12, 2002, 01:12:33 AM »
Reply with quote

Quote from: Dude on May 11, 2002, 08:37:59 AMOn my board I replaced
   $selecthtml .= "</select>";
   return $selecthtml;
with
$selecthtml .= "<input type=button value=\"go\" onclick=\"if(values.options[values.selectedIndex].value) window.location.href='$scripturl' + values.options[values.selectedIndex].value;\">";
and it seems to work fine.

you need to close your select statement, </select>, otherwise you will have probs with picky browsers.

As for the guy who it doesn't work for, I see no reason why it doesn't work.  Works for me.
Logged

Dude
Guest
Re:[CODE] Adding the Go Button to Jump To
« Reply #6 on: May 12, 2002, 03:49:50 AM »
Reply with quote

Quote from: iamdamnsam on May 12, 2002, 01:12:33 AMyou need to close your select statement, </select>, otherwise you will have probs with picky browsers.

I knew that.  :-[ Can I delete my post and pretend it never happened? If you will look at my post again you will see I also replaced the return statement. Since it's been working on my board now for over a week it's apparent I screwed up the post.  :-[ Would you mind deleting out the code you quoted? I'm going to delete mine out.  :(

Url to my board
Logged
boyzie
Jr. Member
**
Posts: 63


Ya ever think your goin round in circles?

Re:[CODE] Adding the Go Button to Jump To
« Reply #7 on: May 12, 2002, 10:41:16 PM »
Reply with quote

Quote from: tore- on May 11, 2002, 06:25:35 PMurl to your boards?

http://www.boyzie.gametribe.net/boyzie/index.php
Logged

Thunderace
Full Member
***
Posts: 211


I'm a llama!

Re:[CODE] Adding the Go Button to Jump To
« Reply #8 on: May 13, 2002, 07:57:45 AM »
Reply with quote

Correction, worked fine, I was having a cave in  ;D
Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:[CODE] Adding the Go Button to Jump To
« Reply #9 on: May 14, 2002, 06:59:39 PM »
Reply with quote

iamdamnsam: What exactly did you change?  The first post sounds like you only added code after a certain part but then in your latest post you said you replaced some...
Logged

tore-
Sr. Member
****
Posts: 291


I love YaBB SE!

Re:[CODE] Adding the Go Button to Jump To
« Reply #10 on: May 14, 2002, 07:05:58 PM »
Reply with quote

i just cant se what changes this mod does
Logged

Star wars rules!
Dude
Guest
Re:[CODE] Adding the Go Button to Jump To
« Reply #11 on: May 14, 2002, 07:15:31 PM »
Reply with quote

Quote from: Jeff Lewis on May 14, 2002, 06:59:39 PMiamdamnsam: What exactly did you change?  The first post sounds like you only added code after a certain part but then in your latest post you said you replaced some...

I can't speak for iamdamnsam but his last post was referring to my braindead post. I have no idea what I was thinking of, but you don't need to replace anything. Just add the code where iamdamnsam said to.

And all this mod does is add a go button to the jump menu.
Logged
iamdamnsam
Full Member
***
Posts: 225


RamchargerCentral.Com

WWW
Re:[CODE] Adding the Go Button to Jump To
« Reply #12 on: May 14, 2002, 07:20:19 PM »
Reply with quote

Correct there is no replacing, just adding.

This puts the "Go" button back to the Jump To box.  
Logged

Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [CODE] Adding the Go Button to Jump To « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.140 seconds with 19 queries.