Page dependant side panel.

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 06-02-2006, 04:49 AM
Casual Pligger
 
Join Date: Jan 2006
Posts: 65
Hey guys,

Just wondering if anyone knows a quick and easy (maybe some code around?) on how to set it so that certain items on the side panel dont show up on the smaller pages like registration screen etc. What I mean is for example I have setup google ads on the side panel and want them to disapear on the shorter pages for obvious reasons.

I imagine I can use some kind of /if statement but not sure what to build it against. For example how to tell it to skip this code if on submit.php or whatever.

Thanks,
Reply With Quote
  #2 (permalink)  
Old 06-02-2006, 06:59 AM
savant's Avatar
Constant Pligger
 
Join Date: Apr 2006
Location: UK
Posts: 1,181
on submit.php

after this like
PHP Code:
$main_smarty->assign('Story_Content_Tags_To_Allow'htmlspecialchars(Story_Content_Tags_To_Allow)); 
add something like this
PHP Code:
$main_smarty->assign('Show_google'true); 
now in your side panel .tpl
just do
PHP Code:
{if $Show_google eq 'true'}    
   
//code
{else}
   
//code
{/if} 
Reply With Quote
  #3 (permalink)  
Old 06-02-2006, 11:38 AM
Casual Pligger
 
Join Date: Jan 2006
Posts: 65
thanks!!! That should be fairly easy enough to hack together.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Page Variables Yankidank Wiki Articles 3 05-19-2011 09:21 AM
How to make a Digg-style FAQ page with JavaScript and jQuery mendim Questions and Comments 25 09-14-2010 12:27 AM
Admin Panel for 1.0 and above mismeflight Wiki Articles 0 03-04-2009 11:04 AM
Voting works on page 1, not page 2 jrothra Questions and Comments 3 08-02-2007 01:45 AM
[SOLVED] White space in my categories side panel AshMCairo Questions and Comments 5 07-20-2007 11:48 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development