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.

Adding a friend.

3 posters

Go down

In progress Adding a friend.

Post by JAN2XONLINE 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
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 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


Adding a friend. 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 : 51453
Reputation : 3519
Language : English
Location : United States

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

Back to top Go down

In progress Re: Adding a friend.

Post by JAN2XONLINE 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,
Adding a friend. Add10

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


an easy way to do this.
JAN2XONLINE
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 May 28th 2012, 11:06 pm

LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

In progress Re: Adding a friend.

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

JAN2XONLINE
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 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
JAN2XONLINE
Forumember

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

http://animeph.4umer.com/

Back to top Go down

Back to top

- Similar topics

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