954,576 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Invision Furl problem

Hope this is the right forum.Ive having a problem with an error after trying to install Furl for invision.

Ive tried alot of times and no matter how i do it i come up with this error.Ive edited in different php editors,and everything.Heres the error

"Parse error: parse error, unexpected T_STRING in /usr/local/psa/home/vhosts/exp0sed.org/httpdocs/Forum/sources/classes/class_display.php on line 1073"

Heres the area edited to install furl

[php]
//-----------------------------------------
// Images on another server? uncomment and alter below
//-----------------------------------------

if ( $this->ipsclass->vars['ipb_img_url'] )
{
$this->ipsclass->skin['_wrapper'] = preg_replace( "#img\s+?src=[\"']style_(images|avatars|emoticons)(.+?)[\"'](.+?)?".">#is", "img src=\"".$this->ipsclass->vars['ipb_img_url']."style_\\1\\2\"\\3>", $this->ipsclass->skin['_wrapper'] );
}

$this->_finish();
require ROOT_PATH."FURL.php";

print $this->ipsclass->skin['_wrapper'];

exit;
}
function make_url($title,$id,$type,$linktitle="",$tidlink=""){global $ibforums;$text = $title;//Charachters must be in ASCII and certain ones aint allowed$text = html_entity_decode ($text);$text = preg_replace ("'<[\/\!]*?[^<>]*?>'si", "", $text);$text = str_replace(" / ","-",$text);$text = str_replace("/","-",$text);$text = str_replace("'","-",$text);$text = str_replace(" - ","-",$text);$text = str_replace("_","-",$text);$text = str_replace(" ","-",$text);$text = str_replace( "ä", "ae", $text);$text = str_replace( "ö", "oe", $text);$text = str_replace( "ü", "ue", $text);$text = str_replace( "Ä", "Ae", $text);$text = str_replace( "Ö", "Oe", $text);$text = str_replace( "Ü", "Ue", $text);$text = str_replace( "ß", "ss", $text);$text = str_replace( "&", "and", $text);$text = str_replace( "%", "Percent", $text);$text = ereg_replace("[^A-Za-z0-9-]", "", $text);$text = str_replace("----","-",$text);$text = str_replace("---","-",$text);$text = str_replace("--","-",$text);
if ($linktitle!=""){$linktitle = " title=\"".$linktitle."\"";}
if ($tidlink!=""){$tidlink = " id=\"tid-link-{$tidlink}\"";}
$furl = "ipsclass->vars['board_url']}/{$text}-{$type}{$id}.html\"{$linktitle}>{$title}";return $furl;}
[/php]

Here is line 1073,a few lines above and after.

[php]
list( $cust_number, $acc_number ) = explode( ',', $cust_number_tmp );

@header( "Content-type: text/xml" );
$out = '<?xml version="1.0" encoding="ISO-8859-1"?'.'>';
$out .= "\n\n\t1\n\t5471\n\t79874\n\t"
[/php]

I dont see how there could be an error on the actual line it says there is as there have been no edits there and its just copyright type of stuff.Any help would be greatly appreciated.

xStylezx
Newbie Poster
14 posts since Sep 2004
Reputation Points: 10
Solved Threads: 0
 

May just be the way the forum format things, but the following line in the first code block (function makeURL):
[PHP]$text = $title;//Charachters must be in ASCII and certain ones aint allowed$text = html_entity_decode ($text);[/PHP] should be two lines:
[PHP]$text = $title;//Charachters must be in ASCII and certain ones aint allowed
$text = html_entity_decode ($text);[/PHP]

Lafinboy
Junior Poster
172 posts since Jul 2004
Reputation Points: 16
Solved Threads: 7
 
May just be the way the forum format things, but the following line in the first code block (function makeURL): [PHP]$text = $title;//Charachters must be in ASCII and certain ones aint allowed$text = html_entity_decode ($text);[/PHP] should be two lines: [PHP]$text = $title;//Charachters must be in ASCII and certain ones aint allowed $text = html_entity_decode ($text);[/PHP]

Thanks,your post helped me figure it out.

xStylezx
Newbie Poster
14 posts since Sep 2004
Reputation Points: 10
Solved Threads: 0
 

Glad to be able to help - if only a little bit!

Lafinboy
Junior Poster
172 posts since Jul 2004
Reputation Points: 16
Solved Threads: 7
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You