inherit
55472
0
Apr 8, 2013 17:43:25 GMT -8
UndergroundxAngel
Life is either a daring adventure, or nothing.
170
August 2005
undergroundxangel
|
Post by UndergroundxAngel on Jul 31, 2010 11:17:26 GMT -8
So...maybe I completely missed it, but I couldn't find this code in the database. I am looking for a code that allows for the board title graphics (the names) to be different for each skin. Is there any code to do this? yamltest.proboards.com/index.cgi
|
|
inherit
55472
0
Apr 8, 2013 17:43:25 GMT -8
UndergroundxAngel
Life is either a daring adventure, or nothing.
170
August 2005
undergroundxangel
|
Post by UndergroundxAngel on Jul 31, 2010 17:13:31 GMT -8
bump
|
|
inherit
The Final Cylon
31521
0
Mar 3, 2015 14:39:33 GMT -8
Trublu
Maybe the duck is in the hat.
12,323
October 2004
trublusvufan
|
Post by Trublu on Jul 31, 2010 19:27:20 GMT -8
So...maybe I completely missed it, but I couldn't find this code in the database. I am looking for a code that allows for the board title graphics (the names) to be different for each skin. Is there any code to do this? Hi, Firstly, please note that we have a 24 hour limit for bumping threads, so that we make sure everyone can at least get a response to their inquiry in a timely fashion. In the [cfaq], see the section on "Working with Multiple Skins".
|
|
inherit
55472
0
Apr 8, 2013 17:43:25 GMT -8
UndergroundxAngel
Life is either a daring adventure, or nothing.
170
August 2005
undergroundxangel
|
Post by UndergroundxAngel on Jul 31, 2010 20:50:34 GMT -8
I apologize for the bump, I must have confused this forum with another. I get confused with the different limits.
And I tried looking at that, and I understand almost all of it, but I don't know how to make it so each board (introduction, character development, advertising) has a different graphic for each skin. (I made font graphics for each of them) Do the board id's fall under div id's? Or are they part of CSS? I'm thoroughly confused on how I would incorporate that into a code...
|
|
Kami
Forum Cat
Posts: 40,037
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,037
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Jul 31, 2010 21:32:33 GMT -8
First use the code in the code index regarding 'Category or Title text to Image' then us the skin-specific instructions as linked by Trublu above in regards to the variables. =]
|
|
inherit
55472
0
Apr 8, 2013 17:43:25 GMT -8
UndergroundxAngel
Life is either a daring adventure, or nothing.
170
August 2005
undergroundxangel
|
Post by UndergroundxAngel on Jul 31, 2010 21:43:47 GMT -8
Okay, I'm slowly understanding. So, with that code...when it says "TEXT" "IMAGE URL"
Do I put the board id or the actual board title where it says "TEXT"?
|
|
Kami
Forum Cat
Posts: 40,037
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,037
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Jul 31, 2010 21:49:07 GMT -8
the actual board title. So, if your title was:
"BOB BOB BOB MARY"
that is what you'd put in. =]
|
|
inherit
55472
0
Apr 8, 2013 17:43:25 GMT -8
UndergroundxAngel
Life is either a daring adventure, or nothing.
170
August 2005
undergroundxangel
|
Post by UndergroundxAngel on Jul 31, 2010 21:57:58 GMT -8
It didn't work. I tried it on my test site for the 'TEST' board and got nothing. Any ideas?
|
|
Kami
Forum Cat
Posts: 40,037
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,037
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Jul 31, 2010 22:40:39 GMT -8
actually i think i made a mistake. =[ when you said 'board' i thought you meant the different categories. i'm not aware if there is a way to make the board titles into images that's already made.
|
|
inherit
55472
0
Apr 8, 2013 17:43:25 GMT -8
UndergroundxAngel
Life is either a daring adventure, or nothing.
170
August 2005
undergroundxangel
|
Post by UndergroundxAngel on Jul 31, 2010 22:56:19 GMT -8
Awwww, alright! Thanks for trying!
|
|
Kami
Forum Cat
Posts: 40,037
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,037
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Jul 31, 2010 23:41:55 GMT -8
you're welcome. sorry i couldn't be more help. i'm actually looking for this code too, soooo... =X *watches thread*
|
|
inherit
55472
0
Apr 8, 2013 17:43:25 GMT -8
UndergroundxAngel
Life is either a daring adventure, or nothing.
170
August 2005
undergroundxangel
|
Post by UndergroundxAngel on Aug 1, 2010 10:05:57 GMT -8
It's okay, love. You tried ^-^
And okies, so for anyone who looks at this thread, we are still at loss for a code that does this.
|
|
inherit
Official Code Helper
65613
0
1
Apr 15, 2024 17:01:41 GMT -8
Chris
"'Oops' is the sound we make when we improve"
8,870
December 2005
horace
|
Post by Chris on Aug 1, 2010 13:29:17 GMT -8
I haven't actually tested this code for bugs yet but give it a try <script type="text/javascript"> <!-- (function(){if(/^(home|boardindex)$/.test(pb_action)){
/* Board Link to Image */
var linkImages={ //USAGE: boardID:{skinID1:img_url,skinID2:img_url,skinID3:img_url,skinIDn:img_url} support:{1:"http://images.proboards.com/new/menu/members.png", 2:"http://images.proboards.com/new/menu/chat.png"}, coderequests:{2:"http://images.proboards.com/new/menu/members.png", 1:"http://images.proboards.com/new/menu/chat.png"}, pbgt:{2:"http://images.proboards.com/new/menu/members.png", 1:"http://images.proboards.com/new/menu/chat.png"} //no comma after last item }
function getSkinImg(boardID){ if(!linkImages[boardID] || !linkImages[boardID][pb_skinid])return null; else return linkImages[boardID][pb_skinid] } function link2Img(boardID,Img){ var t,l,i,j,k,gtn='getElementsByTagName',s='cache',ac=arguments.callee.prototype if(!boardID)for(l in linkImages)arguments.callee.call(this,l); if(!Img)if(!(Img=getSkinImg(boardID))) return; if(!ac)ac={}; if(ac[boardID])t=[ac[boardID]]; else t=document[gtn]('td'); for(l=t.length,i=0;i<l;i++){ if(t.width=="66%" && /pb_bubble=1/.test(t.innerHTML)){ j=t[gtn]('a'); if(j[0] && j[0].href.match(/\bboard=(\w+)/)){ ac[RegExp.$1]=t; if(boardID == RegExp.$1){ k=(j[0].innerText||j[0].textContent); j[0].innerHTML = ""; if('object' == typeof Img){ j[0].appendChild(Img); }else if('string' == typeof Img) j[0].innerHTML = '<img border="0" alt="'+k+'" src="'+Img+'" />'; else j[0].innerHTML=k; //indicate failed call } } } } }
link2Img();
}})() // --> </script>The green lines are merely comments and can also be removed if desired. The red is what you would need to edit. I have included 3 example lines to demonstrate how it's done but you'll need to remove those lines and add lines specific to the boards/skins on your forum. - support:{1:"http://images.proboards.com/new/menu/members.png", 2:"http://images.proboards.com/new/menu/chat.png"},
This example line says if skin is 1 replace support board link with the image at "http://images.proboards.com/new/menu/members.png" and if skin is 2 replace support board link with the image at "http://images.proboards.com/new/menu/chat.png"
- coderequests:{2:"http://images.proboards.com/new/menu/members.png", 1:"http://images.proboards.com/new/menu/chat.png"},
- pbgt:{2:"http://images.proboards.com/new/menu/members.png", 1:"http://images.proboards.com/new/menu/chat.png"}
Place in main footer. Place in global footer if you want it to change images for sub-boards as well
|
|
inherit
55472
0
Apr 8, 2013 17:43:25 GMT -8
UndergroundxAngel
Life is either a daring adventure, or nothing.
170
August 2005
undergroundxangel
|
Post by UndergroundxAngel on Aug 1, 2010 13:47:28 GMT -8
EEEEPP!!!! YOU ARE MY HERO!!! *pounces and huggles* thank you so much!! <3
|
|
Kami
Forum Cat
Posts: 40,037
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,037
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Aug 1, 2010 13:49:30 GMT -8
=x is there a non-skin-specific version of this code, or can i use it as-is and just have the 'id' as 1 all around?
|
|