Go Back   Pligg CMS Forum > Pligg Development > Bug Report

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-04-2006, 05:18 PM
Constant Pligger
 
Join Date: Feb 2006
Posts: 120
Thanks: 5
Thanked 1 Time in 1 Post
[bug fix] discarded stories are dipalyed in user profile

Discarded stories are displayed in the user profile in the "shaken" view, which is all stories the user voted for (don't know why its called shaken...)

Here is the fix for that:
Open user.php and under function do_history():

replace:
$rows = $db->get_var("SELECT count(*) FROM links WHERE link_author=$user->id AND");
$links = $db->get_col("SELECT link_id FROM links WHERE link_author=$user->id AND ORDER BY link_date DESC LIMIT $offset,$page_size");

with:
$rows = $db->get_var("SELECT count(*) FROM links WHERE link_author=$user->id AND link_status !='discard'");
$links = $db->get_col("SELECT link_id FROM links WHERE link_author=$user->id AND link_status !='discard' ORDER BY link_date DESC LIMIT $offset,$page_size");
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
v9.5: Comments to discarded stories tbones Bug Report 6 01-28-2008 06:49 AM
No pagination for stories in profile kbeeveer46 Bug Report 0 08-07-2006 01:22 AM
User vote count shouldn't include discarded stories gragland Bug Report 0 07-26-2006 08:14 PM
How can I add new fields to user profile gragland General Help 0 07-18-2006 12:03 AM
[bug fix] add pagination to user profile gragland Bug Report 3 07-08-2006 09:33 AM


Search Engine Friendly URLs by vBSEO 3.2.0