I would like to remove the sidebar on my comments page. Anyone have any advice on how to accomplish this?
All pages are made from a plethora of .tpl files. So I am unsure how to make my template not have certain .tpl files on different pages.
Thanks!
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| How to Remove the sidebar on certain pages. |
| |||
|
With dollars5 help and a little research i was able to solve this. I will explain for those other code handicapped people out there. I wanted to remove the sidebar from the user and comments page. Here is the line of code I used. {if $pagename neq "story" && $pagename neq "user"}{include file=$tpl_right_sidebar.".tpl"}{/if} The double && symbol is what took me the longest to figure out -_- |
| |||
|
so does this mean that if I use the following code, it will show the sidebar 'only' on the Live page? I'm using 9.7 though. Quote:
|
| ||||
| Removing Sidebar
I have used this code to successfully remove the side bar in all of my admin pages, but it will not work for any pages associated with modules, not even "admin_modules" when all of the other "admin" files will work. Any ideas? Quote:
|
| ||||
| Sidebar Issue
Anyone out there also trying to remove the sidebar running into this problem?
|
| ||||
| Sidebar Removal
Anyone know how to remove the sidebar on certain pages using the altered code below in pligg.tpl? I can't get it to work for certain pages... {if $pagename neq "story" && $pagename neq "filename"}{include file=$tpl_right_sidebar.".tpl"}{/if} Also, can anyone assist in making pages with successfully removed sidebar extend the full width of the page? I've tried adding files to the code in pligg.tpl that extends the "editor" page to 100% but it won't work for "live" for example. <div id="contentbox" {if $pagename eq "editor" && $pagename neq "filename"}style="width:100%"{/if}> Thanks |
| ||||
| Remove Sidebar / 100% Width
Anyone able to help on this one? Thx |
| |||
|
Spartacus, since no one answered, I had to work it out thru trial and error. Don't even know if this is the most optimized code, but it served the purpose. In this case, i was able to hide the sidebar on the live page and story details. Here's how. Open up pligg.tpl and look for the line that says <div id="content-wrap2">, copy/paste the following and change the highlighted text to the name of the page you want to hide the sidebar to. The following code, for example, hides the sidebar in the live and story (summary) page. Since I don't have any knowledge of php, just couldn't figure out what the heck && meant ![]() Dirty job, but it helped. Hope it serves your purpose too ![]() Quote:
Last edited by nothingman; 10-12-2007 at 01:05 PM.. |
| ||||
| Sidebar Solved
nothingman I finally made it work using your code. I had tried every conceivable thing much like your solution but I found where I messed up. I was placing the new code outside of the trailing arrow versus inside: <div id="contentbox" {if $pagename eq "live"}style="width:100%"{/if}{if $pagename eq "story"}style="width:100%"{/if}> Despite this working in Firefox, I am still having trouble making the page align "center" in IE6. Are you having the same problem? The page aligns to the left in IE6... Thx Last edited by spartacus; 10-12-2007 at 02:48 PM.. |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help with disabling sidebar on certain pages! | dollars5 | General Help | 6 | 09-21-2007 09:19 AM |
| Remove Sidebar From Story Pages | MrMelB | "yget" | 3 | 03-28-2007 08:19 PM |
| How to remove the sidebar? | PurpleCow | General Help | 0 | 12-11-2006 02:04 AM |
| How do I make the footer sit BELOW the sidebar on all pages? | littledipper | Template Support | 5 | 11-29-2006 04:54 PM |
| Remove "about Pligg box" in sidebar | yom23 | General Help | 9 | 11-21-2006 06:20 PM |







Linear Mode

