Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.219
Nickname:

Password:

Security Code
Security Code
Type Security Code


PND Downloads Feed

Phpnuke Downloads
How to Delete or Reset yo...
How to Delete or Reset your PHPNuke Admin Account
Lost your admin password ?  Cant login to your admin account ?This sh...
Back Online & Stuff
Back Online & Stuff
Look at us with our nifty website back up and running… Seriousl...
How to edit the admins in...
How to edit the admins in the forums
Here is a way to make someone admin in your forums on your Evo site. I...
Demo Splash Screen
Demo Splash Screen
Ped @ Clan Themes has released a simple splash screen entrance hack. ...
Free Phpnuke Business The...
Free Phpnuke Business Theme 6
This is the 6th Business theme for Phpnuke that Clan Themes has releas...
Tricked Out Slider
Tricked Out Slider
We have seen some great new things come out of Tricked Out News and th...

Custom Work

PHP Nuke Custom Work

www.clanthemes.com :: View topic - Topic images not displaying - ct_rn_greyscale
Topic images not displaying - ct_rn_greyscale

5 Replies / 837 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » PhpNuke Theme Questions

View previous topic :: View next topic


fox2
Reputation: 0.5 Add RepSubtract Rep
Local time: 9:14 AM


Noob
Noob

0.00 posts per day
Medals: 0

Joined: Oct 06, 2009
Last Visit: 19 Oct 2009
Posts: 3
Points: 215 

Post Topic images not displaying - ct_rn_greyscale Posted: Fri Oct 09, 2009 11:26 am

Hi Guys,

noobie here!

I'm running Raven nuke and have installed the CT_RN_GREYSCALE theme.

I have created a news topic with a custom icon for the topic, however when a story is created and linked to the news topic no image is displayed on the front page.

I have switched to a basic theme and it works fine, so I am assuming there is some code missing on the theme or it was intended to work this way?

If anyone knows how I can get the topic images to appear on the front page that would be great.

Thanks guys :)
 

 
View user's profileSend private message Reply with quote

floppy
Reputation: 2087.2 Add RepSubtract Rep
votes: 22
Local time: 4:14 AM
Location: Jackson Mississippi
usa.gif

Site Admin
Site Admin

1.73 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Scripts/Coder
Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 27 Jan 2012
Posts: 3313
Points: 132023 

Post Re: Topic images not displaying - ct_rn_greyscale Posted: Fri Oct 09, 2009 11:35 am

Shop Purchases:
Clan Roster 2.0 · Multi Gaming (Warrior) Evo Theme · COD6 ModernWarfare 2 Teaser Splash Screen · Left for Dead Evo Extreme Version

I believe it is intended to work that way. I am sure Ped can tell you how to change it.
 

Phpnuke Downloads | VMaxxRx Male Enhancement  
View user's profileSend private messageVisit poster's website Reply with quote

Ped
Reputation: 64 Add RepSubtract Rep
votes: 35
Local time: 10:14 AM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

2.33 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 10 Feb 2012
Posts: 4467
Points: 181248 

Post Re: Topic images not displaying - ct_rn_greyscale Posted: Fri Oct 09, 2009 4:18 pm

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

Yes I removed them

Where do you want the topic image to go

Are you using small topic images or large.. its diffrent for every site so its easier to just leave them out on a fixed width free theme.

Let me know the size of your topic images or if you want them showing abouve the article or to the left/right i will show u the code np
 

 
View user's profileSend private messageSend e-mail Reply with quote


fox2
Reputation: 0.5 Add RepSubtract Rep
Local time: 9:14 AM


Noob
Noob

0.00 posts per day
Medals: 0

Joined: Oct 06, 2009
Last Visit: 19 Oct 2009
Posts: 3
Points: 215 

Post Re: Topic images not displaying - ct_rn_greyscale Posted: Thu Oct 15, 2009 1:11 pm

Hi, thanks for the reply.

The image is 100x85. I was hoping to have it display in the top right corner of the article box, if possible?

Thanks for the help :)
 

 
View user's profileSend private message Reply with quote

Ped
Reputation: 64 Add RepSubtract Rep
votes: 35
Local time: 10:14 AM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

2.33 posts per day
Medals: 2 (View more...)
Forums MoD (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 10 Feb 2012
Posts: 4467
Points: 181248 

Post Topic images not displaying - ct_rn_greyscale Posted: Thu Oct 15, 2009 1:34 pm

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

if you open theme.php

find function themeindex its around the line 200 region

then find the code

Code:
global $anonymous, $tipath, $user, $admin, $index;


add after

Code:
$ThemeSel = get_theme();
   if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
      $t_image = "themes/$ThemeSel/images/topics/$topicimage";
   } else {
      $t_image = "$tipath$topicimage";
   }


find (in the same function)
Code:
<div class="articlecontent">


Add BEFORE

Code:
<a href="modules.php?name=News&amp;new_topic='.$topic.'"><img src="'.$t_image.'" border="0" alt="'.$topictext.'" align="right" hspace="10" vspace="10" width="100" height="85" /></a>


job done !
 

 
View user's profileSend private messageSend e-mail Reply with quote

fox2
Reputation: 0.5 Add RepSubtract Rep
Local time: 9:14 AM


Noob
Noob

0.00 posts per day
Medals: 0

Joined: Oct 06, 2009
Last Visit: 19 Oct 2009
Posts: 3
Points: 215 

Post Re: Topic images not displaying - ct_rn_greyscale Posted: Thu Oct 15, 2009 3:10 pm

works like a dream! thank you very much :)
 

 
View user's profileSend private message Reply with quote

Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » PhpNuke Theme Questions


 
5 Replies / 837 Views
Page 1 of 1
All times are GMT
Display posts from previous:   
 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum