Sidebar Stories by Category showing all instead?

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 01-24-2010, 02:23 AM
New Pligger
Pligg Version: 1.0.3
 
Join Date: Dec 2008
Posts: 6
When my user is browsing a specific category page, I would like the Sidebar Stories module to display only the top stories from that category. I looked at sidebarstories.php in the libs folder and this code:
Code:
if ($this->category)
		{
			$thecat = get_cached_category_data('category_safe_name', $this->category);
			$search->category = $thecat->category_id;
		}
makes me think that it SHOULD be working right, yet my category sidebar stories displays top news from all categories even though it says 'Top Stories in Category1'. It is not the categories that are messed up, just the sidebar stories.

I found two people talking on the same subject, one found a solution but he had a previous version of Pligg and it appears that some of the changes he made are standard in my version (1.0.3), and the other nobody helped out.

This seems like it should be a simple fix. I'm using Pligg 1.0.3, Fusion Template, URL Method 2 (made changes to htaccess), and I just recently upgraded from 1.0.0 so maybe something went wrong there (although everything else is working so I dunno).

Thanks for any help in advance!
Reply With Quote
  #2 (permalink)  
Old 01-26-2010, 04:09 PM
New Pligger
Pligg Version: 1.0.3
 
Join Date: Dec 2008
Posts: 6
Surprised nobody was able to help, the fix was easy.

I changed $this->category in the code above to sanitize($_REQUEST['category'], 1)
Reply With Quote
  #3 (permalink)  
Old 03-16-2010, 05:26 AM
New Pligger
 
Join Date: Apr 2008
Posts: 16
Thanks, this fix works.
Reply With Quote
  #4 (permalink)  
Old 05-12-2010, 09:01 AM
New Pligger
 
Join Date: Jun 2006
Posts: 10
Quote:
Originally Posted by bopxb View Post
Surprised nobody was able to help, the fix was easy.

I changed $this->category in the code above to sanitize($_REQUEST['category'], 1)
this is working, thx!

Russian pligg community
Reply With Quote
  #5 (permalink)  
Old 08-02-2011, 10:47 AM
New Pligger
Pligg Version: ok
 
Join Date: Jul 2011
Posts: 1
Quote:
Originally Posted by bopxb View Post
Surprised nobody was able to help, the fix was easy.

I changed $this->category in the code above to sanitize($_REQUEST['category'], 1)



Kindly assist me. I see there are two occurrences of '$this->category' in the lines of code to be changed. exactly how shold i put it?
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Control of meta description - categories Divisive Cotton Questions and Comments 71 03-29-2011 10:03 PM
How to include Sidebar Modules only category and categroy stories page amsy Questions and Comments 1 01-28-2009 03:21 AM
Main Category Stories Not Showing normznormz Questions and Comments 3 07-24-2008 06:00 AM
Show Top Stories by Category in Sidebar - A How To TrailofDead Questions and Comments 0 04-23-2007 10:30 PM
category related sidebar stories Andtony Questions and Comments 0 04-07-2007 11:55 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development