Go Back   Pligg Forum > Pligg Development > Pligg Templates
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-02-2006, 02:49 AM
can8dn can8dn is offline
Casual Pligger
 
Join Date: Jan 2006
Posts: 78
Downloads: 9
Uploads: 0
Thanks: 0
Thanked 1 Time in 1 Post
Page dependant side panel.

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
Sponsored Links
Check out the New Modules at the Pligg Pro Shop.
  #2 (permalink)  
Old 06-02-2006, 04:59 AM
savant's Avatar
savant savant is offline
Pligg Koder
 
Join Date: Apr 2006
Location: UK
Posts: 1,234
Downloads: 7
Uploads: 0
Thanks: 66
Thanked 210 Times in 151 Posts
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, 09:38 AM
can8dn can8dn is offline
Casual Pligger
 
Join Date: Jan 2006
Posts: 78
Downloads: 9
Uploads: 0
Thanks: 0
Thanked 1 Time in 1 Post
thanks!!! That should be fairly easy enough to hack together.
Reply With Quote
Reply



Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Content on seperate page cryptkeeper General Help 12 02-25-2007 01:42 PM
tags take me to error page? lithman General Help 2 05-14-2006 08:05 AM
The Page After you Log in nickaster Pligg Templates 1 04-14-2006 04:47 AM
need to refresh every page Beckme Bug Report 0 02-24-2006 11:45 PM
When I try to Get to Admin Login Page Redirects to Wierd Page deezin Installation and Upgrade Help 5 02-09-2006 01:48 AM


LinkBacks Enabled by vBSEO 3.0.0