inherit
151674
0
Jun 27, 2015 17:26:44 GMT -8
TornadoGTS
90
February 2010
tornadogts
|
Post by TornadoGTS on Nov 15, 2012 0:44:21 GMT -8
Like to request a plugin to ba able to replace the category title text with an image, here was the 4.5 code....
<script type="text/javascript"> <!--
// Category or title text to image
var tCat = document.getElementsByTagName("td");
function textToImage(text,image){ for(t = 0; t < tCat.length; t ++){ var re = new RegExp("<b>" + text.replace(/([\*\+\.\/]+)/, "\\$1") + "</b>","i"); if(tCat.item(t).className.match(/^(cat|title)bg/i) && tCat.item(t).innerHTML.match(re)){ tCat.item(t).innerHTML = tCat.item(t).innerHTML.replace(re, "<img src='" + image + "'>"); } } }
textToImage("category","image link");
//--> </script>
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Nov 15, 2012 17:34:40 GMT -8
|
|
inherit
151674
0
Jun 27, 2015 17:26:44 GMT -8
TornadoGTS
90
February 2010
tornadogts
|
Post by TornadoGTS on Nov 15, 2012 17:48:15 GMT -8
Even better, thanks for the info.
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Nov 15, 2012 17:48:43 GMT -8
No problem
|
|
sethron
New Member
"... Totally confused. Always confused."
Posts: 45
inherit
26712
0
Aug 7, 2014 17:10:33 GMT -8
sethron
"... Totally confused. Always confused."
45
June 2004
sethron
|
Post by sethron on Nov 16, 2012 7:23:16 GMT -8
So, either I can't find it (a distinct possibility) or it isn't actually an option and would love a plug-in for this. If I can't find it, can someone give me a boost and tell me where you did? Because individual category title images isn't anywhere I can find and is a big deal to my forum image. Also, what that guy wanted to do isn't quite what that code is doing. His is just allowing there to be images in the category title, methinks, like an "img src" function. What I'm looking for is a complete replacement of the board name with a category image. Example: vampst.proboards.com/
|
|
#00AF33
14306
0
1
Sept 8, 2023 8:54:17 GMT -8
Jordan
What is truth?
11,838
October 2003
jab2
|
Post by Jordan on Nov 16, 2012 8:30:19 GMT -8
This is an easy plugin for any coder who wants to try. If not, I'll do it.
Nice forum by the way sethron, it looks really cool.
|
|
sethron
New Member
"... Totally confused. Always confused."
Posts: 45
inherit
26712
0
Aug 7, 2014 17:10:33 GMT -8
sethron
"... Totally confused. Always confused."
45
June 2004
sethron
|
Post by sethron on Nov 16, 2012 8:54:47 GMT -8
I thank you. For both the fact that you know how to do it and the compliment.
It'll be a much less cool forum if I don't figure out a way to convert it. *rubs head*
|
|
inherit
164980
0
Oct 11, 2012 23:21:29 GMT -8
Tohsaka Rin
Why do men keep falling into my residence? I can collect on the damage insurance, right?
602
March 2011
lunacticinferno
|
Post by Tohsaka Rin on Dec 10, 2012 0:32:19 GMT -8
I was able to put images in my category display name using url to image[/img]. The problem with doing that is that the category default gradient and spacing really messes stuff up... Hopefully a plugin can be made for this which re-sizes the forums appropriately and gets rid of all the weird margin and gradients behind the image causing the overlap.
|
|