Results 1 to 6 of 6
-
26th Oct 2010, 11:56 AM #1OPMemberWebsite's:
Doxsters.netImplementing a Hook/AddOn System in PHP?
I was wondering how to do this, and I understand how I'd get it to dynamically add addons, etc. I was wondering if anyone could maybe post the basic logic of a hook system, and addon system similiar to that of vBulletin?
timtamboy63 Reviewed by timtamboy63 on . Implementing a Hook/AddOn System in PHP? I was wondering how to do this, and I understand how I'd get it to dynamically add addons, etc. I was wondering if anyone could maybe post the basic logic of a hook system, and addon system similiar to that of vBulletin? Rating: 5
Need a Designer/Web Developer? Click Me
MSN: PM me for it.
Email(Preferred):timtamboy63@gmail.com
"Power Corrupts. Absolute Power Corrupts Absolutely"
-
26th Oct 2010, 02:01 PM #2MemberWebsite's:
pspmafia.com zrev.netlitewarez did something along these lines awhile back, search for his work called PHP Framework.
Trusted & Respected Members:
ACiD | Narutoroot | JmZ | Jackson | Phamous | litewarez
-
26th Oct 2010, 02:33 PM #3OPMemberWebsite's:
Doxsters.netYeah, I thought about going through other people's code, and working out how they do it. Only thing is, I know that if I do look through it, I'll end up using bits of their code. That's why i want just the logic, So i can learn to code it myself
Yah, im wierd like that
Need a Designer/Web Developer? Click Me
MSN: PM me for it.
Email(Preferred):timtamboy63@gmail.com
"Power Corrupts. Absolute Power Corrupts Absolutely"
-
26th Oct 2010, 11:00 PM #4MemberWebsite's:
litewarez.net litewarez.com triniwarez.comnot really hard to do
create a class class called hooks and a folder called hooks
PHP Code:class Hooks
{
public function run($hooks)
{
//each hooks should be in the directory called hooks and asub folder
/*
Hooks
- startup
- before_db
*/
//$Hooks->run('before_db') would run threw all the php files on the startup_db folder and include them, all you have to do is run the specific folder at the specific time in your system.
}
}
Join Litewarez.net today and become apart of the community.
Unique | Clean | Advanced (All with you in mind)
Downloads | Webmasters
Notifications,Forum,Chat,Community all at Litewarez Webmasters
-
26th Oct 2010, 11:42 PM #5Respected DeveloperWebsite's:
X4B.org
-
28th Oct 2010, 06:13 PM #6MemberWebsite's:
litewarez.net litewarez.com triniwarez.comI Usually use a registry system so i would not need to use vars this is why, in the hook i would do
Code:$Data =& Registry::get('Data'); $Data->SiteData += Registry::get('Database')->simpleAssoc("title",'site_data');
Join Litewarez.net today and become apart of the community.
Unique | Clean | Advanced (All with you in mind)
Downloads | Webmasters
Notifications,Forum,Chat,Community all at Litewarez Webmasters
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Implementing SEO
By Yashraj in forum vBulletinReplies: 1Last Post: 3rd Mar 2014, 05:48 PM -
Top 5 Arguments For Implementing a Tag Management
By GBot in forum Whitehat SEOReplies: 0Last Post: 12th Dec 2013, 05:49 PM -
Looking for Capcha hook
By AJ Blacklisted in forum IP.BoardReplies: 14Last Post: 12th Nov 2011, 10:40 AM -
Hook For Forum Statictics in vbulletin 3.8.6
By Palooo 2009 in forum vBulletinReplies: 0Last Post: 17th Jul 2010, 11:36 PM -
The google hook up
By bmoeller in forum Webmaster DiscussionReplies: 9Last Post: 12th Feb 2010, 08:33 AM
themaLeecher - leech and manage...
Version 4.94 released. Open older version (or...