View Full Version : Adding Icons or bullets
tmeyer45458
06-13-2006, 04:36 AM
I'm trying to add an icon/bullet next to each category and have yet to get it right. I was hoping that someone could point me in the right direction.
Thanks for any help!
i have it before
<a href="{if $smarty.const.ENABLE_REWRITE}{$cat.TITLE_URL|escap e}/{else}index.php?c={$cat.ID}{/if}" class="cats">{$cat.TITLE|escape}</a>{if $smarty.const.CATS_COUNT} <span class="count">({$cat.COUNT})</span>{/if}</h2>
in main.tpl
@ munt
You have a small error here:
Content visible to registered users only.
Remove the space in "escape"
Boby
thanks
weird the error is not showing on any of my dirs
but i copy/pasted that from a template and not showing the space there either.. must have been in copy/pasting it
fworth
06-13-2006, 09:38 PM
Content visible to registered users only.
Hey i put the code above under
{* Display subcategories *}
Its looking funny where does it go?
<h2><img src="{$smarty.const.DOC_ROOT}/yourimage.gif"> <a href="{if $smarty.const.ENABLE_REWRITE}{$cat.TITLE_URL|escap e}/{else}index.php?c={$cat.ID}{/if}" class="cats">{$cat.TITLE|escape}</a
fworth
06-13-2006, 11:31 PM
I put the code in different places but it still not working where does it go at in the main.tpl?
dont add that whole code above... find it in main.tpl
and add <img src="{$smarty.const.DOC_ROOT}/yourimage.gif"> as it is above
it may be different in your template but should be pretty muchthe same..
Content visible to registered users only.
I am also trying to add folder icon to categories. I folllowed your code and was able to suceed in showing the icons for categories accept the original bullet is still showing in front of the icon. Any thoughts on how to remove this?
Content visible to registered users only.
find the code that looks like this • and delete it
Content visible to registered users only.
I searched for this code in the main.tpl but did not find it. Also, in the style sheet, there is this entry: Content visible to registered users only.
I tried looking for &square or &sq and could not locate this either in the main.tpl. I also tried deleting the above entry from the syle sheet but then I would get circles instead of squares in front of the categories. Any other suggestions would be appreciated.
I fixed the problem by deleting the <li> tag right before the mentioned code in the main.tpl. I don't no if it is a proper fix although it works anyway.
arindra
07-31-2006, 09:01 AM
the adding icons thing is now getting quite regular :)
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.