2012-03-02, 11:20 AM
I have this function in a plugin of mine:
Its hooked by the "postbit" hook. For some reason it makes the captcha appear when posting, and stops the display of the "edit" button and "pm" bttons on the second last (or second) post Any ideas?
function support_display_guest_ad_inline(&$post){
global $mybb, $postcounter, $templates;
if ($mybb->user['uid'] = 0 || !$mybb->user['uid']) {
if ($postcounter == 1) {
eval("\$post['postbit_inline_ad'] = \"".$templates->get("vtfm_inline_ad")."\";");
}
}
}
Its hooked by the "postbit" hook. For some reason it makes the captcha appear when posting, and stops the display of the "edit" button and "pm" bttons on the second last (or second) post Any ideas?