<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Core functions pluggable</title>
		<link>https://www.cotonti.com</link>
		<description>Laatste forum onderwerpen</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Fri, 01 May 2026 22:46:11 -0000</pubDate>

		<item>
			<title>Brock</title>
			<description><![CDATA[It's a lot more unneeded code and extra files to include, which certainly can't speed it up. If you're including 50 files rather than 30, don't you think the process would be slower?]]></description>
			<pubDate>Thu, 18 Dec 2008 07:46:16 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=329&d=0#post1766]]></link>
		</item>
		<item>
			<title>esclkm</title>
			<description><![CDATA[but why it will be slow? may be wright them in config.php if you mean that it need sql?]]></description>
			<pubDate>Thu, 18 Dec 2008 03:53:43 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=329&d=0#post1741]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[The problem about pluggable functions and extra files which you have described is that it slows everything down. That's why we try to avoid pluggable functions by providing good ones out of the box.<br />
<br />
Hmm, is the pagination thing already in Trac? My vbulletin-style would do, but it needs figuring out and fixing some weird bug, or probably using some third-party code.]]></description>
			<pubDate>Thu, 18 Dec 2008 03:48:53 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=329&d=0#post1738]]></link>
		</item>
		<item>
			<title>Lombi</title>
			<description><![CDATA[<blockquote><a href="https://www.cotonti.com/forums.php?m=posts&amp;amp;p=1720#1720">#</a> <strong>esclkm :</strong>
and i think that in new CMS pagination method must be replaced from sedplus plugin<br />
</blockquote>
<br />
Yeah, either that one or the one that Trustmaster did (vbulletin pagination), this one is horrible.]]></description>
			<pubDate>Thu, 18 Dec 2008 03:23:37 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=329&d=0#post1735]]></link>
		</item>
		<item>
			<title>esclkm</title>
			<description><![CDATA[also I think today about pluggable functions/<br />
and I think that rating, comments,  parser, pagination must be pluggable<br />
but I think that they must be not look like plugins or replaceble files - they must be something between them.<br />
For example:<br />
folder &quot;functions&quot; in default there are files:<br />
parser.default.php<br />
pagination.default.php<br />
comments.default.php<br />
ratings.default.php etc.<br />
<br />
user download and insert in this folder new parser &quot;parser.new.php&quot;. And then in admin area he choose parser.<br />
<br />
So in this way: <br />
1. this functions are not plugins<br />
2. standart functions we don't need to replace they are only not in functions.php<br />
3. easy to install. easy to choose<br />
4. if user update CMS, custom functions will be not replaced by standart files <br />
<br />
what do you think about this?<br />
and i think that in new CMS pagination method must be replaced from sedplus plugin]]></description>
			<pubDate>Thu, 18 Dec 2008 00:31:34 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=329&d=0#post1720]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[They want custom third-party parsers like <a href="http://xbb.uz/" rel="nofollow">xBB</a>.]]></description>
			<pubDate>Vr, 22 Aug 2008 09:59:29 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=329&d=0#post621]]></link>
		</item>
		<item>
			<title>Orkan</title>
			<description><![CDATA[yah, I see... <br />
but the question is what they really want? a custom parser or ability to add custom bbcodes? <br />
I would like to hear some arguments here]]></description>
			<pubDate>Vr, 22 Aug 2008 07:19:59 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=329&d=0#post618]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[Some people REALLY want to, so why not give them a huge piece of happiness? :satisfied]]></description>
			<pubDate>Vr, 22 Aug 2008 06:11:19 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=329&d=0#post615]]></link>
		</item>
		<item>
			<title>Orkan</title>
			<description><![CDATA[as long as we provide a mechanism for adding new bbcodes without replacing standard parser - Im all for it!<br />
<br />
Im not sure why you would replace the internal parser?]]></description>
			<pubDate>Thu, 21 Aug 2008 22:07:35 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=329&d=0#post607]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[Got an idea about third-party parsers. There will be a default one which works from functions.php as usually. And for those, who want to use a third-party parser, there will be a configuration option to switch pluggable parser on, which will be just another include file rather than a hooked plugin. So the overhead is just one &quot;if&quot; for most users and one &quot;include&quot; for &quot;plugin&quot; users.]]></description>
			<pubDate>Thu, 21 Aug 2008 18:20:14 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=329&d=0#post599]]></link>
		</item>
		<item>
			<title>Kilandor</title>
			<description><![CDATA[Yea, we can do it.<br />
<br />
I didn't say what I meant though clearly, I meant say, if your testing changes to BBcode, not always new bbcode. But overall I think we can do it so it can be config and on demand re-parsing.]]></description>
			<pubDate>Za, 16 Aug 2008 13:40:24 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=329&d=0#post507]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<blockquote><strong>Kilandor:</strong><hr />*trying to test new bbcode, means re-parsing each time</blockquote>
Not really. Old messages cannot contain this new bbcode, so you don't need to reparse them. New bbcodes automatically apply to new messages and that is not a problem.<br />
<br />
<blockquote><strong>Kilandor:</strong><hr />Alt Solution, make a option to enable, pre-parsed message storing.<br />
I think the only true option would be to clear the stored messages, and only have them re-parsed when they are loaded, but you could have an option as well to re-parse all.</blockquote>
Sounds good. Really worth implementing.]]></description>
			<pubDate>Za, 16 Aug 2008 12:51:45 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=329&d=0#post505]]></link>
		</item>
		<item>
			<title>Kilandor</title>
			<description><![CDATA[To saving pre-parsed, and source text here is what I think<br />
<br />
Pro<br />
*Quicker Execution<br />
*No need to parse bbcode every single page load.<br />
<br />
Cons<br />
*Making changes, to bbcode require every single page/post to be reparsed - this could create major issues on sites with large date - solution could be to only reparse it when that page/post is loaded<br />
*trying to test new bbcode, means re-parsing each time<br />
<br />
Alt Solution, make a option to enable, pre-parsed message storing.<br />
<br />
I think the only true option would be to clear the stored messages,  and only have them re-parsed when they are loaded, but you could have an option as well to re-parse all.]]></description>
			<pubDate>Za, 16 Aug 2008 09:56:37 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=329&d=0#post500]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[By the way, another thing related to parsers and performance is on-demand parsing rather than on display. This way you have 2 fields for each text message: one containing source and the second already rendered for display. So parsing is done only when you add/modify messages or click &quot;reparse all&quot; button in Admin panel. It requires a bit more space for DB, but you don't need any pasing per each request anymore.<br />
<br />
Pros/cons?]]></description>
			<pubDate>Za, 16 Aug 2008 05:48:11 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=329&d=0#post496]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[The parser situation is quite clear now.<br />
<br />
What about the rest pluggable functions Tefra mentioned?]]></description>
			<pubDate>Za, 16 Aug 2008 05:39:14 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=329&d=0#post495]]></link>
		</item>
		<item>
			<title>Orkan</title>
			<description><![CDATA[&quot;out of the box&quot; means extra disc operations - thats all :wink<br />
<br />
I still think this is too much essential feature to have it out of the box.<br />
It'll present in all installations and we will use it a lot in the core.<br />
We should have a control over it and provide an API to extend it - but not to have it pluggable - its too much waste of resources, IMO]]></description>
			<pubDate>Za, 16 Aug 2008 05:27:57 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=329&d=0#post493]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[Isn't it a right place to do it?<br />
<br />
As far as I see it would be better to combine the efforts to have a powerful bbcode parser out of the box with bbcode editor and API to add/remove bbcodes in plugins, with all PCRE and &quot;remove extra &lt;br&gt;&quot; patches applied, and completely reworked HTML parsing mode.]]></description>
			<pubDate>Vr, 15 Aug 2008 19:51:31 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=329&d=0#post485]]></link>
		</item>
		<item>
			<title>Orkan</title>
			<description><![CDATA[The parser() problem is a good subiect for separate discussion, where we could list all possible combinations of use and then.. find the most appropriate solution :)]]></description>
			<pubDate>Vr, 15 Aug 2008 16:40:52 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=329&d=0#post475]]></link>
		</item>
		<item>
			<title>Kilandor</title>
			<description><![CDATA[Actually as far as bbcode is concerned, I propose my plugin/sql system, be used. BBcode can be easily added to a sql db which is then accessable by any/every plugin.<br />
<br />
As the parser functions pull from that data, and its cached. Mysql usage like this is very very minimal, as it uses a cache.<br />
<br />
I don't see any other options unless you created a painful file creating structure to add and store it all in a php file, that had api access, which would be a bit more difficult, not to mention more chances for problems <br />
<br />
And maybe some similar creation can be done for the others.]]></description>
			<pubDate>Vr, 15 Aug 2008 16:27:32 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=329&d=0#post474]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[I see the point. Obviously there should be a lower level API functions like sed_bbcode_add() and sed_bbcode_remove(). But I was talking of parser logic, not data. For example, a parser that will validate WYSIWYG HTML or add Wiki syntax support.<br />
<br />
But, of course, if we could put all the parsers in one powerful parser, I would be all for it. The problem I encountered with parser_v2 is that those 2 arrays for str_replace() and preg_replace() (yeah, forget eregi, it's much slower) are not enough and for some sophisticated parsing you need preg_replace_callback() and custom functions. At that, some parser functions conflict with each other (e.g. nl2br).<br />
<br />
I can't say I'm all for many parser mods, but are you sure it is possible to have superior one?]]></description>
			<pubDate>Vr, 15 Aug 2008 15:14:00 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=329&d=0#post471]]></link>
		</item>
		<item>
			<title>Orkan</title>
			<description><![CDATA[Well, I have completely different idea about the parser in SED.<br />
<br />
Lets say you have installed a new gallery plugin which adds new bbcode [photoid=123]<br />
Then, you have yet another plugin ie. for flash movies, with new bbcode [movie]...[/movie]<br />
<br />
How this will work with modules? You cant replace one parser with another b/c that way you lose the other one.<br />
<br />
I would like to see one, internal Parser() function which will operate on two arrays.<br />
PS. These 2 arrays are now &quot;closed&quot; in sed_bbcode() - one for str_replace() and one for eregi_replace()<br />
<br />
Both arrays should be stored in DB and therefore be accessible to any plugin. <br />
Each time you install new plugin, it can add new bbcodes to DB.<br />
<br />
What I mean is that we need only one powerful Parser() function with its basic functionality. <br />
With modules we can only destroy Seditio's clarity and code integrity.<br />
<br />
I would suggest - instead of modules - creating flexible functions that plugins can use with their own data. There is no point in copying Sed's functions to modules, IMO :)]]></description>
			<pubDate>Vr, 15 Aug 2008 13:33:29 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=329&d=0#post470]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[Previous threads:<br />
<a href="http://www.neocrome.net/plug.php?e=tracker&amp;m=bview&amp;pr=1&amp;id=404" rel="nofollow">http://www.neocrome.net/plug.php?e=tracker&amp;m=bview&amp;pr=1&amp;id=404</a><br />
<a href="http://www.neocrome.net/forums.php?m=posts&amp;p=123836#123836" rel="nofollow">http://www.neocrome.net/forums.php?m=posts&amp;p=123836#123836</a><br />
<br />
Well, I think we don't really need them as plugins, because you are not likely to install more than 1 parsers at once (otherwise they will conflict).<br />
<br />
What I would suggest right now is to have some of core functions you would like to replace grouped in &quot;modules&quot; like:<br />
system/mods/parser.inc.php<br />
system/mods/pagination.inc.php<br />
<br />
So, once you need another parser, you just download third-party parser.inc.php and replace the default one. Yes, that will add a few more require's in common.php, but that's still faster than having them as plugins. And I made includes work slightly faster, see Ticket #39 on Trac.<br />
<br />
Alternatively, could pick up all includes in system/mods folder, but that will be more disk operations.]]></description>
			<pubDate>Vr, 15 Aug 2008 08:20:50 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=329&d=0#post464]]></link>
		</item>
	</channel>
</rss>