Current time: 01-09-2009, 04:14 AM Hello There, Guest! (LoginRegister)


Post Reply 
Plugin handles and locations
04-11-2006, 04:25 PM (This post was last modified: 04-11-2006 04:33 PM by unoriginal42.)
Post: #11
RE: Plugin handles and locations
thanks, thats should be added to the wiki.


Will the output of your code be placed in the templates? What do i do about template intergration?
Find all posts by this user
Quote this message in a reply
04-24-2006, 04:56 PM
Post: #12
RE: Plugin handles and locations
Quote: 1074 delete_thread $tid
1088 delete_post $tid
How come the hooks in newthread.php and editpost.php aren't passed the $tid? Is there a reason?

that's not a bug, thats an unexpected feature

demp.se/y - Messenger Plus! SoundPack DB - Weird Fish
Visit this user's website Find all posts by this user
Quote this message in a reply
04-24-2006, 05:45 PM
Post: #13
RE: Plugin handles and locations
newthread has to make the thread's id, so there is no $tid yet.
editpost works with $pid and will be in $mybb->input['pid']

not drawing attention...
Visit this user's website Find all posts by this user
Quote this message in a reply
04-28-2006, 03:16 AM (This post was last modified: 04-28-2006 03:17 AM by CraKteR.)
Post: #14
RE: Plugin handles and locations
Okey, I've made an proposual php version of an plugin list, it is not complete, however, I wanted to know if people liked it, if not I'm gonna scrap it.
Click the hooks and there should display an message on what that hook does, if not, I've not added it yet.

Look here: http://mcdcpp.net/hooks.php

MyBB Addicted. =)
My plug-ins list
Find all posts by this user
Quote this message in a reply
04-28-2006, 03:29 AM
Post: #15
RE: Plugin handles and locations
CraKteR, I think that's a great start. I think it would be nice to include what should be available in $mybb->input and the other globals when the hooks get called.
Find all posts by this user
Quote this message in a reply
04-28-2006, 03:36 AM
Post: #16
RE: Plugin handles and locations
Thanks, yea that was what I was thinking, but it is alot of work, so we'll see if I got time todo all that. Gotta sleep now, gonna look at it more tomorrow tho. Smile

MyBB Addicted. =)
My plug-ins list
Find all posts by this user
Quote this message in a reply
04-28-2006, 01:43 PM
Post: #17
RE: Plugin handles and locations
Finished adding all hooks to the page, got 302 hooks displayed, I've not done anything with commenting them, well some is, most is not. Hope you like it, I'll be adding more commenting later on. Smile

MyBB Addicted. =)
My plug-ins list
Find all posts by this user
Quote this message in a reply
04-28-2006, 08:24 PM
Post: #18
RE: Plugin handles and locations
Its already here?: http://wiki.mybboard.com/index.php/MyBB_Plugin_Hooks

[Image: ryangordon.png]

My Blog - My Mods - My Site - There are no such things as bugs;
Just carefully articulated random features.

Figures lie, and liars figure
Visit this user's website Find all posts by this user
Quote this message in a reply
08-25-2006, 08:46 PM
Post: #19
RE: Plugin handles and locations
Hmm..I am trying to add a hook into the $seperator template.

Any help would be great. I have a lot of things but so far nothing is working.

Code:
$plugins->add_hook("postbit", "test");

Code:
function test()
{
    $seperator = str_replace("<div id=\"content\">", "<div id=\"content\">Hello World!<br />This is a sample MyBB Plugin (which can be disabled!) that displays this message on all pages.<br />", $seperator);
    return $seperator;
}

Any help would be awesome. I just need to know the syntax to run a function hook inside the seperator.

MYPS is now available for FREE!
Download over 30 exclusive plugins at Mybb Central.
[Image: mybbsig.php]
[Some plugins at Mybb Central are for paid subscribers only.]
Visit this user's website Find all posts by this user
Quote this message in a reply
08-25-2006, 09:11 PM
Post: #20
RE: Plugin handles and locations
You need to add global $seperator; and return is not needed.

MyBB Addicted. =)
My plug-ins list
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: