Go Back   Pligg CMS Forum > Pligg Development > Pligg Templates > Template Support > "yget"

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-28-2007, 07:24 PM
New Pligger
 
Join Date: Mar 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Remove Sidebar From Story Pages

Hello!
First I just wanted to let you guys know that I love Pligg! It is great.

Is it possible to have the sidebar on the main page different from
the sidebar on the story pages? Or even remove it from the story pages?

Thanks!
Reply With Quote
  #2 (permalink)  
Old 03-28-2007, 07:35 PM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,547
Thanks: 254
Thanked 649 Times in 513 Posts
Open Pligg.tpl and find
Code:
{include file=$tpl_right_sidebar.".tpl"}
If you don't want to show the sidebar on the story page you can change it to
Code:
{if $pagename neq "story"}{include file=$tpl_right_sidebar.".tpl"}{/if}
__________________
I accept donations for my time helping users like you on the forum and IRC.
Reply With Quote
The Following User Says Thank You to kbeeveer46 For This Useful Post:
  #3 (permalink)  
Old 03-28-2007, 07:37 PM
onelessthang's Avatar
Constant Pligger
 
Join Date: Feb 2007
Location: Dallas, TX - USA
Posts: 120
Thanks: 39
Thanked 32 Times in 16 Posts
I do not know exactly why you would remove the sidebar when you view a story, plus it would be tricky since the story and sidebar tpls are called by the primary php page.

Now changing what shows up on the sidebar is a different matter,you can do that with a simple check if the name of the page is story.

Something like:
Code:
{if $pagename eq "story"}
choose to show something here
{else} 
choose to show something else here
{/if}
I have not tested it, but I think that should work. I am sure one of the developers can confirm this.

Be Well,
OneLessThang
Reply With Quote
The Following User Says Thank You to onelessthang For This Useful Post:
  #4 (permalink)  
Old 03-28-2007, 08:19 PM
New Pligger
 
Join Date: Mar 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks for the replies!
Perfect!

What I am trying to do is use that space on the story pages for ad space since if a viewer wanted to use something on the sidebar, they could just go back to the home page.
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

BB 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
how to completely REMOVE links from the title in the full story page? VictorML Customization Assistance 5 09-18-2008 09:26 AM
Remove Story after bury Unknown General Help 0 12-15-2007 02:17 AM
How to Remove the sidebar on certain pages. adampoots Template Support 12 10-13-2007 11:10 AM
Displaying some information from story in sidebar aaronpais Modification Tutorials 0 06-02-2007 03:09 PM
How do I make the footer sit BELOW the sidebar on all pages? littledipper Template Support 5 11-29-2006 04:54 PM


Search Engine Friendly URLs by vBSEO 3.2.0