The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
|
Plugin hook within a plugin. - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Scripts & Components (http://get-simple.info/forums/forumdisplay.php?fid=11) +--- Thread: Plugin hook within a plugin. (/showthread.php?tid=535) |
Plugin hook within a plugin. - JWH_Matthew - 2010-03-16 Would it be possible to add hooks to a plugin for say? Example: I created a recent activity plugin, I would like it to display all recent activity. Would it be possible for me to add this code and allow others to insert recent activities into my list? Code: <ul> does this make sense? Plugin hook within a plugin. - ZegnÃ¥t - 2010-03-16 Did you test it? Because I think it will work exactly like that, well, if you but quotes around “simple-recentactivityâ€Â. As far as I know none of the hook names are hard coded so you can register function to any hook name and you can call an exec_action() on any name as well. Plugin hook within a plugin. - JWH_Matthew - 2010-03-17 I havent tried this. Do you know if there is a hook within any of the menus? I would like to create a plugin for external links, but I can't insert the list into your plugin (unless you add a hook) and I can't insert it in the main menu, unless there is a hidden hook somewhere? (I have looked pretty good over all the code.) Plugin hook within a plugin. - ZegnÃ¥t - 2010-03-17 No, there are no hooks in the menu. You saw right. Neither are there in my menu plugin, though it might be something I should think about. Hmm… Plugin hook within a plugin. - JWH_Matthew - 2010-03-17 There really should be a hook within the menu. (preferably within the <ul>tags</ul> that way we could insert <li> with different things. If chris is reading this, you should add one right after the first <ul> and then right before the last </ul> I think it would be interesting to see what people would do if they new they could use hooks within there plugin. Plugin hook within a plugin. - ZegnÃ¥t - 2010-03-17 The <ul> and </ul> are actually in your template, so hooks don’t make much of a difference there. I agree, it will be interesting to see people putting hooks in their plugins! Plugin hook within a plugin. - JWH_Matthew - 2010-03-17 Lol, I just pulled the <ul> <li> crap out of my but. You should see what you can do as far as creating hooks in your new menu plugin. Plugin hook within a plugin. - ccagle8 - 2010-03-17 i think that should work OWS_Matthew - i see no reason why it wouldnt |