Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Resources
  • Code Requests
  • Completed Requests
  • [Completed] [ZB] Script repair
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
[Completed] [ZB] Script repair
Tweet Topic Started: Sep 16 2009, 01:45 PM (402 Views)
Ava Sep 18 2009, 06:14 AM Post #11
Member Avatar
A.V.A

Posts:
276
Group:
Member
Member
#3,254
Joined:
Jun 25, 2009
RedBldSandman
Sep 17 2009, 09:24 AM
When posting a topic as a guest, the url doesn't contain "f=FORUM NUMBER", so you have to use a different code. Use this:
Code:
 
<script type="text/javascript">
if (location.href.match(/post/i) && $("#nav li:last").prev().prev().text()=="FORUM NAME") {
$(".c_desc:contains('Topic Title')").text("NEW TEXT")
}
</script>
This code didn't work for me.
Edited by Ava, Sep 18 2009, 06:15 AM.
Posted Image
Offline Profile Goto Top
 
RedBldSandman Sep 18 2009, 02:38 PM Post #12
Member Avatar
ZIPPY!

Posts:
482
Group:
Coding Staff
Member
#2,122
Joined:
Jan 25, 2009
Where did you put it in the board template and can I have a link to your board? xD
Posted Image
"To iterate is human, to recurse divine."

Offline Profile Goto Top
 
Reid Sep 21 2009, 08:55 AM Post #13
Member Avatar
What? The land of the free? Whoever told you that was your enemy.

Posts:
1,790
Group:
Distinguished Coder
Member
#148
Joined:
Jul 20, 2008
Hmm...
Code:
 
if (document.getElementsByName('f')[0].value == 123456789) {
$(".c_desc:contains('Topic Title')").text("NEW TEXT");
}
Simply change the ridiculously long number to the forum number you want... and tell me if that works.
The Resource Board
Offline Profile Goto Top
 
Ava Sep 21 2009, 09:30 AM Post #14
Member Avatar
A.V.A

Posts:
276
Group:
Member
Member
#3,254
Joined:
Jun 25, 2009
Thanks Reid! This works perfectly fine.
Posted Image
Offline Profile Goto Top
 
Reid Sep 21 2009, 07:48 PM Post #15
Member Avatar
What? The land of the free? Whoever told you that was your enemy.

Posts:
1,790
Group:
Distinguished Coder
Member
#148
Joined:
Jul 20, 2008
You're welcome.
See? We can read thoughts too. ;)

Your request has been completed, and we're moving it to the correct forum. We hope it works for you; if it doesn't, feel free to post another request topic in the requests forum. Just remember: read the rules first!

Thanks,
The ZBCode Staff
The Resource Board
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
DealsFor.me - The best sales, coupons, and discounts for you
« Previous Topic · Completed Requests · Next Topic »
Locked Topic
  • Pages:
  • 1
  • 2

Track Topic · E-mail Topic Time: 2:27 PM Jul 11
Hosted for free by ZetaBoards · Privacy Policy