Go Back   Pligg CMS Forum > Pligg Development > Bug Report

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-08-2007, 01:22 PM
AnAlienHolakres3's Avatar
Coder
 
Join Date: Jul 2007
Location: Prague
Posts: 118
Thanks: 7
Thanked 112 Times in 40 Posts
Send a message via ICQ to AnAlienHolakres3
Exclamation Friend Module BuG searched&destroyed :)

Hello folks, i´ve discovered that "show me users who added you as a friend" button does not work correctly, beceause when you deleted user who selected you as a friend, this user was not in list of "show me users who added you as a friend" anymore.

I did some check and there is a solution: Open your friend.php in your libs folder and replace function get_friend_list2 with this:

PHP Code:
function get_friend_list_2()
    {
        
// returns an array of people who have added you as a friend
        
global $db$current_user;
        
$friends $db->get_results("SELECT " table_users ".user_login, " table_users ".user_avatar_source, " table_users ".user_email, " table_users ".user_id , " .table_users ".user_lastactivity , " table_users ".user_logged_in FROM " table_friends " INNER JOIN " table_users " ON " table_friends ".friend_from = " table_users ".user_id WHERE ((" table_friends ".friend_to)= " $current_user->user_id ")");
        return 
$friends;
    } 
There was an error with JOIN.
Hope it helps someone
Reply With Quote
The Following User Says Thank You to AnAlienHolakres3 For This Useful Post:
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
Fixes to Profile Extra Fields Module v0.2 and Extended Profile Module v0.1 redwine Modification Tutorials 3 10-18-2008 10:28 AM
Updated Pligg Pro Module Pack chuckroast Module Sales 24 03-06-2008 03:21 AM
Sidebar Friends Module with messaging and activity AnAlienHolakres3 Modification Tutorials 31 02-09-2008 06:54 AM
READ ME FIRST: Pligg Module Thread Rules Yankidank Pligg Modules 0 12-01-2007 04:16 PM
Lightbox module is hanging when sending a msg to a friend elquiosco General Help 2 03-24-2007 06:50 PM


Search Engine Friendly URLs by vBSEO 3.2.0