943,513 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 49633
  • PHP RSS
You are currently viewing page 3 of this multi-page discussion thread; Jump to the first page
Nov 5th, 2004
0

Re: [Revised] vBulletin Mod_rewrite Tutorial

In external.php,

PHP Syntax (Toggle Plain Text)
  1. echo "\t\t<link>$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;goto=newpost</link>\r\n";
would need to be replaced with
PHP Syntax (Toggle Plain Text)
  1. echo "\t\t<link>$vboptions[bburl]/newpostinthread$thread[threadid].html</link>\r\n";

and

PHP Syntax (Toggle Plain Text)
  1. echo "\t\t<guid isPermaLink=\"false\">$vboptions[bburl]/showthread.php?t=$thread[threadid]</guid>\r\n";
would need to be replaced with
PHP Syntax (Toggle Plain Text)
  1. echo "\t\t<guid isPermaLink=\"false\">$vboptions[bburl]/thread$thread[threadid].html</guid>\r\n";
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is online now Online
13,645 posts
since Feb 2002
Nov 6th, 2004
0

Re: [Revised] vBulletin Mod_rewrite Tutorial

Dani, as ever, you are a star.
Reputation Points: 10
Solved Threads: 1
Light Poster
I, Brian is offline Offline
47 posts
since Mar 2004
Nov 7th, 2004
0

Re: [Revised] vBulletin Mod_rewrite Tutorial

Aww, thanks Brian
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is online now Online
13,645 posts
since Feb 2002
Nov 7th, 2004
0

Re: [Revised] vBulletin Mod_rewrite Tutorial

Dani, just one small issue with external.php - when calling up syndicated content for individual vB3 sub-forums, you use something like:

PHP Syntax (Toggle Plain Text)
  1. external.php?forumids=38

to call up a feed of that subforums.

However, it doesn't seem to like this on the workaround to static HTML. I *presume* it's an issue to be corrected with .htaccess, but I'm not quite sure about how to go about it.

Would you possibly have any suggestion?
Reputation Points: 10
Solved Threads: 1
Light Poster
I, Brian is offline Offline
47 posts
since Mar 2004
Nov 10th, 2004
0

Re: [Revised] vBulletin Mod_rewrite Tutorial

Alright im implementing this new revised on a new site of mine, and it doesnt really go smoothly, had to figure alot of things out myself Btw the htaccess code was wrong i thought, as the threads you clicking into will have the title in the filename, you need something like this

PHP Syntax (Toggle Plain Text)
  1. RewriteEngine on
  2. Options +FollowSymLinks
  3. RewriteRule ^t([0-9]+)-(.*).html$ showthread.php?t=$1 [L]
  4. RewriteRule ^lastpostinthread([0-9]+).html$ showthread.php?goto=lastpost&t=$1 [L]
  5. RewriteRule ^newpostinthread([0-9]+).html$ showthread.php?goto=newpost&t=$1 [L]
  6. RewriteRule ^f([0-9]+)-(.*).html$ forumdisplay.php?f=$1 [L]

Im having this error "Parse error: parse error, unexpected T_STRING in /home/musicp/public_html/forums/includes/functions_online.php on line 164" when i go to who online or try to view a profile. Im really quite new to PHP, any idea guys ?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ToOnZ is offline Offline
6 posts
since Aug 2004
Nov 11th, 2004
0

Re: [Revised] vBulletin Mod_rewrite Tutorial

Good catch on that one Nordinho: Dani: this (probably) should be edited into the original post of this thread...
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Natch is offline Offline
16 posts
since Oct 2004
Dec 1st, 2004
0

Re: [Revised] vBulletin Mod_rewrite Tutorial

Got a problem. The rewite works fine, except that I'm seeing duplicate forum names. Any idea what I need to edit to fix this?

www.clantt.com/vb/ is the url in question.

Thanks in advance. Nice work.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
infiniterb is offline Offline
2 posts
since Dec 2004
Dec 2nd, 2004
0

Re: [Revised] vBulletin Mod_rewrite Tutorial

Excellent tutorial...nice job. Should be very handy..I might try this
Reputation Points: 10
Solved Threads: 0
Newbie Poster
eWebTalk is offline Offline
24 posts
since Oct 2004
Dec 3rd, 2004
0

Re: [Revised] vBulletin Mod_rewrite Tutorial

I agree with ewebtalk great tutorial!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
hysteriaweb is offline Offline
17 posts
since Sep 2004
Dec 9th, 2004
0

Re: [Revised] vBulletin Mod_rewrite Tutorial

I just installed the first VB forum that I own yesterday (www.mysportsforum.com) and this tutorial is DA BOMB baby!

Thanks everybody!
Reputation Points: 16
Solved Threads: 2
Junior Poster
Arizona Web is offline Offline
118 posts
since Jun 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: using php to check for filenames
Next Thread in PHP Forum Timeline: Interesting, yet probably simple, PHP Nuke Error





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC