Hi,
i added the codes from this tutorial to my forum
http://www.avacweb.com/t17p15-re-1-add-as-friend-and-user-wall-link-in-post-profiles
and it used to work but now my viewtopic_body is heavily edited and it doesnt appear. im using punbb. what should i do?
i tried this code:
and this:
but nothing worked. i hope u help me
i added the codes from this tutorial to my forum
http://www.avacweb.com/t17p15-re-1-add-as-friend-and-user-wall-link-in-post-profiles
and it used to work but now my viewtopic_body is heavily edited and it doesnt appear. im using punbb. what should i do?
i tried this code:
- Code:
$(function(){
('Copyright AvacWeb. 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.');
var posts = $('.username', document.getElementById('main-content'));
for(var i = 0, p; (p = posts[i++]); ) {
var userlink = p.getElementsByTagName('a')[0], name = userlink.innerHTML.replace(/<[^>]+>/g, ''), uid = userlink.href.match(/[0-9]+$/)[0];
$('.friendlink', p.parentNode.parentNode).html('<a href="/profile?friend=' + name + '&mode=editprofile&page_profil=friendsfoes">Add as Friend</a>');
$('.walllink', p.parentNode.parentNode).html('<a href="/u' + uid + 'wall">' + name + '\'s Wall</a>');
}
});
and this:
- Code:
$(function(){
var posts = $('.username', document.getElementById('main-content')), i = 0, p;
for(; (p = posts[i++]); ) {
var userlink = p.getElementsByTagName('a')[0]
, name = userlink.innerHTML.replace(/<.*?>/g, '')
, uid = userlink.href.match(/\d+$/)[0];
p.parentNode.parentNode.innerHTML += '<a href="/profile?friend=' + name + '&mode=editprofile&page_profil=friendsfoes">Add as Friend</a><br><a href="/u' + uid + 'wall">' + name + '\'s Wall</a>';
}
});
but nothing worked. i hope u help me