Imad Posted October 26, 2008 Share Posted October 26, 2008 We all know that Vbulletin and most forums softwares have plugin system or modules. They use something called Hooks. These hooks reside within the sourcecode to allow added code through a plugin. Does anyone know the best way to create the hook in order to implement whatever is in the plugin file into the file the hook resides? I'm trying to implement a hook system into one of my scripts so my admins can easily create modifications for my system. Best Regards. Link to comment https://forums.phpfreaks.com/topic/130136-vbulletin-hooks-plugins-how-are-they-made/ Share on other sites More sharing options...
.josh Posted October 26, 2008 Share Posted October 26, 2008 It depends on what your system is/does. Hooks can be any number of things. It can be a list of variables that someone can use to get stats for other places or mix and match them for their own features (like, users online, total users, etc...). It can be for instance, available functions that will allow you to add a new option to a list. Allowing certain variables to be changed (aesthetically or whatever). In short, it's more or less like turning your system into a CMS. But again, it really depends on what your system is/does, as to what's the best way of approaching that. I believe this is where object oriented programming really shines; you get to abstract certain things away and create interfaces and stuff for other things to "plugin" to them. Link to comment https://forums.phpfreaks.com/topic/130136-vbulletin-hooks-plugins-how-are-they-made/#findComment-674826 Share on other sites More sharing options...
Imad Posted October 26, 2008 Author Share Posted October 26, 2008 Thanks for the info. I'll be doing some more reasearch on it before I do begin with anything. Best Regards. Link to comment https://forums.phpfreaks.com/topic/130136-vbulletin-hooks-plugins-how-are-they-made/#findComment-674994 Share on other sites More sharing options...
Imad Posted October 27, 2008 Author Share Posted October 27, 2008 So does anyone here know how to create a basic hook system that can basically do what forum softwares does?, allows users to create plugins with ease? Best Regards. Link to comment https://forums.phpfreaks.com/topic/130136-vbulletin-hooks-plugins-how-are-they-made/#findComment-676148 Share on other sites More sharing options...
.josh Posted October 28, 2008 Share Posted October 28, 2008 ...like I said, it depends on how you coded your own system. Link to comment https://forums.phpfreaks.com/topic/130136-vbulletin-hooks-plugins-how-are-they-made/#findComment-676332 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.