Okay now that I have your attention!!! The mad dash to support vb 4.2 navigation is behind I am trying to close up the ReviewPost beta and figured I would play around with adding a new plugin system that we could work into our system like vb has. That way people can add in code without having hack files with each version.
My intention here is to get some ideas from our customer base about hook locations. I have the basic ones in mind like on the top middle and bottom of the sidebar or top or bottom of index page or some on the photo page.
Keep in mind if I get this all sorted there are only like 6 viewable scripts in our application ( index,showproduct,showcat,showmembers,members and uploadproduct.php scripts ). The gallery apps filenames are slightly different and there is one more the personal albums script.
For any given script there are only so many locations so please be very specific.
Just a little test with straight html code but a beginning little box top of sidebar. Before I do anything else I need to write up the admin interface to add the plugin. That will take a little work.
It will be similar to how vbulletin does things although not as expansive as they have several hundred hooks.
Straight PHP code is executed and anything you want to print via html will be added like so. Once I get things worked out and we support a new plugin system I will post a tutorial.
The hook code will accept straight php code without opening or closing tags to define or grab anything you are trying to define like vb and then you will render the html output like so.
$pphook['location'] .= 'SOME HTML HERE';
Then in our templates at the proper locations I will place the hook outputs like so
As with any plugin system you can mess things up if you do bad php or html code so there will be a master switch and ability to define it off in the config directly if you mess up like vb. There will also be the ability to turn any individual plugin off.
As I am designing things any input and ideas is appreciated.
Getting close here there are like 32 different hook locations I have come up with. I have done all the admin side work and main php file work just need to edit all the templates with the hook locations.