Changing output from backslah to frontslah in Banner???

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
jmansa
Forum Members
Forum Members
Posts: 126
Joined: Thu Oct 19, 2006 2:46 pm

Changing output from backslah to frontslah in Banner???

Post by jmansa »

I'm trying to parse on the banner output to a flashmovie but have figured out that the out put of the imagefil is send with "\" instead og "/", and thats no good...

Code: Select all

uploads\localadds_a\1.jpg 

I have found the output script in banners module but have no idea how to change this??? Please help.

Banner script:

Code: Select all

if( isset( $row['image'] ) && isset( $row['url'] ) ) 
      {
	  $image = 'uploads';
	//$image = '<img src="uploads';
	if( $row['image'][0] != '/' )
	  {
	    $image .= DIRECTORY_SEPARATOR;
	  } 
	$image .= $row['image']."";
Post Reply

Return to “CMSMS Core”