PortalParts.com Site

 Forum Index > Geeklog > General Geeklog New Topic Post Reply
 Different images in story for topics
 |  Printable Version
koalasoft
 November 10 2008 12:07 PM (Read 1525 times)  
Forum Full Poster
Full Poster

Status: offline

Registered: 06/01/05
Posts: 10

Hi !!

My idea is to do this. In story the image of topics can be visualized, but I require to put different a customized image by each topics.
for example within story.

topic=windows, view image windows.png
topic=table, view image table.png
topic=other, view image otherimage.png


I try this code in inside storytext.thtml ..
PHP Formatted Code
<?php global $_CONF, $_TABLES; $secc= DB_getItem ($_TABLES['topics'], 'topic', "tid='$tid'"); if ($secc == 'General'){ ?>
    <div class="title-news"><img src="windows.png"/>&nbsp;{story_title_link}</div>
<?php }?>


but not view anithing :(


 
Profile Email Website PM
Quote
Content generated in: 0.12 seconds
New Topic Post Reply



 All times are CST. The time is now 05:03 AM.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content