I wanted to do that on my site so I just decided to get my act together and try not to break anything. It took me some time seeing as I'm no coding genius, but I did manage it. Yay!!! π
Anyhow, here's what you need to do if you want to do that yourself.
open browse/categories.php and look for:
$cat->assign("image", ($cats['image'] && file_exists("$skindir/images/".$cats['image']) ? "<img src=""$skindir/images/".$cats['image'"]."" alt="".$cats['category']."" border=1 title="".$cats['category']."">" : ""));
replace with
$cat->assign("image", ($cats['image'] && file_exists("$skindir/images/".$cats['image']) ? "<a href=""browse.php?type=categories&id=".$cats['catid'"].""><img src=""$skindir/images/".$cats['image'"]."" alt="".$cats['category']."" border=1 title="".$cats['category'].""></a>" : ""));
You can see this in action here.
Furthermore, I decided I wanted to remove the brackets that surrounded the number of stories because I wanted to merge together the story count and description (as shown in the link above).
So if you decide you want to do that as well, here's what you need to look for in browse/categories.php
$cat->assign("count", "[".$cats['numitems']."]");
replace with:
$cat->assign("count", "".$cats['numitems']."");
then in your skin's categories.tpl you need to have the following code
<!-- START BLOCK : categoryblock -->
{image}<br />
{link}<br />
{count} stories {description}
<p> </p>
<!-- END BLOCK : categoryblock -->
Okay. I better go to bed now because it's nearing 3:30am and I work in 4 and a half hours... I'll regret staying up this late to redo all my categories images! π
Jacynthe
Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP: 5.3.3
MySQL: 5.0.91-community
Good job.
FYI, you don't need the empty "" in this line:
$cat->assign("count", "".$cats['numitems']."");
You can write it as:
$cat->assign("count", $cats['numitems']);
Thanks Tammy! I'll fix that then. π
Jacynthe
Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP: 5.3.3
MySQL: 5.0.91-community
Wow, I like! π Nice idea, Jacynthe, and thanks for sharing it!
Whoever said nothing is impossible never tried slamming a revolving door.
url: https://www.potionsandsnitches.org/fanfiction
php: 7.4.33 msql: 5.6.51-community GPL
efic version: 3.5.5 latest patches: yes
bridges: none mods: challenges, tracker, story end, beta, word
My pleasure Jan. Once in a while I get a good idea - and what's even more rare: once in a while I figure it out on my own. LOL
Jacynthe
Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP: 5.3.3
MySQL: 5.0.91-community
