| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| [ C ] Can't get the different forum marker code to work; What am I doing wrong? | |
|---|---|
| Tweet Topic Started: Aug 12 2010, 07:46 AM (757 Views) | |
| bigmow | Aug 12 2010, 07:46 AM Post #1 |
|
Member
![]() ![]() ![]()
|
Board Address: http://s4.zetaboards.com/Wecanpop/index/ Board Software: Zetaboards Description: I am currently fixing up the layout on my board and would really like different forum markers for each forum. I found this link (http://resources.zetaboards.com/topic/5067825/1/) on here and have tried everything in that post, but it isn't working for me. I also tried this one http://s8.zetaboards.com/TrekSupport/topic/107235/1/ but that didn't work either. What exactly am I doing wrong? Thank you for your help. : ) |
![]() |
|
| Cory | Aug 12 2010, 07:53 AM Post #2 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Please post the code you tried to use. The second one is for InvisionFree only. |
![]() |
|
| bigmow | Aug 12 2010, 07:56 AM Post #3 |
|
Member
![]() ![]() ![]()
|
okay. I've tried using both this one <script type="text/javascript"> $("#forum-ID .c_mark:has('a') a").html('<img src="URL_TO_UNREAD_MARKER" alt="No new posts" />'); $("#forum-ID .c_mark:not(':contains('a')").html('<img src="URL_TO_READ_MARKER" alt="New posts" />'); </script> and this one <script type="text/javascript"> //<![CDATA[ var markers = { defaults : ["http://z3.ifrm.com/322/12/0/f325695/No_New.png","http://z3.ifrm.com/322/12/0/f325694/New.png"], change : function(id,images){ var current = $("tr.forum#"+id).find("td.c_mark img:first"); current.attr("src",current.attr("src") == markers.defaults[0] ? images[0] : images[1]); } } with(markers){ /* add your code under this */ } //]]> </script> Am I maybe pasting it in the wrong place? |
![]() |
|
| Cory | Aug 12 2010, 08:19 AM Post #4 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Try this version. |
![]() |
|
| bigmow | Aug 12 2010, 08:28 AM Post #5 |
|
Member
![]() ![]() ![]()
|
hm, I'm trying it, but I still can't seem to get it to work. This is what I'm pasting in. <script type="text/javascript" > /* Coded by Nicolas of ZNR and HNZ */ /* <![CDATA[ */ function newmarker(forumname,newposts,nonew) { $(".c_forum strong a:contains("+forumname+")").closest('td').prev().children('img').attr('src',nonew); $(".c_forum strong a:contains("+forumname+")").closest('td').prev().children('a').children('img').attr('src',newposts); } newmarker('3078867','http://i37.tinypic.com/35hmzxe.jpg','http://i37.tinypic.com/35hmzxe.jpg'); newmarker('Forum2','Icon3','Icon4'); /* ]]> */ </script> Did I write out the code wrong? |
![]() |
|
| Cory | Aug 12 2010, 08:33 AM Post #6 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
|
![]() |
|
| bigmow | Aug 12 2010, 08:42 AM Post #7 |
|
Member
![]() ![]() ![]()
|
ah, it works now, thank you so very much! ♥ |
![]() |
|
| Roby-ZNR | Aug 12 2010, 10:05 AM Post #8 |
|
Efficacy
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Completed! Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM. |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Closed Requests · Next Topic » |
| Track Topic · E-mail Topic |
8:15 PM Jul 10
|


![]](http://b1.ifrm.com/0/1/0/p601690/pipright.png)


8:15 PM Jul 10