Portal Themes, PHPnuke Themes and PostNuke themes Themes Home Page Profile Free Nuke theme Downloads Nuke theme Support Forums Nuke Themes Store
spacer image spacer image
Featured
Call of Duty 4 Nuke Theme

Call of Duty 4 Nuke Theme

Call of Duty 4 PHPNuke Theme, Call of Duty 4 PostNuke Theme, Call of Duty 4 Evo Theme, Call of Duty ...

$15.00
Enter Store ]
spacer image
Main Menu
spacer image
Site Status
spacer image Welcome Guest
Join us!
spacer image
spacer imagespacer imagespacer image
spacer image
Registration is free and gives full access to site
spacer image
spacer image Register
spacer image Login:
User:

spacer image
Password:

spacer image
Remember me
spacer image
spacer imageMembers:
Last: Today New:0
Last: Yesterday:0
Last: Total:7536
Last: Last:
maxfoot
Members: Online
Members: Members:0
Guests: Guests:11
Total: Total:11
spacer image Online Members
No online members
spacer image
Past News
Older articles
spacer image


Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
MoonstoneOffline
Post subject: Custom News Topic Icons  PostPosted: Jun 02, 2006 - 04:20 AM



Joined: May 24, 2005
Posts: 14

Status: Offline
I like to change the colors of my news topic icons to suit each theme on my Postnuke site:

www.kindredlinkshell.com

I understand the correct path to place custom icons is themes\(themename)\images\topics

As my autothemes don't seem to be looking in this place by default, is there a line of code you need to change to make this happen?

Thanks!
 
 View user's profile Send private message  
Reply with quote
marsOffline
Post subject:   PostPosted: Jun 02, 2006 - 11:38 AM
Site Admin


Joined: Aug 15, 2004
Posts: 4277

Status: Offline
That only works for PHPNuke.
For PostNuke you will need to put some code in summary.html and article.html

Replace
Code:

<div style="float:left;padding:5px;">
            <!-- [topic-image] -->
          </div>


With

Code:

<div style="float:left;padding:5px;">
             <? // look for topic image in theme
            if (file_exists("themes/".$GLOBALS['thename']."/images/topics/".$info['topicimage'])) {
             $image = "themes/".$GLOBALS['thename']."/images/topics/".$info['topicimage'];
            // if not found in theme, use default one
            } else {
                $image = "images/topics/".$info['topicimage']; }
               echo "<img src=\"$image\" border=\"0\" alt=\"".$info['topicname']."\">
               ";?></div>
 
 View user's profile Send private message  
Reply with quote
MoonstoneOffline
Post subject: Re: Custom News Topic Icons  PostPosted: Jun 02, 2006 - 09:00 PM



Joined: May 24, 2005
Posts: 14

Status: Offline
Worked like a charm! As always, thanks for your quick and accurate help! Very Happy
 
 View user's profile Send private message  
Reply with quote
Display posts from previous:     
Jump to:  
All times are GMT - 5 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits
spacer image spacer image

Welcome to www.PortalThemes.com, Your #1 Source for

Zikula Themes

,

PHP-Nuke themes

,

MD-Pro Themes

,

Nuke Evolution Themes

,

Platinum Nuke Themes

,

Xanthia Themes

,

AutoThemes and

Joomla Templates
World of Warcraft and Blizzard Entertainment are all trademarks or registered trademarks of Blizzard Entertainment in the United States and/or other countries. These terms and all related materials, logos, and images are copyright Blizzard Entertainment. This site is in no way associated with or endorsed by Blizzard Entertainment
SiteMap SiteMap 2 SiteMap 3