MyBB Community Forums

Full Version: Any tutorials on creating Plugins?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there any tutorials on setting up plugins, since no one is interested in my ideas Sad

I might as well give it a shot?

1. adding to the postcreens, inserting to database and retrieving.

2. adding a page with links

3. adding post info to the Index
ok get me started please:

1. i would like to add a custom field into add new calendar event

2. which hook do i hook into?

calendar_do_addevent_start		92
calendar_do_addevent_end		211
calendar_addevent_start		244
calendar_addevent_end		547
calendar_do_editevent_start		597
calendar_do_editevent_end		714
calendar_editevent_start		760
calendar_editevent_end		1118
(2015-02-03, 06:53 AM)expat Wrote: [ -> ]ok get me started please:

1. i would like to add a custom field into add new calendar event

2. which hook do i hook into?


calendar_do_addevent_start		92
calendar_do_addevent_end		211
calendar_addevent_start		244
calendar_addevent_end		547
calendar_do_editevent_start		597
calendar_do_editevent_end		714
calendar_editevent_start		760
calendar_editevent_end		1118
With a lot of hooks like that, usually you'll need to either find another plugin that does what you're trying to do and copy that source, or just test them out and see which works. Personally I would try _do_addevent_start and _addevent_start first. Of course anyone else that's familiar with modifying the calendar would probably be able to tell you which specific hook you need.
thanks