xStylezx 0 Newbie Poster

May just be the way the forum format things, but the following line in the first code block (function makeURL):

$text = $title;//Charachters must be in ASCII and certain ones aint allowed$text = html_entity_decode ($text);

should be two lines:

$text = $title;//Charachters must be in ASCII and certain ones aint allowed
$text = html_entity_decode ($text);

Thanks,your post helped me figure it out.

xStylezx 0 Newbie Poster

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

//-----------------------------------------
		// 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 = "<a{$tidlink} href=\"{$this->ipsclass->vars['board_url']}/{$text}-{$type}{$id}.html\"{$linktitle}>{$title}</a>";return $furl;}

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

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<ipscheck>\n\t<result>1</result>\n\t<customer_id>5471</customer_id>\n\t<account_id>79874</account_id>\n\t"

I dont see how there could be an error on the …

xStylezx 0 Newbie Poster

i need the code for this but using Ted's method...

Ted didnt post any code specific to the navbit did he?
Some of this navbit stuff i already had done myself as i did some previous hacks to remove sid from the url's and some other things to make my forum more google friendly.

On another unrelated note,as soon as i posted my url here for help,i know it wasnt minutes afterwards that inktomi bot assimilated all my info.Cant imagine it got very much though as threads werent loading at that point.Although at the bottom of the forum where i have latest post and replies the url's still have sid's in them as i havent changed that yet.Im curious as to whether it could download all the other threads from just that?As in following the next and previous topic links at the bottom of threads and picking them up even though i was still having the 404's using the .html links.Must have been downloading alot as there was like 90 something bots online at one time.250 something times my vb stat hack says inktomi visited within that short amount of time.Thats amazing :eek:

xStylezx 0 Newbie Poster

Yeah,excellent features.I love how when the ads arent targeted they vanish and couldnt be more simpler to implement.

xStylezx 0 Newbie Poster

I have finally got my threads loading.haha I kept looking through this thread for others .htaccess info and tried substituting a few things and as soon as i added this

RewriteRule ^thread([0-9]+).html$ showthread.php?t=$1 [L]

Instead of

RewriteRule ^t([0-9]+)-(.*).html$ showthread.php?t=$1 [L]

Threads loaded right up.Im not exactly sure i understand why it wouldnt load with the latter,but at least i got it working,with alot of help from you. ;)

xStylezx 0 Newbie Poster

Im still a little lost as to what,if any changes i need to back out or add to get the threads loading. lmao

Usually never takes me this long to figure stuff out,even on my own.Sorry im hitting you with these onslaught of questions,im sure it can be tedious,but if you got more advice then im all ears.Thanks alot for your help thus far.

xStylezx 0 Newbie Poster

What you posted didnt clear it up,although its getting closer.I modified the entry you told me to add into this

RewriteRule ^thread([0-9]+).html$ forumdisplay.php?f=$1 [L]

Now the thread starts loading but i receive this vbulletin message

"No Forum specified. If you followed a valid link, please notify the webmaster"

:confused:

xStylezx 0 Newbie Poster

hey Ted, I just noticed something else we have to edit if we follow your way of doing this. We would have to edit threadbit and postbit and do some changes.

example (postbit): http://www.thepcforum.com/forum/thread5.html
Click on Hardware or Processors (CPU) links in the navigation part.

example (threadbit): http://www.thepcforum.com/forum/f6-processors-(cpu).html
Click on Hardware link in navigation.

Unless I missed your directions on what to change?

Yeah,i think i edited mine if i remember right.

cscgal,any ideas yet about those 404's i got?I have a feeling its something simple,but i cant figure out for the life of me
:eek:

xStylezx 0 Newbie Poster

Sure.My url is http://non-chalant.com/forum
And the .htaccess is,

RewriteEngine On
Options +FollowSymLinks
RewriteRule ^t([0-9]+)-(.*).html$ showthread.php?t=$1 [L]
RewriteRule ^lastpostinthread([0-9]+).html$ showthread.php?goto=lastpost&t=$1 [L]
RewriteRule ^newpostinthread([0-9]+).html$ showthread.php?goto=newpost&t=$1 [L]
RewriteRule ^f([0-9]+)-(.*).html$ forumdisplay.php?forumid=$1 [L]

Thanks alot for the help ;)

xStylezx 0 Newbie Poster

Alright,no luck so far in figuring out why im getting the 404's when trying to click on a thread.Ive checked some obvious things that would seem to effect it,still 404's.

If anyone could give me a point in the right direction and/or tell me what could be the root of this,im sure i could hack it out :D

xStylezx 0 Newbie Poster

Hello everyone,just joined today.Pretty nice community here.Thanks for the welcome cscgal :D

xStylezx 0 Newbie Poster

Ok,got the index 404 problem figured out myself.Now im having a 404 when i click on an actual thread(forumdisplay).I shall see if i can work this out myself but if anyone has any advice please clue me in as im going at this practicly blind :mrgreen:

xStylezx 0 Newbie Poster

Hello,thanks for all the great info in this thread.I seem to be having a problem with 404's on the index page just as previously stated in the thread by someone else.I havent quite been able to figure this out yet so if someone could possibly give me a hand id appreciate it :)

http://www.non-chalant.com/forum

If you need any extra info let me know,thanks.

Oh,another point,on some of the threadbit edits(particulary step 2)i had a problem with that edit just not existing in my template.As well on Step 7 there was only one instance of the code needing edited and it was stated to be 2.Also there was no accesskey 1 on the end of the only edit of Step 7 i found.Not positive if this has any bearing on my problem or not.I have edited some of my templates previously to make the forum more SEO friendly.Thanks again for the help