not working my plugin in postbit - help
#1
Bug 
$plugins->add_hook("postbit", "reklamlar_runn");

function reklamlar_runn($post)
{
	global $db, $mybb, $templates, $reklamlarkod2, $reklamlarkod3;
	
	eval("\$reklamlarkod2 = \"".$templates->get("reklamlarkod2")."\";");
	eval("\$reklamlarkod3 = \"".$templates->get("reklamlarkod3")."\";");

}

not working my plugin in postbit

where error ?
NOTE: My english bad. Sorry.
Reply
#2
What is your plugin.....
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
Reply
#3
not public in now. for this (not working postbit) error.
NOTE: My english bad. Sorry.
Reply
#4
Well we don't know what it does so how can anyone help you??
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
Reply
#5
my english bad. sorry.

my plugin all code public? or you pm send?
NOTE: My english bad. Sorry.
Reply
#6
Right, is what you posted above all the code of your plugin??
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
Reply
#7
sended pm
NOTE: My english bad. Sorry.
Reply
#8
Ok there are two things which I see which raises some questions:

1) Are your templates reklamlarkod2 and reklamlarkod3 added to the template manager?
2) You need to change your variables to the following:
    eval("\$post['reklamlarkod2'] = \"".$templates->get("reklamlarkod2")."\";");
    eval("\$post['reklamlarkod3'] = \"".$templates->get("reklamlarkod3")."\";");
And I suppose in the postbit template you have to change these variables too

The reason for this is that the build_postbit function does not have these variables globalized.
Dennis Tsang
Former MyBB Team Member
Web: http://dennistt.net
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)