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

0 Members and 1 Guest are viewing this topic.

Offline Loda

  • Sr. Member
  • ****
  • Posts: 353
    • View Profile
    • Fotosucht Schweiz
Re: [MOD] Buddy List || Friend List
« Reply #15 on: May 17, 2007, 11:21:10 AM »
yes you do so..
here my friendslist.php with
user country, gender, online status and user guestbook mod link

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: [MOD] Buddy List || Friend List
« Reply #16 on: May 17, 2007, 11:23:04 AM »
wow it's great! i will write this addons. And do you have the main changes in english? I didn't translated it  :?
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline kai

  • Administrator
  • Addicted member
  • *****
  • Posts: 1.421
    • View Profile
    • 4images - Image Gallery Management System
Re: [MOD] Buddy List || Friend List
« Reply #17 on: May 17, 2007, 12:05:22 PM »
Great mod!
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: [MOD] Buddy List || Friend List
« Reply #18 on: May 17, 2007, 12:28:00 PM »
Thank you very much  :lol:

:Download updated: With icons from Loda

ADDONS
1-. MOD USER_GENDER/SEX =>  If you have installed this mod with a field in users table named user_gender or user_sex with  m (man), w (woman) or b (bisex) values
At the next modifications I use user_gender If you have user_sex please overwrite user_gender to user_sex
Search:
Code: [Select]
$mode_types_text = array($lang['lang_sort_username'],In the same line, add after:
Code: [Select]
$lang['lang_sort_gender'],/code]

Search:
[code]$mode_types = array('user_name',
In the same line, add after:
Code: [Select]
'user_gender',
Search:
Code: [Select]
case 'user_joindate':
$order_by = "user_joindate $sort_order";
break;
Add Before:
Code: [Select]
        case 'user_gender':
            $order_by = "user_gender $sort_order";
            break;


=>That last steps do that you can order your friends by sex.

Search:
Code: [Select]
  $user_id = "";Add After:
Code: [Select]
  $user_gender = "";
Search:
Code: [Select]
    $user_name = "<a href=\"".$site_sess->url($user_profile_link)."\">".htmlspecialchars($user_row['user_name'])."</a>";Add After:
Code: [Select]
$user_gender = "<img src=\"".get_gallery_image(htmlspecialchars($user_row['user_gender'])).".gif\">".$var_name." ";
Search:
Code: [Select]
align=\"left\">".$session_ip." ".$user_name.In the same line, add after::
Code: [Select]
" ".$user_gender.
2-. Member Personal Photo in the list:

Search:
Code: [Select]
  $user_id = "";Add After:
Code: [Select]
  $user_pic=""; //Member Photo
Search:
Code: [Select]
    $user_name = "<a href=\"".$site_sess->url($user_profile_link)."\">".htmlspecialchars($user_row['user_name'])."</a>";Add After:
Code: [Select]
// Show Member Personal Photo
if(($config['userpic'])&&($user_row['userpic'])){
    $user_pic =   "<a href=\"".$site_sess->url($user_profile_link)."\"><img src=\"".$site_sess->url(ROOT_PATH."data/userpic/".$user_row['userpic'])."\"></a>";
}

Search:
Code: [Select]
align=\"left\">".$session_ip." ".$user_name.In the same line, add after:
Code: [Select]
"<br>".$user_pic.

3-. PM icon in the list:
Search:
Code: [Select]
<td class=\"head2\" align=\"center\">".$lang['email']."</td>In the same line, add after::
Code: [Select]
\n<td class=\"head2\" align=\"center\">".$lang['lang_friendslist_pm']."</td>
Search:
Code: [Select]
  $user_id = "";Add after:
Code: [Select]
  $user_pm_button=""; //IF YOU HAVE PMS ACTIVATE
Search:
Code: [Select]
    $user_name = "<a href=\"".$site_sess->url($user_profile_link)."\">".htmlspecialchars($user_row['user_name'])."</a>";Add after:
Code: [Select]
//PM
if($config['pm']){
$user_pm_button = "<a href=\"".$site_sess->url(ROOT_PATH."pm.php?action=new&user_id=".$user_id)."\" /><img src=\"".get_gallery_image("pm.gif")."\" border=\"0\" alt=\"".$lang['pm_user_pm_alt']."\" /></a>";
}

Search:
Code: [Select]
    $userlist .= "<td valign=\"center\" align=\"center\">".$user_email_button."</td>\n";Add after:
Code: [Select]
    $userlist .= "<td valign=\"center\" align=\"center\">".$user_pm_button."</td>\n";
soon .. addons from loda : user country, gender, online status and user guestbook mod link[/code]
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline Loda

  • Sr. Member
  • ****
  • Posts: 353
    • View Profile
    • Fotosucht Schweiz
Re: [MOD] Buddy List || Friend List
« Reply #19 on: May 17, 2007, 10:41:02 PM »
Addon user status:
search:
Code: [Select]
<td class=\"head2\" align=\"center\">".$lang['user_name']."</td>\nadd after in the same line:
Code: [Select]
<td class=\"head2\" align=\"center\">Status:</td>\nsearch:
Code: [Select]
$user_name = "";add after
Code: [Select]
$user_status = "";search:
Code: [Select]
    $user_join_date = (isset($user_row['user_joindate'])) ? format_date($config['date_format'], $user_row['user_joindate']) : REPLACE_EMPTY;
add after:
Code: [Select]
$user_status = ($user_row['user_lastaction'] >= (time() - 300) && ((isset($user_row['user_invisible']) && $user_row['user_invisible'] == 0) || $user_info['user_level'] == ADMIN)) ? " <img src=\"".get_gallery_image("user_online.gif")."\" border=\"0\" alt=\"online\" />" : "<img src=\"".get_gallery_image("user_offline.gif")."\" border=\"0\" alt=\"Offline\" />";
search:
Code: [Select]
    $userlist .= "<td valign=\"top\" align=\"left\"> ".$user_name." </td>\n";
add after:
Code: [Select]
$userlist .= "<td valign=\"top\" align=\"center\">".$user_status."</td>\n";   
soon.. the other addons..

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: [MOD] Buddy List || Friend List
« Reply #20 on: May 18, 2007, 01:00:18 AM »
hehe thank you Loda for the addons  :lol:

Ok! here is the addon that show a list in your profile of the last users that added you as a friend.
You can show in you profile the number of users that you want. Here is a photo of the addon:



For the addon I had two options:
1-. Search in all users table, the users than added me as a friend and write it in my profile
or
2-. When someone add a friend modify my friends ids and add in the field from the user that I added, my user_id

I took the second option because in a future it would be better and more quickly. So If you want to install addon you will need to reset your friends ids.

Ok! here are the modifications:
DELETE user_friend_ids from users table => RESET FRIENDS IDS

Add the two fields in your users_table
 
Code: [Select]
ALTER TABLE 4images_users ADD user_friend_ids text NULL DEFAULT NULL
ALTER TABLE 4images_users ADD user_friend_you_ids text NULL DEFAULT NULL

Open includes/functions.php
Search:
Code: [Select]
////////////////////////////
//BEGIN friendslist
function add_to_friendslist($id) {
  global $user_info, $site_db;
  $id = intval($id);
  if (!$id) {
    return false;
  }
  $friendslist_ids = $user_info['user_friend_ids'];
  $friendslist_array = explode(" ", $friendslist_ids);
  if (!in_array($id, $friendslist_array)) {
    $friendslist_ids .= " ".$id;
  }
  $user_info['user_friend_ids'] = trim($friendslist_ids);
  $sql = "UPDATE ".USERS_TABLE."
          SET user_friend_ids = '".$user_info['user_friend_ids']."'
          WHERE user_id = ".$user_info['user_id'];
  return ($site_db->query($sql)) ? 1 : 0;
}

function remove_from_friendslist($id) {
  global $user_info, $site_db;
  $friendslist_array = explode(" ",$user_info['user_friend_ids']);
  foreach ($friendslist_array as $key => $val) {
    if ($val == $id) {
      unset($friendslist_array[$key]);
    }
  }
  $user_info['user_friend_ids'] = trim(implode(" ", $friendslist_array));
  $sql = "UPDATE ".USERS_TABLE."
          SET user_friend_ids = '".$user_info['user_friend_ids']."'
          WHERE user_id = ".$user_info['user_id'];
  return ($site_db->query($sql)) ? 1 : 0;
}

function clear_friendslist() {
  global $user_info, $site_db;
  $sql = "UPDATE ".USERS_TABLE."
          SET user_friend_ids = ''
          WHERE user_id = ".$user_info['user_id'];
  if ($site_db->query($sql)) {
    $user_info['user_friend_ids'] = "";
    return true;
  }
  else {
    return false;
  }
}

function check_friendslist($id) {
  global $user_info;
  $friendslist_array = explode(" ", $user_info['user_friend_ids']);
  return in_array($id, $friendslist_array);
}
/////////////////
//END FRIENDSLIST
/////////////////

Replace:
Code: [Select]
////////////////////////////
//BEGIN friendslist
function add_to_friendslist($id) {
  global $user_info, $site_db;
  $id = intval($id);
  if (!$id) {
    return false;
  }
  $friendslist_ids = $user_info['user_friend_ids'];
  $friendslist_array = explode(" ", $friendslist_ids);
  if (!in_array($id, $friendslist_array)) {
    $friendslist_ids .= " ".$id;
}

//Aqui vamos a agregar el id del usuario q esta aņadiendo a la lista, a la lista de ids que han agregado al amigo
$sql = "SELECT *
            FROM ".USERS_TABLE."
            WHERE user_id = ".$id;
    $friend_row = $site_db->query_firstrow($sql);
$friendslist_you_ids = $friend_row['user_friend_you_ids'];
$friendslist_you_array = explode(" ", $friendslist_you_ids);
  if (!in_array($id, $friendslist_you_array)) {
    $friendslist_you_ids .= " ".$user_info['user_id'];
}
$friend_row['user_friend_you_ids'] = trim($friendslist_you_ids);

  $user_info['user_friend_ids'] = trim($friendslist_ids);
  $sql = "UPDATE ".USERS_TABLE."
          SET user_friend_ids = '".$user_info['user_friend_ids']."'
          WHERE user_id = ".$user_info['user_id'];

    $sql2 = "UPDATE ".USERS_TABLE."
          SET user_friend_you_ids = '".$friend_row['user_friend_you_ids']."'
          WHERE user_id = ".$friend_row['user_id'];
    $site_db->query($sql);
    $site_db->query($sql2);
return true;
 
}

function remove_from_friendslist($id) {
  global $user_info, $site_db;
  $friendslist_array = explode(" ",$user_info['user_friend_ids']);
  foreach ($friendslist_array as $key => $val) {
    if ($val == $id) {
      unset($friendslist_array[$key]);
    }
  }
  $user_info['user_friend_ids'] = trim(implode(" ", $friendslist_array));
  $sql = "UPDATE ".USERS_TABLE."
          SET user_friend_ids = '".$user_info['user_friend_ids']."'
          WHERE user_id = ".$user_info['user_id'];
  if ($site_db->query($sql)){ //Si se han borrado correctamente, lo borramos de la otra lista
  $sql = "SELECT *
            FROM ".USERS_TABLE."
            WHERE user_id = ".$id;
    $friend_row = $site_db->query_firstrow($sql);
$friendslist_you_array = explode(" ",$friend_row['user_friend_you_ids']);
  foreach ($friendslist_you_array as $key => $val) {
    if ($val == $user_info['user_id']) {
       unset($friendslist_you_array[$key]);
    }
  }
  $friend_row['user_friend_you_ids'] = trim(implode(" ", $friendslist_you_array));
  $sql2 = "UPDATE ".USERS_TABLE."
          SET user_friend_you_ids = '".$friend_row['user_friend_you_ids']."'
          WHERE user_id = ".$id;
  $site_db->query($sql2);
  return true;
 
  }else{   
  return false;
  }
}

function clear_friendslist() {
  global $user_info, $site_db;
 
  $friendslist_array = explode(" ",$user_info['user_friend_ids']);
  foreach ($friendslist_array as $key => $val) {
      $sql = "SELECT *
            FROM ".USERS_TABLE."
            WHERE user_id = ".$val;
    $friend_row = $site_db->query_firstrow($sql);
$friendslist_you_array = explode(" ",$friend_row['user_friend_you_ids']);
  foreach ($friendslist_you_array as $key => $val2) {
    if ($val2 == $user_info['user_id']) {
       unset($friendslist_you_array[$key]);
    }
  }
  $friend_row['user_friend_you_ids'] = trim(implode(" ", $friendslist_you_array));
  $sql = "UPDATE ".USERS_TABLE."
          SET user_friend_you_ids = '".$friend_row['user_friend_you_ids']."'
          WHERE user_id = ".$val;
$site_db->query($sql); 
  }
  $sql2 = "UPDATE ".USERS_TABLE."
          SET user_friend_ids = ''
          WHERE user_id = ".$user_info['user_id'];
  if ($site_db->query($sql2)) {
    $user_info['user_friend_ids'] = "";
    return true;
  }
  else {
    return false;
  }
}

function check_friendslist($id) {
  global $user_info;
  $friendslist_array = explode(" ", $user_info['user_friend_ids']);
  return in_array($id, $friendslist_array);
}
/////////////////
//END FRIENDSLIST
/////////////////

Open member.php
Search:
Code: [Select]
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']);
       

After add:   $friends_limit = 10; 10 is a default, you can edit the limit of users that you want to show in profiles
Code: [Select]
    $friends_limit = 10;  //Edit the limit of users that you want to show in profiles

    if (!empty($user_row['user_friend_you_ids'])) {

$friendslist_you_array = explode(" ", $user_row['user_friend_you_ids']);
$friendslist_you_array = array_reverse($friendslist_you_array);

$friends_user = "<b>".$lang['user_friend_you'].$user_row['user_name'].":</b> ";
foreach ($friendslist_you_array as $key => $val) {
        $sql = "SELECT user_id, user_name, user_gender
FROM ".USERS_TABLE."
              WHERE user_id = '".$val."'";
    $friends_row = $site_db->query_firstrow($sql);
  $friends_user .= "<a href='member.php?action=showprofile&user_id=".$friends_row['user_id']."'>".$friends_row['user_name']."</a> | ";
  $friends_limit--;
  if($friends_limit == 0){
   break;
   }
  }

}

//--- END FRIENDSLIST MOD ---

Search:
Code: [Select]
  "friendslist_button" => $friendslist_button, //Friend list modAfter add:
Code: [Select]
  "friendslist_add_you" => $friends_user, //Friend list mod
Open main.php
Search:
Code: [Select]
//-----------------------------------------------------
//--- Friendslist  -------------------------------------
//-----------------------------------------------------

After add:
Code: [Select]
$lang['user_friend_you'] = "List of users that added as a friend to ";
Open templates/yourtheme/member_profile.html

Paste {friendslist_add_you} where you like it

That's all ;)

PS: This weekend i will work in another addon that needs the last. This new addon will send pms to users that added you as a friend when you upload a picture
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline Loda

  • Sr. Member
  • ****
  • Posts: 353
    • View Profile
    • Fotosucht Schweiz
Re: [MOD] Buddy List || Friend List
« Reply #21 on: May 18, 2007, 10:01:07 AM »
wow! works fine!
thank you very much!

Offline Fragezeichen

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: [MOD] Buddy List || Friend List
« Reply #22 on: June 10, 2007, 04:37:58 PM »
i cheket all codes but it seems all time the same error,

Parse error: syntax error, unexpected T_DOUBLE_ARROW in /var/www/html/web609/html/includes/page_header.php on line 338

could someone please help?

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: [MOD] Buddy List || Friend List
« Reply #23 on: June 10, 2007, 04:43:59 PM »
please could you paste here the lines near of line 338  in includes/page_header.php???

and, please what 4images version use your galley??
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline Fragezeichen

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: [MOD] Buddy List || Friend List
« Reply #24 on: June 14, 2007, 01:00:23 PM »
thanks for this great mod,
but there is not posible to show buddy-icon in member profile.
i´f use the &nbsp;&nbsp;{friendslist_button} tag,but nothin happen.
only by details.html it works well

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: [MOD] Buddy List || Friend List
« Reply #25 on: June 15, 2007, 11:06:21 AM »
do you have in member.php the next??
Code: [Select]
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']);
and
Code: [Select]
  "friendslist_button" => $friendslist_button, //Friend list mod??
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline Fragezeichen

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: [MOD] Buddy List || Friend List
« Reply #26 on: June 15, 2007, 11:19:03 AM »
yes,and the freindlist works well.
i can add the button by the comments,not in the profile

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: [MOD] Buddy List || Friend List
« Reply #27 on: June 15, 2007, 12:22:12 PM »
please attach your member.php like member.txt
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline Fragezeichen

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: [MOD] Buddy List || Friend List
« Reply #28 on: June 16, 2007, 01:38:22 PM »
pls check,that´s nice...
 :D

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: [MOD] Buddy List || Friend List
« Reply #29 on: June 16, 2007, 01:41:53 PM »
do you have in member.php the next??
Code: [Select]
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']);
and
Code: [Select]
  "friendslist_button" => $friendslist_button, //Friend list mod??


you don't have this code in your member.php


in [MOD]FriendsList_english_install.txt you can read the next
Code: [Select]
#
#-----[ ABRIR ]--------------------------------------------
# //NOte: If you want that the users add their friends from members profiles
member.php

#
#-----[ FIND ]--------------------------------------------
#
    if (!empty($user_row['user_email']) && (!isset($user_row['user_showemail']) || (isset($user_row['user_showemail']) && $user_row['user_showemail'] == 1))) {
      $user_email = $user_row['user_email'];

#
#-----[ BEFORE, ADD ]--------------------------------------------
#
//-----------------------------------------------------
//--- 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']);
       

//--- END FRIENDSLIST MOD ---


#
#-----[ FIND ]--------------------------------------------
#
      "user_homepage" => $user_homepage,

#
#-----[ AFTER, ADD ]--------------------------------------------
#
  "friendslist_button" => $friendslist_button, //Friend list mod
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more