Forum Moderators: coopster

Message Too Old, No Replies

Help with plugin layer

Not working how I want >:0

         

xKillswitchx

2:25 am on Oct 24, 2009 (gmt 0)

10+ Year Member



Hey guys and gals,
I am working on a CMS and have integrated a plugin system loosely off of Joomla 1.0's plugin system.

I have it working... to an extent. The proper plugin files are being required, events are being set and the content is being processed through the plugins and returned.

However! I have two plugins and one large paragraph. One plugin replaces {google} with my adsense code block. The other plugin replaces {url} with the site url ( just for testing, a simple thing ).

Now when I view the page, I am seeing the paragraph replicated for each additional plugin, so for the two plugins I see two paragraphs of the same content.

In the first paragraph, the {url} tag is not being parsed, while the google tag is. In the second, both tags are being parsed.

I am really clueless on this. I have looked over the code and cant see where this could be coming from. If anyone is willing to help, I can give yout he plugins.php code and show how it is being used.

eelixduppy

10:17 pm on Nov 9, 2009 (gmt 0)



What are you using to replace those tags with the content? Regex replace function or something different? Doesn't make much sense to me from what I can see.