Page 1 of 1

Changing output from backslah to frontslah in Banner???

Posted: Sun Sep 16, 2007 8:14 pm
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']."";