Welcome Guest [Log In] [Register]
This board has been archived and is no longer accepting new questions. If you have a support question for your ZetaBoard, please visit us at the new support board. Registration is free and easy.


Visit the NEW ZetaBoards Support forum!

Username:   Password:
Add Reply
Custom Forum Markers (New/Non New); For Individual Forums
Topic Started: Jan 9 2008, 01:13 PM (3,730 Views)
DynamicIP
Member Avatar
I'm known as Nor
[ *  * ]
Description: Basically this script allows users to change there forum icon so its custom some people like custom heh

Variable explanation: note::(the example only is for the zeta original skin)
forum_id - this is the forum id you want the custom marker for
old1 - this is the old icon(i,e the non new posts forum marker) that you want to match it can
either be the whole link of the icon or the name of the image like in the example
new1 - this is the none new posts marker that you will be replacing
old2 - this is the new icon(i,e:: the new posts forum marker)
new2 - this is the replacement for the new posts forum marker

Example:

Code:
 

<script type='text/javascript' language='Javascript'>
custom_marker(12930,"f_old.png","http://209.85.62.24/static/1/s_users.png","f_new.png","http://209.85.62.24/static/1/s_users.png");
</script>

Code:
 

<script type='text/javascript'>
//copy Nor of Cleanscript.com & Spammer [1].com
function custom_marker( forum_id, old1, new1, old2, new2 ){
var a = document.getElementById("forum-"+forum_id);
if(a){
e = a.getElementsByTagName("td")[0];
if(e){
img = e.getElementsByTagName("img");
if(img){
if(img[0].src.match(old1)){
img[0].src = new1;
}
else if( img[0].src.match(old2) )
{
img[0].src = new2;
}
}}}}
custom_marker(12930,"f_old.png","http://209.85.62.24/static/1/s_users.png","f_new.png","http://209.85.62.24/static/1/s_users.png");
</script>


Placement:
* Admin CP
* → Board Template
* → Edit Board Template
* Anywhere below the board


Preview: http://s1.zetaboards.com/TheInfernoSinX/index/
(announcement forum)

custom request: http://support.zetaboards.com/topic/35244/
Edited by DynamicIP, Jan 9 2008, 01:18 PM.
Offline Profile Quote Post Goto Top
 
Victrixs
Member Avatar
Website Developer
[ *  *  * ]
I still don't understand what this is. What does it do with forum buttons?
Offline Profile Quote Post Goto Top
 
DynamicIP
Member Avatar
I'm known as Nor
[ *  * ]
It changed the forum icon (http://209.85.62.24/static/1/f_old.png) to : http://209.85.62.24/static/1/s_users.png

check this topic for better image example: http://support.zetaboards.com/topic/35244/

-.- IE 6 is messing up -.- thats why i got FireFox portable in my pocket lol(usb drive) ill fix 2morrow
Edited by DynamicIP, Jan 9 2008, 01:28 PM.
Offline Profile Quote Post Goto Top
 
Victrixs
Member Avatar
Website Developer
[ *  *  * ]
Ok just adds your custom forum marker, can't you do this when you edit theme images?
Offline Profile Quote Post Goto Top
 
Deleted User
Deleted User

Nice code. This will come in very handy.
Quote Post Goto Top
 
Tanki
Member Avatar
Member
[ *  * ]
You can also use random graphics for new or no new posts that match the theme you have going. I always change out my icons to match the theme. ;) At least the folder's and the main forum buttons.
Offline Profile Quote Post Goto Top
 
DynamicIP
Member Avatar
I'm known as Nor
[ *  * ]
nigel91
Jan 9 2008, 01:29 PM
Nice code. This will come in very handy.
Thanks.
Offline Profile Quote Post Goto Top
 
Michael W
Member Avatar
MESKOS - Forum Consultant
[ *  * ]
Thank You Nor :)
Will use this code :)
Offline Profile Quote Post Goto Top
 
DynamicIP
Member Avatar
I'm known as Nor
[ *  * ]
np, going to try and fix the IE 6 problem asap....
Offline Profile Quote Post Goto Top
 
davadude
Member Avatar
GuildWars addict :P
[ *  *  * ]
It's smarter to do it like this:


  • Admin CP
  • Choose the theme
  • then theme pictures
  • edit all pictures
  • look for the forum bits (new post; old post; read-only; etc.


greets,

dava ^_^
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · User Created Codes · Next Topic »
Add Reply