Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.216
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 s...
Back Online & Stuff
Back Online & Stuff
Look at us with our nifty website back up and running… Seriously...
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 - New theme help
New theme help

3 Replies / 888 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » PhpNuke Theme Questions

View previous topic :: View next topic


toohinc
Reputation: 0.9 Add RepSubtract Rep
Local time: 5:18 PM


Noob
Noob

0.01 posts per day
Medals: 0

Joined: May 15, 2009
Last Visit: 24 May 2009
Posts: 7
Points: 107 

Post New theme help Posted: Fri May 22, 2009 9:31 pm

Hi all

I have created a full new theme in photoshop for my phpnuke website
Problem is I want to use different styles on different blocks!
Example, navigation block is red widh red images, login is poker green with green images! I have done all in photoshop!

How can I apply now different images on different blocks?


Thanks again Embarrased


Pint
 

 
View user's profileSend private message Reply with quote

toohinc
Reputation: 0.9 Add RepSubtract Rep
Local time: 5:18 PM


Noob
Noob

0.01 posts per day
Medals: 0

Joined: May 15, 2009
Last Visit: 24 May 2009
Posts: 7
Points: 107 

Post New theme help Posted: Sun May 24, 2009 10:35 am

any help please?
 

 
View user's profileSend private message Reply with quote

Untergang
Reputation: 642.5 Add RepSubtract Rep
votes: 6
Local time: 10:18 PM
Location: Lommel
belgium.gif

Stand-by Stand-by
Stand-by Stand-by

0.19 posts per day
Medals: 0

Joined: May 08, 2007
Last Visit: 31 Oct 2011
Posts: 346
Points: 22131 

Post New theme help Posted: Sun May 24, 2009 11:21 am

You will have to make a html file for every block.
And then edit your theme.php file.
Find the function themesidebox
There should be something like
Code:
$tmpl_file = "themes/THEMENAME/blocks.html";

Based on the title of the block you can let it use a different block file.
So like this
Code:
if($title == "TITLE OF THE 1ST BLOCK"){
$tmpl_file = "themes/THEMENAME/block-file-for-1st-block.html";
}elseif($title == "TITLE OF THE 2ND BLOCK"){
$tmpl_file = "themes/THEMENAME/block-file-for-2nd-block.html";
}else{
$tmpl_file = "themes/THEMENAME/block-file-for-default-block.html";
}
 

UDesigns.be  
View user's profileSend private messageSend e-mailVisit poster's website Reply with quote


toohinc
Reputation: 0.9 Add RepSubtract Rep
Local time: 5:18 PM


Noob
Noob

0.01 posts per day
Medals: 0

Joined: May 15, 2009
Last Visit: 24 May 2009
Posts: 7
Points: 107 

Post New theme help Posted: Sun May 24, 2009 2:05 pm

Thanks very much, its working!

Pint
 

 
View user's profileSend private message Reply with quote
Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » PhpNuke Theme Questions


 
3 Replies / 888 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