Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Resources
  • Zetaboards Modifications
  • Autoselect "no" for moving a topic
Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ;)

Interested in joining? Click here.


If you are already a member of ZBCode, feel free to login right here:

Username:   Password:
Locked Topic
  • Pages:
  • 1
  • 2
Autoselect "no" for moving a topic
Tweet Topic Started: Aug 9 2008, 03:41 PM (1,020 Views)
Nor Aug 9 2008, 03:41 PM Post #1


Posts:
13
Group:
Member
Member
#2
Joined:
Jun 8, 2008
Author: Cleanscript ( Lamonte ) Nor
Name: Auto Select "no" for moving a topic
Description: When you want to move a topic you don't have to select the "no" because it will be auto selected for you. Good for lazy people like me.
Where: Admin Panel -> Themes -> Board Template -> Above the Copyright
Tested In: FF3, IE7, IE6
Code:
 

<script type='text/javascript'>
//zbcode nor
<!--
if( window.location.href.match(/mod\/\?c=29/i) ) {
$("select:eq(1) option:eq(0)").attr("selected","");
$("select:eq(1) option:eq(1)").attr("selected","selected");
}
//-->
</script>
Edited by Reid, Jun 15 2009, 08:24 PM.
Offline Profile Goto Top
 
PIWYRCOM Aug 9 2008, 03:47 PM Post #2
Member Avatar
PrideInWhatYouRide

Posts:
368
Group:
Member
Member
#53
Joined:
Jul 17, 2008
Coding language
None
Where...''below the board'' ?

Just tried it there and its not working.
Edited by PIWYRCOM, Aug 9 2008, 03:53 PM.
» TEST FORUM »
FIND IT HERE !
Spoiler: click to toggle

→ Infinite Results (themes)
→ ZBThemeZone (themes)

→ Big Boards (codes/themes)
→ ZBCodes (codes/themes)
→ The Coding Zone (codes/themes)

→ Code Index ('Official')
→ ZetaDoc's ('Official - How To Info')

Posted Image

Offline Profile Goto Top
 
Nor Aug 9 2008, 03:50 PM Post #3


Posts:
13
Group:
Member
Member
#2
Joined:
Jun 8, 2008
Sorry, above copyright
Edited by Nor, Aug 9 2008, 03:51 PM.
Offline Profile Goto Top
 
PIWYRCOM Aug 9 2008, 03:58 PM Post #4
Member Avatar
PrideInWhatYouRide

Posts:
368
Group:
Member
Member
#53
Joined:
Jul 17, 2008
Coding language
None
Not working there either on our test site.
» TEST FORUM »
FIND IT HERE !
Spoiler: click to toggle

→ Infinite Results (themes)
→ ZBThemeZone (themes)

→ Big Boards (codes/themes)
→ ZBCodes (codes/themes)
→ The Coding Zone (codes/themes)

→ Code Index ('Official')
→ ZetaDoc's ('Official - How To Info')

Posted Image

Offline Profile Goto Top
 
Nor Aug 9 2008, 04:01 PM Post #5


Posts:
13
Group:
Member
Member
#2
Joined:
Jun 8, 2008
Works fine for me:

Admin Panel -> Themes -> Board Template -> Above the Copyright

Tested In: FF3, IE7, IE6
Edited by Nor, Aug 9 2008, 04:03 PM.
Offline Profile Goto Top
 
PIWYRCOM Aug 9 2008, 04:03 PM Post #6
Member Avatar
PrideInWhatYouRide

Posts:
368
Group:
Member
Member
#53
Joined:
Jul 17, 2008
Coding language
None
darn...thats exatlly where we put it and just like its posted, we must have another code conflicting with it.
» TEST FORUM »
FIND IT HERE !
Spoiler: click to toggle

→ Infinite Results (themes)
→ ZBThemeZone (themes)

→ Big Boards (codes/themes)
→ ZBCodes (codes/themes)
→ The Coding Zone (codes/themes)

→ Code Index ('Official')
→ ZetaDoc's ('Official - How To Info')

Posted Image

Offline Profile Goto Top
 
Nor Aug 9 2008, 04:04 PM Post #7


Posts:
13
Group:
Member
Member
#2
Joined:
Jun 8, 2008
Could be another code conflicting with it. Do you have "select" inputs on the page besides the 2 primary selection boxes?
Offline Profile Goto Top
 
Ryura Aug 9 2008, 04:34 PM Post #8
Member Avatar


Posts:
38
Group:
Member
Member
#11
Joined:
Jul 8, 2008
Coding language
Ruby on Rails
Might be running before the selects are available, wrap in document ready function I'd say.
Offline Profile Goto Top
 
Nor Aug 9 2008, 06:07 PM Post #9


Posts:
13
Group:
Member
Member
#2
Joined:
Jun 8, 2008
Thats the funny part, it can't run before the selects are available, because that JavaScript code will load last in the document, making that being the last priority for the HTML.

;)
Offline Profile Goto Top
 
Jinx Nov 7 2008, 03:45 PM Post #10
Member Avatar
Queen of Babble

Posts:
40
Group:
Member
Member
#312
Joined:
Jul 26, 2008
Coding language
HTML/CSS
Woo! Perfect :)
Born to blossom, bloom to perish.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Zetaboards Modifications · Next Topic »
Locked Topic
  • Pages:
  • 1
  • 2

Track Topic · E-mail Topic Time: 7:51 PM Jul 10
Hosted for free by ZetaBoards · Privacy Policy