|
MyPlaza v0.5 (Beta)
|
|
11-25-2007, 05:27 PM
Post: #21
|
|||
|
|||
|
RE: MyPlaza (preview version) - Ultimate shop/money mod!
why do you want MYPS with it? with this, you can donate, you have a bank, you can do the same things as you do with MYPS
![]() Console World - Console World brings you the news you must know about your console, every day! |
|||
|
11-25-2007, 07:19 PM
Post: #22
|
|||
|
|||
|
RE: MyPlaza (preview version) - Ultimate shop/money mod!
Great plugin, but I wonder why is everyone making a plugin on his own doing the same function?, it would be great If your creativity and Labrocca's professionality could be combined in one super-duper points plugin.
|
|||
|
11-25-2007, 08:55 PM
Post: #23
|
|||
|
|||
|
RE: MyPlaza (preview version) - Ultimate shop/money mod!
when i want to activate plugin
Parse error: syntax error, unexpected '=', expecting ')' in /home/forumbay/public_html/inc/plugins/myplaza/bank.php on line 364 |
|||
|
11-25-2007, 10:35 PM
Post: #24
|
|||
|
|||
|
RE: MyPlaza (preview version) - Ultimate shop/money mod!
i can't find anything wrong on line 364 !?
Line 364: PHP Code: function bank_update_values($cur_amount = null, &$user = null) did you download MyPlaze 0.1.1? ![]() Console World - Console World brings you the news you must know about your console, every day! |
|||
|
11-26-2007, 04:29 AM
Post: #25
|
|||
|
|||
RE: MyPlaza (preview version) - Ultimate shop/money mod!
haXan2005 Wrote:when i want to activate pluginDo you have some other modification which uses the "money" field? If not, you may have activated MyPlaza, something screwed up, and now you have duplicate fields. You can drop the column using the query: Code: ALTER TABLE mybb_users DROP 'money', DROP 'purchases';Mamoun Wrote:Great plugin, but I wonder why is everyone making a plugin on his own doing the same function?, it would be great If your creativity and Labrocca's professionality could be combined in one super-duper points plugin.Making own plugins? The only other plugin I'm aware of is MYPS and/or Inventory Shop. It seems there's a misconception about MyPlaza. MyPlaza is VERY different in nature from the above two. MyPlaza does NOT come with any items, or whatnot. MyPlaza is a framework on which items etc can be built onto. Although it does have an AJAX based front-end, it's power lies in the back-end. MYPS and the inventory shop is mostly a front-end application, whereas MyPlaza is back-end driven. This is why the only way they can be combined is for MYPS to be built on top of MyPlaza (something I don't think labrocca is willing to do). If you look into this plugin, earning income is through a module/plugin built on top of MyPlaza (the Income module). This is to show that MyPlaza does not really do much by itself. haXan2005 Wrote:when i want to activate pluginI don't think I can find much problem with that either, unfortunately. Can you tell me what PHP version you are running? I'll see if I can find what the problem is. Thanks. |
|||
|
11-26-2007, 04:47 AM
Post: #26
|
|||
|
|||
|
RE: MyPlaza (preview version) - Ultimate shop/money mod!
i'll actally like myps built into the plugin still kept the inbuilt one but make like which money system
inventory shop did it on the plugin realease candatate 2 but i need this one because its got user title change but if u dont do it i will just wait till labrooca does her plugin Porting and testing Plugins to mybb 1.6 = 90% Planning in new plugins for mybb 1.6 started Planning to make modules for NewPoints Not yet started |
|||
|
11-26-2007, 07:07 AM
Post: #27
|
|||
|
|||
RE: MyPlaza (preview version) - Ultimate shop/money mod!
Quote:Although it does have an AJAX based front-end, it's power lies in the back-end. MYPS and the inventory shop is mostly a front-end application, whereas MyPlaza is back-end driven. I use mybb as my backend. And MYPS is released GNU/GPL. You are free to take the code and place whatever you want on top of it. You could have written your framework to work with myps but instead you chose to work with your own system. It's understandable but don't give the impression that MYPS is restricted in some way. MYPS is a very basic yet extensive plugin for points. I have hooks in all the right places and would add a hook upon request if one was needed. The reason I built MYPS is to be a CORE plugin for points. Ryan did a perfect integration into his inventory shop with MYPS so it's obviously very possible to do so. There are dozens of possibilities for a forums that uses points but a point system that's open is the key to that integration. Anyone can write a plugin using MYPS and the starndard mybb plugin system. There are already a handful that exist. Looking at your code I am somewhat perplexed why you chose to create a plugin system within a plugin system. It's great code what you wrote..don't get the wrong impression. Maybe I am just not smart enough to know why a person would redo something that's already done. I built MYPS for mybb. You are asking authors to write for MyPlaza. Quote:but if u dont do it i will just wait till labrooca does her plugin When did I lose my manhood?
Join MyBB Central for exclusive plugins. Downloads require a paid membership. Do you need free Mybb Support? |
|||
|
11-26-2007, 09:27 AM
(This post was last modified: 11-26-2007 09:57 AM by Yumi.)
Post: #28
|
|||
|
|||
RE: MyPlaza (preview version) - Ultimate shop/money mod!
labrocca Wrote:I use mybb as my backend. And MYPS is released GNU/GPL. You are free to take the code and place whatever you want on top of it. You could have written your framework to work with myps but instead you chose to work with your own system. It's understandable but don't give the impression that MYPS is restricted in some way. MYPS is a very basic yet extensive plugin for points. I have hooks in all the right places and would add a hook upon request if one was needed.It's somewhat possible, but the integration would be very ugly at best. No offense to you, MYPS is a great plugin, but I really dislike how you did some things. For example: PHP Code: function myps_reply()PHP Code: function myplaza_post_new(&$ph) {The function uses results already done via queries in MyBB, so the function is much more optimized. Plus, I recommend using the abstractions MyBB provides, such as the $db->simple_select function rather than using your own $db->query("SELECT"), as this allows code portability. My plugin doesn't count characters. This is because I can't think of a nice way to do so. For example, if a user edits a post, your plugin (from what I can see in the code) does not update one's MYPS based on the new length. There are a fair number of other flaws I see in your plugin. PHP Code: $plugins->add_hook('delete_post', 'myps_delete_reply'); Haven't tested it, but I would assume deleting a post doesn't run the function... There's also a few other shortcommings in your plugin, such as a few places in the AdminCP allows SQL injection. Here's one, for example: PHP Code: $orderby = $mybb->input['orderby'];The inputs are not escaped in any way, and they are used directly in an SQL query. Now, you may consider that admins shouldn't try and stuff up their own board, but, it's nonetheless, a security issue, if someone does manage to break into the AdminCP. Anyways, writing an Income module doesn't take to long for me, so I find it easier to write one myself, than to probably ask you to implement everything I want. Sorry if I've sounded too negative labrocca. I'm sure many people love your plugins, and you've certainly done a good job ![]() Anyway, plugin system within plugin system: This is to address a few issues: 1) Bloat - MyPlaza already includes over 5 modules in a preview version. I plan to include MUCH more. Just imagine how many plugins you would have, filling up MyBB's plugin system, not to mention the MyBB Settings editor, and the number of language files 2) Speed - MyPlaza tries to reduce the need for hooking, by allowing modules to be written in a more passive manner. You can imagine how much a board can be bloated with 20+ modules installed, and MyBB constantly including those files, and forcing the PHP parser to go through and process them. 3) Quicker development - As with the above, this makes module development MUCH easier, than having to make an entire MyBB plugin - just make a _run() function, and MyPlaza will handle everything correctly. No need for a plugin developer to place hooks for some actions (although the possibility is still there) 4) Limitations of the MyBB plugin manager - not many, but primarily to allow modules to have separate settings section, which is also more customizable 5) MyPlaza specific functions - for example, Advanced Modules (allows modules to perform automatic code edits) |
|||
|
11-26-2007, 09:44 AM
(This post was last modified: 11-26-2007 09:47 AM by labrocca.)
Post: #29
|
|||
|
|||
|
RE: MyPlaza (preview version) - Ultimate shop/money mod!
http://wiki.mybboard.net/index.php/MyBB_Plugin_Hooks
delete_post is there in inc/class_moderation.php And you are right...I do have some ugly code. I am going to clean much of it up. MYPS is still in development. It's all very functional though and has no bugs. What's important is that it all works. And I know of a way to fix the count character issue in an edit but it's going to be very complicated to do. It's on my worktable. MYPS could certainly use some better code but to end-users...it's all functional. The extra queries you mention are near meaningless since they are only run when a reply is made. I am more worried about thread view queries myself. Your code is certainly superior...no question about that. I just wonder if it's too complex...you are asking other authors to write plugins for your plugin. I tried to take a peek and was just baffled by all the pages you have. Ryan's inventory plugin though is perfect...he uses classes perfectly and the mybb plugin system with excellence. I have changes for myps lined up and all your suggestions are truly appreciated. Looking at that myps_reply function I can only shake my head. It's surely not the best piece of code out there. EDIT: Hmm...I just realized that the function I wrote includes the erop payment. That's a couple of the queries right there. How would you do that without new queries? Sorry but while you see it as extra queries in reality it's extra functions. In case you don't know what erop is...it's where the Original Poster of a thread earns MYPS for each reply. Join MyBB Central for exclusive plugins. Downloads require a paid membership. Do you need free Mybb Support? |
|||
|
11-26-2007, 10:40 AM
(This post was last modified: 11-26-2007 10:48 AM by Yumi.)
Post: #30
|
|||
|
|||
RE: MyPlaza (preview version) - Ultimate shop/money mod!
labrocca Wrote:http://wiki.mybboard.net/index.php/MyBB_Plugin_HooksMust be an error. If you can tell me which line it is on, I'll give up. BTW, just did a test. As I thought, deleting a post, indeed, does not remove money. labrocca Wrote:and has no bugsI wouldn't go about making that claim ![]() There's quite a few places where inputs are directly sent into the DB without escaping. Though I have been unable to do any SQL injections (not too sure why, it seems that PHP's function for sending queries has protection against using packing multiple queries in a single statement). labrocca Wrote:The extra queries you mention are near meaningless since they are only run when a reply is made.Which is why I prefer different style of coding I guess. I try to optimize most things as much as possible. I could reduce a few more queries by using shutdown queries, but I couldn't be bothered with it... labrocca Wrote:Your code is certainly superior...no question about that. I just wonder if it's too complex...you are asking other authors to write plugins for your plugin. I tried to take a peek and was just baffled by all the pages you have.I believe the simpledemo.php is fairly basic - if you know how to make a MyBB plugin, you should have no issues with understanding it. PHP Code: <?phpdemo.php and amdemo.php should be figureable if you have more in-depth knowledge of PHP. I wouldn't recommend trying to figure out how MyPlaza works by looking at my modules (income.php, bank.php and donate.php). I'm somewhat lazy in the commenting department. I also try to allow for simple modules, like the above, and more complex ones, such as a bank system, and an upcoming inventory system (almost done). labrocca Wrote:Ryan's inventory plugin though is perfect...he uses classes perfectly and the mybb plugin system with excellence.Whether you like classes is up to you. I find it generally to convoluted, especially with PHP, as it's implementation of classes is pretty bad at best (okay, it supports inheritance, but otherwise, it's pretty bad). labrocca Wrote:EDIT: Hmm...I just realized that the function I wrote includes the erop payment. That's a couple of the queries right there. How would you do that without new queries? Sorry but while you see it as extra queries in reality it's extra functions. In case you don't know what erop is...it's where the Original Poster of a thread earns MYPS for each reply.Mine does as well - look at the above code (excepted here): PHP Code: if($thread['uid'] != $mybb->user['uid'])Anyways, I'm anxious to see an improved MYPS labrocca - keep it up! It's nice to see what people can come up with ![]() Also, thanks for the criticisms - I'll think about trying to make things easier to understand (I plan to do so with some documentation in later versions). |
|||
|
« Next Oldest | Next Newest »
|
Search
Member List
Calendar
Help

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




