Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Resources
  • Zetaboards Modifications
  • [SC] Topic Icon Code
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
  • 3
[SC] Topic Icon Code
Tweet Topic Started: Jan 26 2009, 01:37 PM (2,386 Views)
HolySavior Jan 26 2009, 01:37 PM Post #1
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
Done as a request this kind of goes together with having another code that adds [ZB] or [IF] or anything that has [XX] in the beginning of the title.

it will replace that [ZB] or whatever you have with an image
place it at the bottom of the board.
Code:
 

<script type="text/javascript">
/*created by Holysavior of ZBCode */
function imageheader(words,zimg) {
$(".c_cat-title a").each( function() {
var newtitle = this.innerHTML.split("]");
if(newtitle[0].match(''+words+'',"i")) {
$(this).html("<img src='"+zimg+"' alt='' /> "+newtitle[1]);
}
});
}
// functionname ("LETTERS IN THE [ ]","IMAGE YOUR GONNA USE")

imageheader("ZB","http://z3.ifrm.com/48/55/0/p37340/nonewpost.png");
imageheader("IF","http://z3.ifrm.com/48/55/0/p37346/hotnonew.png");
</script>


enjoy!
Edited by Reid, Jun 15 2009, 08:22 PM.
Offline Profile Goto Top
 
PIWYRCOM Jan 26 2009, 02:09 PM Post #2
Member Avatar
PrideInWhatYouRide

Posts:
368
Group:
Member
Member
#53
Joined:
Jul 17, 2008
Coding language
None
So if you have typed [ANYTHING] before the topic title an image will show using this ?
No other code is needed to add the [ANYTHING], right ?
(though you could use the other code to add the button)

you just add more of these to have more choices ?
imageheader("ANYTHING","http://TO IMAGE");


EDIT The [ZB] [IF] code has been released ? I do not see it .


Edited by PIWYRCOM, Jan 26 2009, 02:16 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
 
HolySavior Jan 26 2009, 02:39 PM Post #3
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
not yet that code will be released soon though :P

and yes [ANYTHING] or [anything]
and an image will show as long as you have that in the function
if you use [anything] and expect [nochance] to work it wont unless you have one for that. :P
Offline Profile Goto Top
 
PIWYRCOM Jan 26 2009, 03:05 PM Post #4
Member Avatar
PrideInWhatYouRide

Posts:
368
Group:
Member
Member
#53
Joined:
Jul 17, 2008
Coding language
None
Have added this as a test .

Code:
 

<script type="text/javascript">
function imageheader(words,zimg) {
$(".c_cat-title a").each( function() {
var newtitle = this.innerHTML.split("]");
if(newtitle[0].match(''+words+'',"i")) {
$(this).html("<img src='"+zimg+"' alt='' /> "+newtitle[1]);
}
});
}
// functionname ("LETTERS IN THE [ ]","IMAGE YOUR GONNA USE")

imageheader("HYOSUNG","http://z3.ifrm.com/144/153/0/e255208//e255208.gif");
imageheader("KYMCO","http://z3.ifrm.com/144/153/0/e255211//e255211.gif");
</script>


The problem is the title behind it is now showing the words; undefined

Here is where you can see it; http://piwyr.co.cc/forum/370611/
» 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
 
HolySavior Jan 26 2009, 03:11 PM Post #5
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
its possible that another code or two is conflicting with it. i noticed your board has acouple errors on it. that could be the problem. do me a favor and remove the code.
Offline Profile Goto Top
 
PIWYRCOM Jan 26 2009, 03:15 PM Post #6
Member Avatar
PrideInWhatYouRide

Posts:
368
Group:
Member
Member
#53
Joined:
Jul 17, 2008
Coding language
None
I think I got it.
We already had [KYMCO] as a prefix in older topics , just got one to work as a new topic using a topic auto tool.

Will just go and change the prefix to a new one and see then.
» 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
 
HolySavior Jan 26 2009, 03:15 PM Post #7
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
ok let me know if you have more problems.
Offline Profile Goto Top
 
PIWYRCOM Jan 26 2009, 03:36 PM Post #8
Member Avatar
PrideInWhatYouRide

Posts:
368
Group:
Member
Member
#53
Joined:
Jul 17, 2008
Coding language
None
We took the code out changed the wording, re hosted the gif's but it still does it to all the old topics that had [KYMCO] in them even though the new one says [KYM].

I assume the fact that both have KYM in the wording is what it is.
Wonder if small case letters will work (??).
» 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
 
HolySavior Jan 26 2009, 03:44 PM Post #9
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
yes
Offline Profile Goto Top
 
HolySavior Jan 26 2009, 03:45 PM Post #10
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
if you want just remove the code and i can see if i can fix the problem.
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
  • 3

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