Page 1 of 1

outputfilter not load

Posted: Sat Sep 29, 2012 7:53 pm
by rigu
Hi,
I try to install outputfilter, but it is not loaded.
outputfilter.smskey.php

I finded in Smarty_CMS class from SVN, on line 187 that it verify basename, and for outputfilter is output

Code: Select all

			foreach( $files as $onefile ) {
			
				$onefile = basename($onefile);
				$parts = explode('.',$onefile);
				if( !is_array($parts) || count($parts) != 3 ) {					
					continue;
				}
								
				switch( $parts[0] ) {
				
					case '[b][color=#800080]outputfilter[/color][/b]':
						$output[] = $parts[1];
						break;
						
					case 'prefilter':
						$pre[] = $parts[1];
						break;
						
					case 'postfilter':
						$post[] = $parts[1];
						break;
				}
			}
Changed, and now filter load.
Will be correct this sollution?

Re: outputfilter not load

Posted: Sat Sep 29, 2012 8:00 pm
by Dr.CSS
You may need to explain yourself a little more fully as I have no idea what you are talking about...

http://forum.cmsmadesimple.org/viewtopi ... =40&t=2661

Re: outputfilter not load

Posted: Sat Sep 29, 2012 8:11 pm
by rigu
Ok, I am sorry for my english..

I try to install tag from http://dev.cmsmadesimple.org/projects/smscoin_cmsms_1

So, I modified it for 1.11.

But it does'nt work.... :(
This outputfilter is not called by smarty.