Quick add buddy in Posts [HELP]
#1
hello, everyone. i am trying to make a small implementation to every thread/post on my forum. so that people can add buddys quickly from the posts.

check the below code out. this is the postbit template. next to the onlinestatus i have added a code. which shows a image and a link to add the buddy that has posted.

							<strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<a href="usercp.php?action=quickaddbuddy&uid={$memprofile['uid']}"><img src="http://www.movie-247.net/images/user_add.png"/></a><br />

there is a slight problem though.
[Image: untitled.JPG]
Reply
#2
it is {$post['uid']} not {$memprofile['uid']}

try
                            <strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<a href="usercp.php?action=quickaddbuddy&uid={$post['uid']}"><img src="http://www.movie-247.net/images/user_add.png"/></a><br />
Reply
#3
yea thanks. i already fixed it Toungue
Reply
#4
hmm tried it but on my side it doesnt work, the buddy doesnt get added, can you post what you did?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)