FH
Noobie

Posts: 15

I'm a llama!
|
 |
Catagory Icons
« on: November 18, 2002, 09:18:56 PM » |
|
Hello All, Does anyone know if there is a mod that would allow me to put icons to the right of the cat titles and underneath the thread titles like pictured below? For example:   Thanks! FH
|
|
« Last Edit: January 30, 2003, 06:04:43 AM by FH »
|
Logged
|
|
|
|
|
|
|
chris
Guest
|
 |
Re:Catagory Icons
« Reply #4 on: November 20, 2002, 12:12:26 PM » |
|
UNTESTED!!!
hmmm the easiest way should be something like this:
search for:
<tr> <td colspan="5" class="catbg" height="18"><a name="$row_board[ID_CAT]"><b>$row_board[catName]</b></a></td> </tr> replace with:
<tr> <td colspan="4" class="catbg" height="18"> <a name="$row_board[ID_CAT]"><b>$row_board[catName]</b></a> </td> <td align='center'> <img src='$imagesdir/$row_board[ID_CAT].gif' alt=''> </td> </tr>
Now all you have to do is to put some GIF-Files in your YaBBImages-directory called:
[CATEGORY-ID].gif (so for cat-id 1 this would be 1.gif, for cat-id 2 = 2.gif)
UNTESTED!!!
|
|
|
Logged
|
|
|
|
|
chris
Guest
|
 |
Re:Catagory Icons
« Reply #6 on: November 20, 2002, 06:45:48 PM » |
|
Quote from: FH on November 20, 2002, 06:39:56 PMGreat!
Now lets say that the pictures are links to sponsors. How would I make each image link to the the corresponding url?
Thanks for your help!
again.... an EASY solution.... add this somewhere in the beginning of the function (somewhere after the "global $...." lines....) $sponsor[(CATEGORY ID)] = 'http://www.somewhere.tld'; $sponsor[(OTHER CATEGORY ID)] = 'http://www.somewhere.tld'; $sponsor[(AND ANOTHER CATEGORY ID)] = 'http://www.somewhere.tld'; now, change <img src='$imagesdir/$row_board[ID_CAT].gif' alt=''>
to: <a href='$sponsors[ID_CAT]'><img src='$imagesdir/$row_board[ID_CAT].gif' alt='' border='0'></a>
done 
|
|
|
Logged
|
|
|
|
FH
Noobie

Posts: 15

I'm a llama!
|
 |
Re:Catagory Icons
« Reply #7 on: December 02, 2002, 05:33:42 AM » |
|
Thats doesnt work fully! Everything is working but the links! heres what i got! $sponsor[11]= ' http://www.combustionwebhosting.com/cgi-bin/affiliates/clickthru.cgi?id=FordHarley&campaign=Forum'; blah blah blah <tr> <td colspan="4" height="18" class="catbg"> <a name="$row_board[ID_CAT]"><b>$row_board[catName]</b></a> </td> <td align='center' class="catbg"><a href="$sponsors[ID_CAT]" target="_blank"><img src='$imagesdir/$row_board[ID_CAT].gif' alt='' border='0'></a> </td> </tr> all the links go to http://www.fordharley.com/forum/
|
|
« Last Edit: December 02, 2002, 05:34:42 AM by FH »
|
Logged
|
|
|
|
|
|
|
FH
Noobie

Posts: 15

I'm a llama!
|
 |
Re:Catagory Icons
« Reply #11 on: January 26, 2003, 12:16:37 AM » |
|
Doesnt find any of the original code  Also the above one didnt work. It only showed one url for all the different pics. Even after the spelling mistke was fixed. FH
|
|
« Last Edit: January 26, 2003, 12:17:46 AM by FH »
|
Logged
|
|
|
|
|
Nemesis
What's an Admin?
Global Moderator
YaBB God
    
Posts: 2199

|
 |
Re:Catagory Icons
« Reply #13 on: January 30, 2003, 09:01:40 AM » |
|
An easier way.... In the descripiton of the topic just use an image tag to start it. <img src="http://www.yourserver/image/yourimage.jpg" width="80" height="33"> This is board for my topic before this descripition you'll see an image. to control the look put the code in table tags. Check out my forum for an example: Scroll down the page to see it http://www.gamerzalliance.com/community/index.php
|
|
« Last Edit: January 30, 2003, 09:15:38 AM by Nemesis »
|
Logged
|
 Want to say thanks? ************************************* DONATE or check out my WishList*********************************
|
|
|
|