Results 1 to 5 of 5
  1. #1
    New Pligger bopxb's Avatar
    Joined
    Dec 2008
    Posts
    6
    Thanks
    Received:0
    Given: 0

    Sidebar Stories by Category showing all instead?

    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!

  2. #2
    New Pligger bopxb's Avatar
    Joined
    Dec 2008
    Posts
    6
    Thanks
    Received:0
    Given: 0
    Surprised nobody was able to help, the fix was easy.

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

  3. #3
    New Pligger inetmagus's Avatar
    Joined
    Apr 2008
    Posts
    16
    Thanks
    Received:0
    Given: 0
    Thanks, this fix works.

  4. #4
    New Pligger HitMan's Avatar
    Joined
    Jun 2006
    Posts
    10
    Thanks
    Received:0
    Given: 0

    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!

  5. #5
    New Pligger samnjogu's Avatar
    Joined
    Jul 2011
    Posts
    1
    Thanks
    Received:0
    Given: 0
    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?

Similar Threads

  1. sidebar stories not showing up
    By kevin4uguys in forum Questions & Comments
    Replies: 2
    Last Post: 09-17-2010, 01:32 PM
  2. Showing images in sidebar top stories - how?
    By whoopy in forum Questions & Comments
    Replies: 4
    Last Post: 05-27-2009, 06:49 AM
  3. Main Category Stories Not Showing
    By normznormz in forum Questions & Comments
    Replies: 3
    Last Post: 07-24-2008, 02:00 AM
  4. Show Top Stories by Category in Sidebar - A How To
    By TrailofDead in forum Questions & Comments
    Replies: 0
    Last Post: 04-23-2007, 06:30 PM
  5. category related sidebar stories
    By Andtony in forum Questions & Comments
    Replies: 0
    Last Post: 04-07-2007, 07:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Web Hosting Services by Midphase Dreamhost Web Hosting Donate to Pligg