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.

Auto friend a certain user.

3 posters

Go down

In progress Auto friend a certain user.

Post by Guest January 29th 2016, 9:45 pm

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
avatar
Guest
Guest


Back to top Go down

In progress Re: Auto friend a certain user.

Post by SLGray January 29th 2016, 9:52 pm

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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51478
Reputation : 3523
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

In progress Re: Auto friend a certain user.

Post by Guest January 29th 2016, 9:57 pm

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.
avatar
Guest
Guest


Back to top Go down

In progress Re: Auto friend a certain user.

Post by SLGray January 29th 2016, 10:00 pm

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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51478
Reputation : 3523
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

In progress Re: Auto friend a certain user.

Post by Guest January 29th 2016, 10:13 pm

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.
avatar
Guest
Guest


Back to top Go down

In progress Re: Auto friend a certain user.

Post by Take Notes January 29th 2016, 10:15 pm

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".
Take Notes
Take Notes
Helper
Helper

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

Back to top Go down

In progress Re: Auto friend a certain user.

Post by Guest January 29th 2016, 10:30 pm

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

Tagging: @Ange Tuteur
avatar
Guest
Guest


Back to top Go down

In progress Re: Auto friend a certain user.

Post by Ange Tuteur January 29th 2016, 10:54 pm

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');
        });
      }
    });
  }
});
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum