Send a friend request
2 posters
Page 1 of 1
Send a friend request
hi all
i need to help with jquery code .
Send a friend request on profile... i trying more but not work
for phpbb2
this my code
can anyone help me
thanks .
i need to help with jquery code .
Send a friend request on profile... i trying more but not work
for phpbb2
this my code
- Code:
$(document).ready(function() {
var username = $('.name').get();
$('.postdetails.poster-profile').after('<br /><div class="friend"><a href="/profile?friend='+ username+'&mode=editprofile&page_profil=friendsfoes">Send a friend request</a></div>');
});
can anyone help me
thanks .
midoweb96- Forumember
- Posts : 166
Reputation : 12
Language : Css - Html - Jquery
Re: Send a friend request
Your variable username isn't holding the username... its holding a whole array of all the elements with className of username on the page.
You'll need to loop through the post profiles.
I'd suggest looking at this to see how it is done on other board types:
http://www.avacweb.com/t17-3-add-as-friend-and-user-wall-link-in-post-profiles
You'll need to loop through the post profiles.
I'd suggest looking at this to see how it is done on other board types:
http://www.avacweb.com/t17-3-add-as-friend-and-user-wall-link-in-post-profiles
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: Send a friend request
thank LG
Read this before , I did not find phpbb2 ..but i search code for phpbb2
Is there any way ?
Read this before , I did not find phpbb2 ..but i search code for phpbb2
Is there any way ?
midoweb96- Forumember
- Posts : 166
Reputation : 12
Language : Css - Html - Jquery
Re: Send a friend request
I'm sure it can be done on phpbb2, probably reasonably easy with templates. But I don't look at it. Somewhere else on my forum someone posted a phpbb2 version. http://www.avacweb.com/t183-i-need-to-add-as-friend-link-to-the-post-profile
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: Send a friend request
ok work by using templates .
Question ..here http://www.avacweb.com/t17- (for phpbb3)
can we add return false; and hide on click and changed Events ?
Can the addition of these events?
i trying this ..but not work
Question ..here http://www.avacweb.com/t17- (for phpbb3)
can we add return false; and hide on click and changed Events ?
Can the addition of these events?
i trying this ..but not work
- Code:
$(document).ready(function(){
$('.friend-admin').click(function(){
$(.friend-admin).hide(5000);
return false;
});
$('.friend-admin').click(function(){
$('.friend-admin').change();
$('.msg').html("Was added to list friends");
$('.postprofile').before('<div class="msg"></div>
});
});
midoweb96- Forumember
- Posts : 166
Reputation : 12
Language : Css - Html - Jquery
Re: Send a friend request
That code is nonsense lol
I linked you to the phpbb2 code: http://www.avacweb.com/t183-i-need-to-add-as-friend-link-to-the-post-profile#1655
I linked you to the phpbb2 code: http://www.avacweb.com/t183-i-need-to-add-as-friend-link-to-the-post-profile#1655
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: Send a friend request
hhhh
I'm sure it does not work
I'm sure it does not work
midoweb96- Forumember
- Posts : 166
Reputation : 12
Language : Css - Html - Jquery
Re: Send a friend request
Well i didn't write it. Try asking the author.
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: Send a friend request
OK thanks solved.
midoweb96- Forumember
- Posts : 166
Reputation : 12
Language : Css - Html - Jquery
Similar topics
» Banner Request! Not for me but to me friend.
» Nortification for new PM and Friend Request
» VM and Friend Request reminder
» Search over friend request
» Friend Request in posts
» Nortification for new PM and Friend Request
» VM and Friend Request reminder
» Search over friend request
» Friend Request in posts
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum