Adding category ima...
 
Notifications
Clear all

Adding category image to skin on other places

3 Posts
2 Users
0 Reactions
1,806 Views
(@amancham)
Posts: 40
Eminent Member
Topic starter
 

I'm pretty sure this is either not doable or at least not easy to do ... but I thought I'd ask anyway.

I'm currently working on a skin for my site, using eFiction 3.5 and I have an idea but don't know how to do it or if it's possible. I'd like the listing of stories to show the category image rather than having the category link there. Of course the {image} variable doesn't work in listings.tpl or stories.tpl; it only works in the categories.tpl

would I have to write a mod for this? Do I have to write a new block? Is it impossible at all? Or would that idea mean I would have to change about every file of eFiction? Or can I somehow tell the template that it has to place the image instead of the simple category textlink there?
Sorry for being a total noob, I just know that simply placing {image} in the template won't have an effect. πŸ˜‰


Old
URL: http://fiction.intayale.de
Version: 3.3.1
Modules: Challenges, Story Tracker, Mulit-lang. eFiction
PHP:  4.4.8
MySQL: 5.0.51a

New
URL: http://intayale.de/deFiction
Version: 3.5
Modules: Last Login
PHP:  5.2.9
MySQL: 5.0.77

 
Posted : 14/04/2009 2:04 pm
(@tammy)
Posts: 2577
Member Moderator
 

You'd have to write a mod for viewstory.php, storyblock.php and seriesblock.php (probably other paces) that would pull the image from the database and place it in a variable.


 
Posted : 14/04/2009 2:46 pm
(@amancham)
Posts: 40
Eminent Member
Topic starter
 

I thought so. Thanks for the explanation, Tammy. I'll keep it in mind for later when I actually know what I'm doing πŸ˜€ couple of months or such πŸ˜‰

Was just an idea and at least I have a mere idea now of what I have to do. *lol*


Old
URL: http://fiction.intayale.de
Version: 3.3.1
Modules: Challenges, Story Tracker, Mulit-lang. eFiction
PHP:  4.4.8
MySQL: 5.0.51a

New
URL: http://intayale.de/deFiction
Version: 3.5
Modules: Last Login
PHP:  5.2.9
MySQL: 5.0.77

 
Posted : 14/04/2009 3:33 pm
Share: