The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Auto friend a certain user.

View previous topic View next topic Go down

In progress Auto friend a certain user.

Post by Zuke on 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!

Zuke
Forumember

Male Posts : 375
Reputation : 20
Language : English
Location : United Kingdom

http://ocean.forums.fm

Back to top Go down

In progress Re: Auto friend a certain user.

Post by SLGray on 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.


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


SLGray
Administrator
Administrator

Male Posts : 35659
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

In progress Re: Auto friend a certain user.

Post by Zuke on 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.

Zuke
Forumember

Male Posts : 375
Reputation : 20
Language : English
Location : United Kingdom

http://ocean.forums.fm

Back to top Go down

In progress Re: Auto friend a certain user.

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

Ok. So you mean a group called friends?


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


SLGray
Administrator
Administrator

Male Posts : 35659
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

In progress Re: Auto friend a certain user.

Post by Zuke on 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.

Zuke
Forumember

Male Posts : 375
Reputation : 20
Language : English
Location : United Kingdom

http://ocean.forums.fm

Back to top Go down

In progress Re: Auto friend a certain user.

Post by Genesis on 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".

Genesis
Forum Reviewer
Forum Reviewer

Male Posts : 2331
Reputation : 322
Language : English
Location : Forumountain

http://forumpromocean.com

Back to top Go down

In progress Re: Auto friend a certain user.

Post by Zuke on January 29th 2016, 10:30 pm

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

Tagging: @Ange Tuteur

Zuke
Forumember

Male Posts : 375
Reputation : 20
Language : English
Location : United Kingdom

http://ocean.forums.fm

Back to top Go down

In progress Re: Auto friend a certain user.

Post by Ange Tuteur on 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
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


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