How many of you would be interested in a plugin i made? - Printable Version +- MyBB Community Forums (https://community.mybb.com) +-- Forum: Extensions (https://community.mybb.com/forum-201.html) +--- Forum: Plugins (https://community.mybb.com/forum-73.html) +---- Forum: Plugin Development (https://community.mybb.com/forum-68.html) +---- Thread: How many of you would be interested in a plugin i made? (/thread-33856.html) Pages:
1
2
|
How many of you would be interested in a plugin i made? - flash.tato - 2008-07-17 Hi, time ago i made a plugin (just for fun) which extends MyBB's template engine. A basic example of how it works is:
And if i insert in the template the following code: It outputs 07-17-2008If i insert this It outputs 2008-07-17A more complex example is
In template i put this:
If you are a guest it outputs "Bye bye" else it outputs you can't view this. Basically it is a little framework (by default it has only 3/4 functions, the concept is i give the core, you extend it by adding new methods) which extends the template engine, you could extend a template engine by writing some PHP functions. My question is: would you be interested in seeing this for 1.4? If i receive a good demand for this, i could port it to 1.4 and releasing it with some new features (one of these is to include currenttemplate_functions.php which would contains some functions designed for the template in use ) Regards RE: How many of you would be interested in a plugin i made? - User 2877 - 2008-07-17 I been thinking of doing something to extend mybb functions too. I find there is limitation for blank pages which could be easily corrected. There are things would could be built in to help make plugin authors life easier. RE: How many of you would be interested in a plugin i made? - flash.tato - 2008-07-17 So in a bit of words: would be you insterested in my plugin? If i should release my hope is that other developers will extend it by writing some functions. RE: How many of you would be interested in a plugin i made? - Yumi - 2008-07-18 By all means, I encourage plugin development I made a similar plugin here: http://community.mybboard.net/thread-31860.html So feel free to base anything off it if you need help RE: How many of you would be interested in a plugin i made? - flash.tato - 2008-07-19 Ok i read your phptpl code. First of all thank you for letting me use your plugin as start point but i used a different approach, your is by taking control of Template Class, mine uses the hook "pre_output_page" and parses it. Your plugin makes use of the fact that MyBB uses eval() for parsing templates, mine reinvents the wheel . ZiNgA BuRgA's phptpl
Mine
RE: How many of you would be interested in a plugin i made? - Yumi - 2008-07-19 (2008-07-19, 01:33 AM)flash.tato Wrote: your is by taking control of Template ClassYeah, it's the only way to ensure you have the correct scope. I generally try to avoid PCRE if possible (but I ended up using it anyway >_>) - it's really slow... Good luck on your plugin! RE: How many of you would be interested in a plugin i made? - flash.tato - 2008-07-19 (2008-07-19, 07:40 AM)ZiNgA BuRgA Wrote: Yeah, it's the only way to ensure you have the correct scope.PCRE is highly optimized in my opinion, RegEx's knowledge helps much in writing fast RegEx. (2008-07-19, 07:40 AM)ZiNgA BuRgA Wrote: Good luck on your plugin!Thanks but my hope will be that some developers will extend it. RE: How many of you would be interested in a plugin i made? - Yumi - 2008-07-20 (2008-07-19, 12:50 PM)flash.tato Wrote:Note that highly optimised != fast.(2008-07-19, 07:40 AM)ZiNgA BuRgA Wrote: Yeah, it's the only way to ensure you have the correct scope.PCRE is highly optimized in my opinion, RegEx's knowledge helps much in writing fast RegEx. By nature, regexes are slow (ever tried writing one in C or ASM?). RE: How many of you would be interested in a plugin i made? - flash.tato - 2008-07-20 Yep. i used PCRE in C and i din't find some issues (maybe i used RegEx with strings with little length). RE: How many of you would be interested in a plugin i made? - Yumi - 2008-07-21 (2008-07-20, 06:46 PM)flash.tato Wrote: Yep. i used PCRE in C and i din't find some issues (maybe i used RegEx with strings with little length).No, I meant write a PCRE parser in C, not use one. |