View Single Post
Old 10-05-2009, 06:52 PM   #1 (permalink)
Killswitch
The Contributor
 
Join Date: Feb 2007
Posts: 64
Thanks: 9
Killswitch is on a distinguished road
Default Can anyone help with this plugin system?

Hi guys, I am working on something and wanted to try and borrow code where I could. This project is just a personal use type thing, didn't wanna spend ages on it, so I figured that was a good route to take ;)

Anyways, I decided to borrow the plugin system from Joomla 1.0. I have it working with my own custom code, halfway. I have two plugins that just replace tags, and they do that fine... however... it prints the content twice.

The first printing of content will say replace google ads, like the first plugin should do. Then the next plugin prints the content replacing a simple {url} tag like it should do.

I am trying to get it to only print the conten item once and pass the results between plugins before I finally print the results, but not working correctly. I will attach the plugin class I am using and modified to work for my CMS.

I'm not looking for a solution, just a point in the right direction, or maybe if something doesn't quite look right.
Attached Files
File Type: php plugins.php (3.8 KB, 111 views)
Killswitch is offline  
Reply With Quote