Quote:
Originally Posted by Zain Jaffer
Hi Andrew,
Perhaps I was too vague and should make myself more clear:
Sorry, but the 2 solutions failed to solve the problem:
Bascically, I want the avatar to remain where it is on the front page but its image NOT be displayed how it is in the link above but to remain where it is.
Here is the main page: http://www.juicyduff.com/forum/local_links.php
You can see that the "wallpapers" images is moved, basically I only want the thumbnails to be on the left handside (category) and no where else.
Thanks, your help is appreciated...
|
Then you will have to edit a couple of the templates, links_main and links_catbit. links_main is the one that gives you the category title near the top of the page and links_catbit gives you the listing of categories within a page. There are three bits of information that you play with: the category name, its description and its extended description.
As you observe, if you put an image tag (or any other tag) into the category name, then the tag also shows up in the navigation bar as text. (I'll see if I can check for that condition and remove it, but I need to be careful that I don't kill anything else in the process.)
What you could do (easier if you are the only person creating categories on your board) is use the description or its extended description purely to hold the bbcode image tage, and modify the template accordingly.
For example. you could use the description to hold only the image tag and put the accompanying text into the extended description. So, you might edit these lines in the links_main template:
Code:
<tr align="center">
<td class="tcat" align="center"><strong>$viewcatname</strong>
<if condition="$catclosed != 0"><span class="smallfont">[closed]</span></if>
</td>
</tr><tr>
<td class="alt1"><span class="smallfont">$viewcattext</span></td>
</tr></tbody>
replacing
$viewcatname by
$viewcatdesc $viewcatname
You would also have to make a similar change in the links_catbit template, where the three variables are $catname, $catdesc amd $cattext.
Code:
<tr valign="top">
<td class="alt$catstyle">
<span class="smallfont">
<if condition="$catnew">
<b>
</if>
<a href="local_links.php?action=links&catid=$catid">$catname</a>
<if condition="$catnew">
</b>
</if>
</span>
</td>
<td class="alt$catstyle">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr><td width="75%">
<span class="smallfont">
<if condition="$catnew">
<b>
</if>
$catdesc
<if condition="$catnew">
</b> (new entry $catdate)
</if>
<if condition="$links_permissions[can_edit_category]">
<a href="local_links.php?action=editcat&catid=$catid">[edit]</a>
</if>
<if condition="$subcatnames"><br /><strong>Sub-categories:</strong> $subcatnames</if>
</span>
</td>
<td class="alt$catstyle" width="25%" align="right">
<span class="smallfont">
<if condition="$links_defaults[count_depth]==0">
[$catsub categ/$catentry entries]
<else />
[$catchildentry entries]
</if>
</span>
</td>
</tr>
</table>
</td>
</tr>
Good luck