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.

Adding a friend.

View previous topic View next topic Go down

In progress Adding a friend.

Post by JAN2XONLINE on May 28th 2012, 7:41 pm

so I was wondering if I could make a 'adding a friend' system on my forum?

Like on this link:
Code:
http://u3gms.findtalk.biz/profile?friend=[USERNAME]&mode=editprofile&page_profil=friendsfoes
^
^
the code will automatically change to the person's username when someone added him/her.

I'll make a shortcut on contact tab that saying add the person as a friend then after he/she accepted the request, the icon of adding a friend will not show up again to his/her friends.

JAN2XONLINE
Forumember

Male Posts : 943
Reputation : 32
Language : Tagalog, English
Location : Alberta, Canada

http://animeph.4umer.com/

Back to top Go down

In progress Re: Adding a friend.

Post by SLGray on May 28th 2012, 8:02 pm

Are you using the friends and foes system that Forumotion has?

Administration Panel > Users & Groups > Users > Users Options
Users Settings Section
Allow friends/foes management : [] Yes [] No


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


SLGray
Administrator
Administrator

Male Posts : 35622
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

In progress Re: Adding a friend.

Post by JAN2XONLINE on May 28th 2012, 8:18 pm

slg wrote:Are you using the friends and foes system that Forumotion has?

Administration Panel > Users & Groups > Users > Users Options
Users Settings Section
Allow friends/foes management : [] Yes [] No

yea but I would like to have a shortcut for it on profile tab under the same category as contacts.

Do you want me to add as a friend here in the forums, add other members or get friend requests? Follow this tutorial!

1. Go to 'PROFILE' TAB.
2. Scroll down till you see the 'Add as a Friend' tab on Contact Field.
3. Copy this code:
Code:
http://u3gms.findtalk.biz/profile?friend=[USERNAME]&mode=editprofile&page_profil=friendsfoes
4. Paste that code to your 'Add as a friend' tab and change [USERNAME] to your username.
Ex.
CHANGE [USERNAME] -> http://u3gms.findtalk.biz/profile?friend=[USERNAME]&mode=editprofile&page_profil=friendsfoes
TO YOUR USERNAME -> http://u3gms.findtalk.biz/profile?friend=AdminTensa&mode=editprofile&page_profil=friendsfoes

See?
Now you will get this icon too,


If you see that icon on any member, then you can send him a friend request.


an easy way to do this.

JAN2XONLINE
Forumember

Male Posts : 943
Reputation : 32
Language : Tagalog, English
Location : Alberta, Canada

http://animeph.4umer.com/

Back to top Go down

In progress Re: Adding a friend.

Post by LGforum on May 28th 2012, 11:06 pm


LGforum
Hyperactive

Male Posts : 2254
Reputation : 254
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

In progress Re: Adding a friend.

Post by JAN2XONLINE on May 29th 2012, 12:44 am


JAN2XONLINE
Forumember

Male Posts : 943
Reputation : 32
Language : Tagalog, English
Location : Alberta, Canada

http://animeph.4umer.com/

Back to top Go down

In progress Re: Adding a friend.

Post by JAN2XONLINE on May 29th 2012, 2:05 am

Code:
var CopyrightNotice='Adding Add as Friend  and wall link to post profiles for Invision and phpBB2 boards for forumotion. Copyright ©  by LGforum. All Rights Reserved. Use and  modification of this script is not allowed without this entire copyright notice in the original, copied, or modified script. No distribution without consent.';
$(function() {
var a = document.getElementsByClassName('name');
var x = document.getElementsByClassName('poster-profile');
for (i=0;i<a.length;i++){
var uid = a[i].textContent;
var add = document.createElement('a');
add.href = "/profile?friend="+uid+"&mode=editprofile&page_profil=friendsfoes";
add.innerHTML = "Add as Friend";
x[i].appendChild(add);
}
});

pasted this code in js managament and still didn't work for me.

JAN2XONLINE
Forumember

Male Posts : 943
Reputation : 32
Language : Tagalog, English
Location : Alberta, Canada

http://animeph.4umer.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