The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
3 posters

    Auto friend a certain user.

    avatar
    Guest
    Guest


    In progress Auto friend a certain user.

    Post by Guest Fri 29 Jan - 20:45

    Hey there!

    I was wondering if anyone could make a script or had one, where everyone on the forum would automatically become friends with a certain user.

    This would apply on everyone who currently uses the forum, and new people who join would automatically be friends with certain users.

    Any help? Thanks! Auto friend a certain user. 1f603
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3524
    Language : English
    Location : United States

    In progress Re: Auto friend a certain user.

    Post by SLGray Fri 29 Jan - 20:52

    Would not this cause issues when two members have issues?  I mean before they join your forum.  I would not want to force everyone to be friends.  It should be a personal option for individual members.



    Auto friend a certain user. Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    avatar
    Guest
    Guest


    In progress Re: Auto friend a certain user.

    Post by Guest Fri 29 Jan - 20:57

    SLGray wrote:Would not this cause issues when two members have issues?  I mean before they join your forum.  I would not want to force everyone to be friends.  It should be a personal option for individual members.
    They'd only be friends with an account I made on my forum where I post the latest updates etc. They'd be able to remove the account as a friend, just they'd automatically be that users friend at the start.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3524
    Language : English
    Location : United States

    In progress Re: Auto friend a certain user.

    Post by SLGray Fri 29 Jan - 21:00

    Ok.  So you mean a group called friends?



    Auto friend a certain user. Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    avatar
    Guest
    Guest


    In progress Re: Auto friend a certain user.

    Post by Guest Fri 29 Jan - 21:13

    SLGray wrote:Ok.  So you mean a group called friends?
    I'm not quite sure. I'd just like to make it so everyone will be on user 2's friend list.
    Take Notes
    Take Notes
    Helper
    Helper


    Male Posts : 2337
    Reputation : 324
    Language : English
    Location : Forumountain

    In progress Re: Auto friend a certain user.

    Post by Take Notes Fri 29 Jan - 21:15

    You could make a group so when everyone who registers joins the group and you can post latest updates by group message. You can hide the group so it is not on legend and is not color coded if you would like by marking the group "hidden".
    avatar
    Guest
    Guest


    In progress Re: Auto friend a certain user.

    Post by Guest Fri 29 Jan - 21:30

    I've decided to see if Ange can help with this.

    Tagging: @Ange Tuteur
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    In progress Re: Auto friend a certain user.

    Post by Ange Tuteur Fri 29 Jan - 21:54

    It's possible to make every user send a request, however, you'd need to manage the account receiving the requests and accept each one. Think

    A simple example of what I mean :
    Code:
    (function() {
      var user_id = 2,
          username = 'Ange Tuteur';

      if (!my_getcookie('fa_friend_checked')) {
        $.get('/profile?mode=editprofile&page_profil=friendsfoes', function(d) {
          if ($('a[href$="/u' + user_id + '"]', d)[0]) {
            my_setcookie('fa_friend_checked', 'true');
          } else {
            $.get('/profile?friend=' + username + '&mode=editprofile&page_profil=friendsfoes', function() {
              my_setcookie('fa_friend_checked', 'true');
            });
          }
        });
      }
    });

      Current date/time is Wed 13 Nov - 17:44