Go Back   Pligg CMS Forum > Pligg Development > Bug Report

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-08-2006, 03:25 AM
Constant Pligger
 
Join Date: Feb 2006
Posts: 120
Thanks: 5
Thanked 1 Time in 1 Post
[bug fix] add pagination to user profile

just put this at the very bottom os user_center.tpl:

{php}
Global $page_size, $rows;
do_pages($rows, $page_size, getmyurl("user2", $user_login, $view));
{/php}
Reply With Quote
  #2 (permalink)  
Old 07-08-2006, 08:59 AM
jackdaw's Avatar
Casual Pligger
 
Join Date: Apr 2006
Posts: 64
Thanks: 19
Thanked 4 Times in 3 Posts
NICE! Any way that this can be tweaked to work with topstories_center.tpl too?
Reply With Quote
  #3 (permalink)  
Old 07-08-2006, 09:20 AM
jackdaw's Avatar
Casual Pligger
 
Join Date: Apr 2006
Posts: 64
Thanks: 19
Thanked 4 Times in 3 Posts
Right, I borrowed this line from the bottom of shakeit_center.tpl

Code:
do_pages($rows, $page_size, getmyurl("shakeit")); // show the "page" buttons at the bottom
And tweaked it into this, at the bottom of topstories_center.tpl:

Code:
do_pages($rows, $page_size, getmyurl("topstories")); // show the "page" buttons at the bottom
It seems to work... but now suddenly I realize that the 'top stories' sort order is strange. Why is the most voted on story not on top ?!? See http://sjey.com/topstories.php

I don't think the problem came with my tweaking here. I tried deleting this line again, and the same stories get mentioned on the first/only top stories page, page buttons or not.

Also, I see that eg. 3d has the same problem (or feature?) on his site http://www.inboxnews.com/topstories.

Last edited by jackdaw; 07-08-2006 at 09:51 AM..
Reply With Quote
  #4 (permalink)  
Old 07-08-2006, 09:33 AM
jackdaw's Avatar
Casual Pligger
 
Join Date: Apr 2006
Posts: 64
Thanks: 19
Thanked 4 Times in 3 Posts
Hmm, the last three pages are totally blank, when I use my page button 'solution' above. Are those the discarded stories, or something like that ?

(and by the way... I now stumbled upon this post where ngrad does the exact same tweaking as me. So I guess it is in the right direction)

Last edited by jackdaw; 07-08-2006 at 09:50 AM..
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
User Profile & Community jacksparrow Module Requests 3 03-16-2008 11:56 PM
After successful registration user cannot directed toward profile page aryan3 General Help 0 11-14-2007 12:58 PM
No pagination for stories in profile kbeeveer46 Bug Report 0 08-07-2006 01:22 AM
How can I add new fields to user profile gragland General Help 0 07-18-2006 12:03 AM
[bug fix] discarded stories are dipalyed in user profile gragland Bug Report 0 07-04-2006 05:18 PM


Search Engine Friendly URLs by vBSEO 3.2.0