The pictures come up here properly?!
You can display the images by configuring the categories plugin and setting the XML image to no.
Regards,
Garvin
)Code: Select all
<ul id="serendipity_categories_list" style="list-style: none; margin: 0px; padding: 0px">
{foreach from=$categories item="plugin_category"}
<li style="display: block;">
<!-- YOUR ICON HERE !!!! -->
{if $plugin_category.category_name == 'Books'}
<img src="/Serendipity/templates/competition/img/Books.gif" alt="Books" style="border: 0px" />
{elseif $plugin_category.category_name == 'CFS'}
<img src="/Serendipity/templates/competition/img/CFS.gif" alt="CFS" style="border: 0px" />
{elseif $plugin_category.category_name == 'Depression'}
<img src="/Serendipity/templates/competition/img/Depression.gif" alt="Depression" style="border: 0px" />
{elseif $plugin_category.category_name == 'Dreams'}
<img src="/Serendipity/templates/competition/img/Dreams.gif" alt="Dreams" style="border: 0px" />
{elseif $plugin_category.category_name == 'General'}
<img src="/Serendipity/templates/competition/img/General.gif" alt="General" style="border: 0px" />
{elseif $plugin_category.category_name == 'Pets'}
<img src="/Serendipity/templates/competition/img/Pets.gif" alt="Pets" style="border: 0px" />
{elseif $plugin_category.category_name == 'Work'}
<img src="/Serendipity/templates/competition/img/Work.gif" alt="Work" style="border: 0px" />
{/if}
<!-- END OF YOUR ICON CODE -->
<a href="{$plugin_category.categoryURL}" title="{$plugin_category.category_description|escape}" style="padding-left: {$plugin_category.paddingPx}px">{$plugin_category.category_name|escape}</a>
</li>
{/foreach}
</ul>
<div class="category_link_all"><a href="{$form_url}?frontpage" title="{$CONST.ALL_CATEGORIES}">{$CONST.ALL_CATEGORIES}</a></div>
Maybe you check for the wrong category name? What's your code for the "other" categories inside the template file?NimNim wrote:How come the icon for my mothers category keeps working whilst the others don't?
You need to add a IF-statement for every single category icon, of course.The only difference I can think of is that there are no entries for it.