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 - Hiding left blocks in news article only....
Hiding left blocks in news article only....
Goto page 1, 2  Next

19 Replies / 1836 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » PhpNuke Theme Questions

View previous topic :: View next topic


viper155
Reputation: 1 Add RepSubtract Rep
Local time: 1:23 PM

blank.gif

Noob
Noob

0.01 posts per day
Medals: 0

Joined: Jul 10, 2008
Last Visit: 20 Apr 2009
Posts: 10
Points: 385 

Post Hiding left blocks in news article only.... Posted: Mon Mar 16, 2009 12:34 am

Hello I am using your theme CT_RN which is very very nice I must stay. The theme I use to use had a different theme.php file setup and I was able to hide left blocks only on the article part of the news module. This allows the search engines to crawl my news much better instead of crawling my left blocks. Below I will post an example of how I was able to hide them on the old theme.php file.

Code:

 global $name, $file;

if ($name=='Forums') {}

else if ($name=='Amazon') {}

else if ($name=='Content') {}

else if ($name=="News" && $file="article" && !defined('HOME_FILE')) {}

else {

blocks(left);


Now here is how your theme.php file seems to be setup for doing this, however Im not sure how I would tweak the above code to work with yours.



Code:

 // Column 1 (left)
      if (($module_name != 'Forums') AND ($module_name !='Your_Account') AND ($module_name !='Journal') AND ($module_name !='TTBO') AND ($module_name !='Topics') AND ($module_name !='Private_Messages') AND ($module_name !='Youtube_Videos') AND ($module_name !='Members_List')):
      echo '<div class="col1">';



Thank you very much.
 

 
View user's profileSend private messageVisit poster's website Reply with quote

floppy
Reputation: 2088.8 Add RepSubtract Rep
votes: 22
Local time: 1:23 PM
Location: Jackson Mississippi
usa.gif

Site Admin
Site Admin

1.16 posts per day
Medals: 2 (View more...)
Dedication (Amount: 1)
Scripts/Coder
Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 03 May 2012
Posts: 2353
Points: 132516 

Post Re: Hiding left blocks in news article only.... Posted: Mon Mar 16, 2009 12:52 am

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

Code:
// Column 1 (left)
      if (($module_name != 'Forums') AND ($module_name !='Your_Account') AND ($module_name !='Journal') AND ($module_name !='TTBO') AND ($module_name !='Topics') AND ($module_name !='Private_Messages') AND ($module_name !='Youtube_Videos') AND ($module_name !='Members_List') AND ($name == 'News' AND $file != 'article'):
      echo '<div class="col1">';


Should work. You need to make sure that $file is in the global

Just an example below
Code:
global $db, $prefix, $name, $file;
 

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

viper155
Reputation: 1 Add RepSubtract Rep
Local time: 1:23 PM

blank.gif

Noob
Noob

0.01 posts per day
Medals: 0

Joined: Jul 10, 2008
Last Visit: 20 Apr 2009
Posts: 10
Points: 385 

Post Hiding left blocks in news article only.... Posted: Mon Mar 16, 2009 1:06 am

Thanks for the fast reply, it works great!
 

 
View user's profileSend private messageVisit poster's website Reply with quote


floppy
Reputation: 2088.8 Add RepSubtract Rep
votes: 22
Local time: 1:23 PM
Location: Jackson Mississippi
usa.gif

Site Admin
Site Admin

1.16 posts per day
Medals: 2 (View more...)
Dedication (Amount: 1)
Scripts/Coder
Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 03 May 2012
Posts: 2353
Points: 132516 

Post Re: Hiding left blocks in news article only.... Posted: Mon Mar 16, 2009 1:13 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 have corrected quite a few issues with that theme. Our theme here is based off of it and I need to publish those fixes. Most of them related to Firefox 3.
 

 
View user's profileSend private messageVisit poster's website Reply with quote

viper155
Reputation: 1 Add RepSubtract Rep
Local time: 1:23 PM

blank.gif

Noob
Noob

0.01 posts per day
Medals: 0

Joined: Jul 10, 2008
Last Visit: 20 Apr 2009
Posts: 10
Points: 385 

Post Hiding left blocks in news article only.... Posted: Mon Mar 16, 2009 1:22 am

I spoke to soon and this is weird. Somehow this is removing all left blocks from my other modules....

Here is what I have in my theme.php

global
Code:
global $module_name, $banners, $admin, $user, $name, $sitename, $index, $file;


Code:
     // Column 1 (left)
      if (($module_name != 'Forums') AND ($module_name !='Your_Account') AND ($module_name !='Journal') AND ($module_name !='TTBO') AND ($module_name !='Topics') AND ($module_name !='Private_Messages') AND ($module_name !='Youtube_Videos') AND ($name == 'News' AND $file != 'article') AND ($module_name !='Members_List')):
      echo '<div class="col1">';
 

 
View user's profileSend private messageVisit poster's website Reply with quote

floppy
Reputation: 2088.8 Add RepSubtract Rep
votes: 22
Local time: 1:23 PM
Location: Jackson Mississippi
usa.gif

Site Admin
Site Admin

1.16 posts per day
Medals: 2 (View more...)
Dedication (Amount: 1)
Scripts/Coder
Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 03 May 2012
Posts: 2353
Points: 132516 

Post Re: Hiding left blocks in news article only.... Posted: Mon Mar 16, 2009 1:26 am

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

Removing right blocks or left blocks?
 

 
View user's profileSend private messageVisit poster's website Reply with quote


floppy
Reputation: 2088.8 Add RepSubtract Rep
votes: 22
Local time: 1:23 PM
Location: Jackson Mississippi
usa.gif

Site Admin
Site Admin

1.16 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Scripts/Coder
Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 03 May 2012
Posts: 2353
Points: 132516 

Post Re: Hiding left blocks in news article only.... Posted: Mon Mar 16, 2009 1:28 am

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

Put the code back in place please.
 

 
View user's profileSend private messageVisit poster's website Reply with quote

viper155
Reputation: 1 Add RepSubtract Rep
Local time: 1:23 PM

blank.gif

Noob
Noob

0.01 posts per day
Medals: 0

Joined: Jul 10, 2008
Last Visit: 20 Apr 2009
Posts: 10
Points: 385 

Post Hiding left blocks in news article only.... Posted: Mon Mar 16, 2009 1:40 am

its removing the left blocks. Sorry I tried to edit the right blocks to left blocks on the post above in time but there was a time limit before I could do that. What do you mean by put the code back in place?
 

 
View user's profileSend private messageVisit poster's website Reply with quote

floppy
Reputation: 2088.8 Add RepSubtract Rep
votes: 22
Local time: 1:23 PM
Location: Jackson Mississippi
usa.gif

Site Admin
Site Admin

1.16 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Scripts/Coder
Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 03 May 2012
Posts: 2353
Points: 132516 

Post Re: Hiding left blocks in news article only.... Posted: Mon Mar 16, 2009 1:41 am

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

Can you give me specific links that are problems?

Edit, NVM, change

Code:
     // Column 1 (left)
      if (($module_name != 'Forums') AND ($module_name !='Your_Account') AND ($module_name !='Journal') AND ($module_name !='TTBO') AND ($module_name !='Topics') AND ($module_name !='Private_Messages') AND ($module_name !='Youtube_Videos') AND ($name == 'News' AND $file != 'article') AND ($module_name !='Members_List')):
      echo '<div class="col1">';


To

Code:
     // Column 1 (left)
      if (($module_name != 'Forums') AND ($module_name !='Your_Account') AND ($module_name !='Journal') AND ($module_name !='TTBO') AND ($module_name !='Topics') AND ($module_name !='Private_Messages') AND ($module_name !='Youtube_Videos') AND ($module_name == 'News' AND $file != 'article') AND ($module_name !='Members_List')):
      echo '<div class="col1">';


We had $name == 'News' instead of $module_name == 'News'
 

 
View user's profileSend private messageVisit poster's website Reply with quote


viper155
Reputation: 1 Add RepSubtract Rep
Local time: 1:23 PM

blank.gif

Noob
Noob

0.01 posts per day
Medals: 0

Joined: Jul 10, 2008
Last Visit: 20 Apr 2009
Posts: 10
Points: 385 

Post Hiding left blocks in news article only.... Posted: Mon Mar 16, 2009 1:54 am

ok still the same problem :(

Here is a link to my article page which is working like we want with no left blocks
http://www.tysontalk.com/article-663--0-0.html

However for some odd reason its also removing the left blocks from every other module as well.
Examples where left blocks use to show:

all the content pages: http://www.tysontalk.com/content-46.html

From looking around it seems to of removed every pages left blocks accept on the home page where I have news as the home module. weird....
 

 
View user's profileSend private messageVisit poster's website Reply with quote

floppy
Reputation: 2088.8 Add RepSubtract Rep
votes: 22
Local time: 1:23 PM
Location: Jackson Mississippi
usa.gif

Site Admin
Site Admin

1.16 posts per day
Medals: 2 (View more...)
Dedication (Amount: 1)
Scripts/Coder
Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 03 May 2012
Posts: 2353
Points: 132516 

Post Re: Hiding left blocks in news article only.... Posted: Mon Mar 16, 2009 1:56 am

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

Only other thing I know to try is
Code:
($module_name!='News' && $file!='article')


It is what I use here on this site.
 

 
View user's profileSend private messageVisit poster's website Reply with quote

viper155
Reputation: 1 Add RepSubtract Rep
Local time: 1:23 PM

blank.gif

Noob
Noob

0.01 posts per day
Medals: 0

Joined: Jul 10, 2008
Last Visit: 20 Apr 2009
Posts: 10
Points: 385 

Post Re: Hiding left blocks in news article only.... Posted: Mon Mar 16, 2009 2:03 am

floppy wrote:
Only other thing I know to try is
Code:
($module_name!='News' && $file!='article')


It is what I use here on this site.


that also removes the left blocks on my home page where the news module is loaded.... Hrm this is weird
 

 
View user's profileSend private messageVisit poster's website Reply with quote

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


 
19 Replies / 1836 Views
Page 1 of 2
All times are GMT
Goto page 1, 2  Next
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