The Arcive of vBulletin Modifications Site. |
|
Add a image to Categories Details »»
|
|||||||||||||||||||||||||
What this does:
Add a image to categories (only Index) ![]()
PHP Code:
PHP Code:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :banana: , it's little mod ![]() ~~~~~~~~~~~~~~~~~~~~~~~~~ If your install this hack, Click Install Please ![]() Before ![]() After ![]() Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
I did something simlair using CSS2
|
|
#3
|
|||
|
|||
|
I tried this but i get the image repeating the whole width of the cat header, including over the text. Any ideas?
|
|
#4
|
|||
|
|||
|
Quote:
I'm not 100% sure because I haven't tried it but this should work. instead of <td class="tcat" style="background-image:url(images/gradients/your-image.gif)" border="0" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>"> try <td class="tcat" style="background-image:url(images/gradients/your-image.gif); background-repeat:no-repeat" border="0" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>"> |
|
#5
|
|||
|
|||
|
Quote:
|
|
#6
|
|||
|
|||
|
Try this:
background:transparent url(blah) center no-repeat; You can't accurately place it after a variable length of text without inserting it as a proper image, not a background. |
|
#7
|
||||
|
||||
|
is it possible to have a different image in each catagory.
|
|
#8
|
||||
|
||||
|
Quote:
PHP Code:
![]() [/COLOR][/COLOR] |
|
#9
|
||||
|
||||
|
thanks alot allan
|
|
#10
|
||||
|
||||
|
Thanks Allan,
I am not very good with code yet, is this what i am meant to do? Code:
<if condition="in_array($forum[1], array(x))"> <td class="tcat" style="background-image:url(images/gradients/forum1.gif)" border="0" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>"> </if> <else /> <if condition="in_array($forum[2], array(x))"> <td class="tcat" style="background-image:url(images/gradients/forum2.gif)" border="0" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>"> </if> <else /> |
![]() |
|
|