MySubscriptions, Donation Bar, MyDownloads, MyAchievements and support for our free and paid plugins. All that for $7!
Advertise Here!
Are you looking to advertise on this forum? Please read this announcement thread.
Are you looking to advertise on this forum? Please read this announcement thread.
|
How to create a MyPlaza Turbo module
|
|
04-16-2009, 02:31 AM
(This post was last modified: 04-16-2009 02:32 AM by Pirata Nervo.)
Post: #1
|
|||
|
|||
|
How to create a MyPlaza Turbo module
This is just a tutorial to give you the really basic understanding of how MyPlaza Turbo/MyPlaza modules work.
Ok so now let's start the explanations part. (note that I've copied some information from the coments found in demo.php aswell as parts of the code) Language PHP Code: function mymod_lang()The $lang object, with these languages definitions will automatically be available in the following functions:
PHP Code: function mymod_lang_admin()The $lang object, with these languages definitions will automatically be available in the following functions:
Admin CP part PHP Code: function mymod_info()PHP Code: function mymod_activate() PHP Code: function mymod_deactivate() PHP Code: function mymod_admin($process) $process - true if processing options User part PHP Code: function mymod_run($item) The item data is passed through $item so you can check the name, cost, etc. (It's an array) Returns true if buy is successful, false otherwise PHP Code: function mymod_page() It's accessible from /plaza.php?action=page&p=mymod PHP Code: function mymod_htmlextra() Note: It is only run once - NOT one time for each item to be displayed! If you want to learn more, check the demo module (demo.php) which came with every MyPlaza Turbo release. I learnt from there (when it still was for MyPlaza (1.2.x)), I have updated it to work with MyPlaza Turbo of course. |
|||
|
04-16-2009, 06:27 AM
Post: #2
|
|||
|
|||
|
RE: How to create a MyPlaza Turbo module
It's easy
.hahahaha .Nice tutorial though, must've taken you a LOONG time to make this .I learnt to code ( though I could code PHP already ) myplaza through the sample module(demo.php), then I made really simple modules a bit like that one but differently and finally when I could do it ( or when it bugged I called Nervo for help ahah - Thanks for all the support though, Nervo ) I tried coding more complex modules then .lol, Thank you ,- Shadows. Geekhelps.net, the home of all geeks and webmasters! |
|||
|
04-17-2009, 06:02 AM
Post: #3
|
|||
|
|||
|
RE: How to create a MyPlaza Turbo module
Great tutorial...
Now, if only someone would release a tut for normal MyBB plugins. That would rock! free web hosting -Free hosting! -Free top-level domains! -cPanel 11 |
|||
|
04-20-2009, 03:56 PM
Post: #4
|
|||
|
|||
|
RE: How to create a MyPlaza Turbo module
I have some at my site
. ( my sig )- Shadows. Geekhelps.net, the home of all geeks and webmasters! |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)


![[Image: s.png]](http://mybb-plugins.com/images/s.png)


.
.
.