Go Back   Pligg CMS Forum > Pligg Development > Bug Report

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-12-2007, 06:16 PM
Casual Pligger
 
Join Date: Sep 2006
Posts: 49
Thanks: 16
Thanked 2 Times in 2 Posts
[Fixed] Digital Nature - problem of category

Hi,

I installed the build 702 on my site, with the digital nature template.
There is one problem on the shakeit page : when one click on a category, we get as a result, the published stories of the category instead of the queued stories. This happen with each categories.
Do you have any ideas ?

http://www.creatifsculturels.fr

Thanks
Reply With Quote
  #2 (permalink)  
Old 02-15-2007, 03:59 AM
Casual Pligger
 
Join Date: Sep 2006
Posts: 49
Thanks: 16
Thanked 2 Times in 2 Posts
Perhaps my problem is not clear enough.
On this page : http://www.creatifsculturels.fr/shakeit.php
the URL of each category looks like : /index.php?category=categoryname
instead of : /shakeit.php?category=categoryname

But, when I enter manually for example this URL, it works : http://www.creatifsculturels.fr/shak...=Environnement

Any ideas ?

Thanks
Reply With Quote
  #3 (permalink)  
Old 02-15-2007, 06:15 AM
Casual Pligger
 
Join Date: Feb 2007
Location: England
Posts: 45
Thanks: 7
Thanked 18 Times in 12 Posts
EDIT: Scrap what I wrote below - the code doesn't seem to work in digitalnature, but does in mollio-beat. Hmm...

In digitalnature/sidebar_modules/categories.tpl you need to replace this code:

Quote:
<a href="{$category_url, $cat_array[thecat].safename}" style="margin-left:5px;">
{$cat_array[thecat].name}
</a>
with this code:

Quote:
{if $pagename eq "index"}
<a href="{$URL_maincategory, $cat_array[thecat].safename}" style="margin-left:5px;">{$cat_array[thecat].name}</a>
{elseif $pagename eq "shakeit"}
<a href="{$URL_queuedcategory, $cat_array[thecat].safename}" style="margin-left:5px;">{$cat_array[thecat].name}</a>
{else}
<a href="{$URL_maincategory, $cat_array[thecat].safename}" style="margin-left:5px;">{$cat_array[thecat].name}</a>
{/if}

Last edited by Simpatico; 02-15-2007 at 06:24 AM.
Reply With Quote
  #4 (permalink)  
Old 02-15-2007, 09:13 AM
Casual Pligger
 
Join Date: Sep 2006
Posts: 49
Thanks: 16
Thanked 2 Times in 2 Posts
Yes, it doesn't work in digitalnature. It's a bit strange...
Reply With Quote
  #5 (permalink)  
Old 02-15-2007, 09:17 AM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,579
Thanks: 255
Thanked 651 Times in 515 Posts
The sidebar categories in digital nature are cached. Ash did this to increase some performance. If you remove all the caching code around the category call in sidebar.tpl it should work like mollio-beat and yget
__________________
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:
  #6 (permalink)  
Old 02-15-2007, 12:27 PM
Casual Pligger
 
Join Date: Feb 2007
Location: England
Posts: 45
Thanks: 7
Thanked 18 Times in 12 Posts
The above code does work in digitalnature if you remove the caching code from /templates/digitalnature/sidebar.tpl - I've marked the code to remove with a '#' below:

Quote:
{if $cat_array neq ""}
{assign var=sidebar_module value="categories"}
#{assign var=sidebar_module_cache value="true"} {* enable caching for this module *}
#{assign var=sidebar_module_cache_id value="sidebar|category|".$templatelite.get.catego ry} {* unique cache id *}
#{assign var=sidebar_module_cache_lifetime value="-1"} {* cache will never expire *}
{include file=$the_template_sidebar_modules."/wrapper2.tpl"}
#{assign var=sidebar_module_cache value="false"} {* turn caching back off *}
{/if}
# = remove these lines.

Edit: And delete the 'Sidebar' folder from the 'Cache' folder in root.

Last edited by Simpatico; 02-15-2007 at 12:31 PM.
Reply With Quote
The Following User Says Thank You to Simpatico For This Useful Post:
  #7 (permalink)  
Old 02-16-2007, 04:47 AM
Casual Pligger
 
Join Date: Sep 2006
Posts: 49
Thanks: 16
Thanked 2 Times in 2 Posts
Ok, it works ! Thanks !!
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
[Fixed] Click "read more" the category links screw up mlbier General Help 12 02-15-2007 12:32 PM
[Fixed] Changing category url hooperman Bug Report 7 02-14-2007 07:19 PM
Digital Nature Footer JavaScrip Problem ucopious Bug Report 0 01-25-2007 10:40 PM
Digital Nature Official Forum kbeeveer46 "Digital Nature" 9 12-24-2006 11:24 PM
have resolved the story and category problem xieh Installation and Upgrade Help 2 01-17-2006 08:23 AM


Search Engine Friendly URLs by vBSEO 3.2.0