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:

Username:   Password:
Locked Topic
[ C ] Can't get the different forum marker code to work; What am I doing wrong?
Topic Started: Aug 12 2010, 07:46 AM (757 Views)
bigmow
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. : )
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Please post the code you tried to use. The second one is for InvisionFree only.
Offline Profile Goto Top
 
bigmow
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?
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Try this version.
Offline Profile Goto Top
 
bigmow
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?
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]

  • It must be the forum name, not the forum ID.
  • A default forum marker must be added to the images section of your ACP in order to use the script.
Offline Profile Goto Top
 
bigmow
Member
[ * ]
ah, it works now, thank you so very much! ♥
Offline Profile Goto Top
 
Roby-ZNR
Member Avatar
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.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic