Current time: 05-24-2012, 07:37 AM Hello There, Guest! (LoginRegister)


Post Reply 
not working my plugin in postbit - help
08-25-2008, 01:41 PM (This post was last modified: 08-25-2008 01:47 PM by vezir.)
Post: #1
Bug not working my plugin in postbit - help
Code:
$plugins->add_hook("postbit", "reklamlar_runn");

Code:
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.
Find all posts by this user
Quote this message in a reply
08-25-2008, 02:06 PM
Post: #2
RE: not working my plugin in postbit - help
What is your plugin.....

Download My Plugins
My Personal Site - Twitter
[Image: eX4bjF]
Visit this user's website Find all posts by this user
Quote this message in a reply
08-25-2008, 02:10 PM
Post: #3
RE: not working my plugin in postbit - help
not public in now. for this (not working postbit) error.

NOTE: My english bad. Sorry.
Find all posts by this user
Quote this message in a reply
08-25-2008, 02:11 PM
Post: #4
RE: not working my plugin in postbit - help
Well we don't know what it does so how can anyone help you??

Download My Plugins
My Personal Site - Twitter
[Image: eX4bjF]
Visit this user's website Find all posts by this user
Quote this message in a reply
08-25-2008, 02:27 PM
Post: #5
RE: not working my plugin in postbit - help
my english bad. sorry.

my plugin all code public? or you pm send?

NOTE: My english bad. Sorry.
Find all posts by this user
Quote this message in a reply
08-25-2008, 02:29 PM
Post: #6
RE: not working my plugin in postbit - help
Right, is what you posted above all the code of your plugin??

Download My Plugins
My Personal Site - Twitter
[Image: eX4bjF]
Visit this user's website Find all posts by this user
Quote this message in a reply
08-25-2008, 02:34 PM
Post: #7
RE: not working my plugin in postbit - help
sended pm

NOTE: My english bad. Sorry.
Find all posts by this user
Quote this message in a reply
08-25-2008, 03:51 PM
Post: #8
RE: not working my plugin in postbit - help
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:
PHP Code:
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 :: MyBB Developer
Follow me on Twitter: @dennistt
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication