Author Topic: [MOD] Buddy List || Friend List  (Read 151155 times)

0 Members and 1 Guest are viewing this topic.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Buddy List || Friend List
« Reply #105 on: October 28, 2007, 07:50:48 PM »
So ... this is from postcard page after click link in email message ?
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline glitzer

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • over 7000 E-Cards
Re: [MOD] Buddy List || Friend List
« Reply #106 on: October 28, 2007, 08:03:28 PM »
*lol*

no this is my member profile with my avatar  :D

member_profile.html

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Buddy List || Friend List
« Reply #107 on: October 28, 2007, 08:07:08 PM »
Quote
$friends_id .= (($keywords != "" ) ? ", " : "")."<a href=\"".$site_sess->url($friendslist_url)."\">$fname</a><br>";

for:

Code: [Select]
$friends_id .= (($keywords != "" ) ? ", " : "")."<a href=\"".$site_sess->url(ROOT_PATH . "member.php?action=showprofile&" . URL_USER_ID . "=" . $user_id)."\">$fname</a><br>";
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline glitzer

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • over 7000 E-Cards
Re: [MOD] Buddy List || Friend List
« Reply #108 on: October 28, 2007, 08:16:21 PM »
Hi Thunderstrike.

thats a gooood way!! The link is now correct, but when i click on the link it donīt open the site of the friend..it still beeing on the same site.
You can try it on my site:

http://www.e-cardss.com/pics/member.php?action=showprofile&user_id=6056

Please click a member..but there is no change to the friend.

This is the friendslist code in members:#
//-----------------------------------------------------
//--- BEGIN FRIENDSLIST MOD ---------------------------
//-----------------------------------------------------
//FRIENDS LIST MOD
   
 if (($user_info['user_level'] != GUEST) && ($user_info['user_id'] != $user_row['user_id'])) {
    $friendslist_url = $self_url;
    $friendslist_url .= (!empty($mode)) ? ((strpos($friendslist_url, '?') !== false) ? "&amp;" : "?")."mode=".$mode : "";
    $friendslist_url .= strpos($friendslist_url, '?') !== false ? "&amp;" : "?";
   
    if (check_friendslist($user_row['user_id'])) {
      $friendslist_url .= "action=removefromfriendslist&amp;id=".$user_row['user_id']."";
      $friendslist_button = "<a href=\"".$site_sess->url($friendslist_url)."\"><img src=\"".get_gallery_image("friendslist_yes.gif")."\" border=\"0\" alt=\"\" /></a>";
    }
    else {
      $friendslist_url .= "action=addtofriendslist&amp;id=".$user_row['user_id']."";
      $friendslist_button = "<a href=\"".$site_sess->url($friendslist_url)."\"><img src=\"".get_gallery_image("friendslist_no.gif")."\" border=\"0\" alt=\"\" /></a>";
    }
  }
  else {
    $friendslist_button = "<img src=\"".get_gallery_image("friendslist_off.gif")."\" border=\"0\" alt=\"\" />";
  }
$site_template->register_vars("lang_friendslist_add", $lang['lang_friendslist_add']);
        $sql_friends = "SELECT *
        FROM ".USERS_TABLE."
        WHERE user_id = ".$user_row['user_id']."";
   $friends_row = $site_db->query_firstrow($sql_friends);
   
  if (!empty($friends_row['user_friend_ids'])) {
    $split_keywords = explode(" ", $friends_row['user_friend_ids']);
    $friends_id = "";
    foreach ($split_keywords as $key => $val) {
      $sql1 = "SELECT user_name
        FROM ".USERS_TABLE."
        WHERE user_id = $val";
   $friends_name = $site_db->query_firstrow($sql1);
   $fname = $friends_name['user_name'];

$friends_id .= (($keywords != "" ) ? ", " : "")."<a href=\"".$site_sess->url(ROOT_PATH . "member.php?action=showprofile&" . URL_USER_ID . "=" . $user_id)."\">$fname</a><br>";
    }
  }
  else {
    $friends_id = REPLACE_EMPTY;
  }


       $site_template->register_vars(array(
      "lang_friendslist_add", $lang['lang_friendslist_add'],
     "user_friends" => $friends_id
    ));   
 


//--- END FRIENDSLIST MOD --


Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Buddy List || Friend List
« Reply #109 on: October 28, 2007, 08:29:14 PM »
Quote
$friends_id .= (($keywords != "" ) ? ", " : "")."<a href=\"".$site_sess->url(ROOT_PATH . "member.php?action=showprofile&" . URL_USER_ID . "=" . $user_id)."\">$fname</a><br>";

for:

Code: [Select]
$friends_id .= (($keywords != "" ) ? ", " : "")."<a href=\"".$site_sess->url(ROOT_PATH . "member.php?action=showprofile&" . URL_USER_ID . "=" . $friends_row['user_id'])."\">$fname</a><br>";
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline glitzer

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • over 7000 E-Cards
Re: [MOD] Buddy List || Friend List
« Reply #110 on: October 28, 2007, 08:34:24 PM »

the same..sorry :(

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Buddy List || Friend List
« Reply #111 on: October 28, 2007, 08:45:55 PM »
Sorry ... I no get what you want ... is say $friends_row for see friends profile ... if no work ... is no my MOD so I no support ...
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline glitzer

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • over 7000 E-Cards
Re: [MOD] Buddy List || Friend List
« Reply #112 on: October 28, 2007, 08:49:46 PM »
ok, thanks for trying help me!
greets
glitzer

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Buddy List || Friend List
« Reply #113 on: October 28, 2007, 09:53:50 PM »
Ok, I think I get ...

find:

Quote
$sql1 = "SELECT user_name
        FROM ".USERS_TABLE."
        WHERE user_id = $val";
   $friends_name = $site_db->query_firstrow($sql1);
   $fname = $friends_name['user_name'];

$friends_id .= (($keywords != "" ) ? ", " : "")."<a href=\"".$site_sess->url(ROOT_PATH . "member.php?action=showprofile&" . URL_USER_ID . "=" . $user_id)."\">$fname</a><br>";

replace:

Code: [Select]
$sql1 = "SELECT " . get_user_table_field("", "user_id") . get_user_table_field(", ", "user_name") . "
        FROM ".USERS_TABLE."
        WHERE " . get_user_table_field("", "user_id") . " = $val";
   $friends_name = $site_db->query_firstrow($sql1);
   $fid = $friends_name[$user_table_fields['user_id']];
   $fname = $friends_name[$user_table_fields['user_name']];

$friends_id .= (($keywords != "" ) ? ", " : "")."<a href=\"".$site_sess->url(ROOT_PATH . "member.php?action=showprofile&" . URL_USER_ID . "=" . $fid)."\">" . format_text(trim($fname), 2) . "</a><br>";
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline glitzer

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • over 7000 E-Cards
Re: [MOD] Buddy List || Friend List
« Reply #114 on: October 28, 2007, 10:01:52 PM »
yeeeeeah!
Thats it!

Thunderstrike du bist ein held! Hab erst jetzt rausgefunden das du deutsch sprichst  :mrgreen:

THANK YOU!!!  :D

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Re: [MOD] Buddy List || Friend List
« Reply #115 on: October 28, 2007, 10:44:50 PM »
Did anyone try insted of PM notify, e-mail notify?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Buddy List || Friend List
« Reply #116 on: October 28, 2007, 11:09:21 PM »
Quote
e-mail notify?

Which email notify ?
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Re: [MOD] Buddy List || Friend List
« Reply #117 on: October 29, 2007, 05:42:28 PM »
You will recive e-mail notiry if someone add you to buddy list.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Buddy List || Friend List
« Reply #118 on: October 29, 2007, 05:43:04 PM »
Oh ok no - I no try before ...
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline www.katzen.ag

  • Jr. Member
  • **
  • Posts: 75
  • KatzenAG - das grosse Katzenportal im Internet
    • View Profile
    • KatzenAG - das grosse Katzenportal im Internet
Re: [MOD] Buddy List || Friend List
« Reply #119 on: November 16, 2007, 11:30:34 PM »
Hello gentleman,

does this Mod works with 1.7.1 ??

Thanks..
KatzenAG - das grosse Katzenportal im Internet