Go Back   Pligg CMS Forum > Pligg Help > General Help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-20-2006, 10:55 AM
New Pligger
 
Join Date: Feb 2006
Posts: 24
Thanks: 1
Thanked 0 Times in 0 Posts
Remove "about Pligg box" in sidebar

Hye. I tried to remove about Pligg box in sidebar by commenting lines :

{assign var=sidebar_module value="about_box"}{include file=$the_template_sidebar_modules."/wrapper.tpl"}


But seems doesn't works :/ How can I remove that ? and the "shakeit links" box ?
Reply With Quote
  #2 (permalink)  
Old 11-20-2006, 11:07 AM
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
That should work because I just tested it and it removed the about box. I think the other links you want to remove are misc_links_1
__________________
I accept donations for my time helping users like you on the forum and IRC.
Reply With Quote
  #3 (permalink)  
Old 11-20-2006, 11:42 AM
New Pligger
 
Join Date: Feb 2006
Posts: 24
Thanks: 1
Thanked 0 Times in 0 Posts
Yes you're right. My sidebar.tpl is like that :

Quote:
{config_load file="../libs/lang.conf"}

{assign var=sidebar_module value="misc_links_1"}{include file=$the_template_sidebar_modules."/wrapper2.tpl"}
<center>
<form action="{$my_base_url}{$my_pligg_base}/search.php" method="get" name="thisform" id="thisform">
<input type="text" size="25" name="search" id="searchsite" value="{$templatelite.get.search}"/>
<input type="submit" value="Search" class="submit" />
</form>
</center>
<!-- {if $pagename eq "index" || $pagename eq "shakeit"}
{assign var=sidebar_module value="sidebar_stories"}{include file=$the_template_sidebar_modules."/wrapper.tpl"}
{/if} -->

{if $user_authenticated ne true} {* show only if NOT logged in *}
<!-- {if $pagename eq "index"} {* show this only if on the index page *}
{assign var=sidebar_module value="about_box"}{include file=$the_template_sidebar_modules."/wrapper.tpl"}
{/if} -->
{assign var=sidebar_module value="login"}{include file=$the_template_sidebar_modules."/wrapper.tpl"}
{else} {* show if logged in *}
{assign var=sidebar_module value="logged_in"}{include file=$the_template_sidebar_modules."/wrapper.tpl"}
{/if}

{* mini tag cloud *}
{assign var=sidebar_module value="tags"}{include file=$the_template_sidebar_modules."/wrapper.tpl"}

{if $cat_url neq ""}
{assign var=sidebar_module value="categories"}{include file=$the_template_sidebar_modules."/wrapper2.tpl"}
{/if}

<!-- {assign var=sidebar_module value="misc_links_2"}{include file=$the_template_sidebar_modules."/wrapper.tpl"} -->

{assign var=sidebar_module value="rss"}{include file=$the_template_sidebar_modules."/wrapper2.tpl"}
So the boxs are correctly not present, but all the sidebar is moved :/ :

like it : http://minaddikts.com/Witmn/

Why my sidebar is not correctly placed ?

Last edited by yom23; 11-20-2006 at 12:57 PM..
Reply With Quote
  #4 (permalink)  
Old 11-21-2006, 09:41 AM
New Pligger
 
Join Date: Feb 2006
Posts: 24
Thanks: 1
Thanked 0 Times in 0 Posts
Anyone have an idea ? :(
Reply With Quote
  #5 (permalink)  
Old 11-21-2006, 09:43 AM
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
I'd backup your lang.conf file and reinstall Pligg. It's going to take less time to do that then to find out what you broke and try to fix it.
__________________
I accept donations for my time helping users like you on the forum and IRC.
Reply With Quote
  #6 (permalink)  
Old 11-21-2006, 01:55 PM
New Pligger
 
Join Date: Feb 2006
Posts: 24
Thanks: 1
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kbeeveer46 View Post
I'd backup your lang.conf file and reinstall Pligg. It's going to take less time to do that then to find out what you broke and try to fix it.
Lol. It's not worthwhile, because in fact there is a bug if I comment the follwing lines (but not bugged in shakeit page) :

Code:
{if $pagename eq "index" || $pagename eq "shakeit"}
	 <!-- {assign var=sidebar_module value="sidebar_stories"}{include file=$the_template_sidebar_modules."/wrapper.tpl"} -->
{/if}

Whats wrong ? There is a bug only in Firefox and in the frontpage :/ How can I do to hide or comment the queued news module in sidebar ? Thanks for your help.
Reply With Quote
  #7 (permalink)  
Old 11-21-2006, 03:19 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
I have no idea what's wrong. There are too many things you could have done to break it.
__________________
I accept donations for my time helping users like you on the forum and IRC.
Reply With Quote
  #8 (permalink)  
Old 11-21-2006, 03:53 PM
New Pligger
 
Join Date: Feb 2006
Posts: 24
Thanks: 1
Thanked 0 Times in 0 Posts
Euh..Sorry but I reinstalled Pligg totally, use the Paul01 theme, and in sidebar.tpl, when I comment :
Quote:
<!-- {assign var=sidebar_module value="sidebar_stories"}{include file=$the_template_sidebar_modules."/wrapper.tpl"} -->
this line, my sidebar is broken :/ Nobody have this problem with Paul01 theme ? or Whant could I do ?
Reply With Quote
  #9 (permalink)  
Old 11-21-2006, 05:51 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
oooooh, in .tpl files you don't use <!--- ---> to comment things out. Try using {* *}
__________________
I accept donations for my time helping users like you on the forum and IRC.
Reply With Quote
  #10 (permalink)  
Old 11-21-2006, 06:20 PM
New Pligger
 
Join Date: Feb 2006
Posts: 24
Thanks: 1
Thanked 0 Times in 0 Posts
Lol, sorry. Yes it works better now pp
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 Off
[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
Pligg integration with SMF Forum autoinc Modification Tutorials 64 05-19-2008 02:22 AM
Left and right sidebar for Pligg 9.6 JPR75 Template Support 2 12-20-2007 05:25 PM


Search Engine Friendly URLs by vBSEO 3.2.0