MyBB Central

Full Version: Quick add buddy in Posts [HELP]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.

PHP Code:
                            <strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<a href="usercp.php?action=quickaddbuddy&uid={$memprofile['uid']}"><img src=""/></a><br /> 

there is a slight problem though.
[Image: untitled.JPG]
In the postbit template you use {$post['uid']} the $memprofile is only used on profile pages.