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

In external.php,

echo "\t\t<link>$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;goto=newpost</link>\r\n";

would need to be replaced with

echo "\t\t<link>$vboptions[bburl]/newpostinthread$thread[threadid].html</link>\r\n";


and

echo "\t\t<guid isPermaLink=\"false\">$vboptions[bburl]/showthread.php?t=$thread[threadid]</guid>\r\n";

would need to be replaced with

echo "\t\t<guid isPermaLink=\"false\">$vboptions[bburl]/thread$thread[threadid].html</guid>\r\n";
cscgal
The Queen of DaniWeb
Administrator
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
 

Dani, as ever, you are a star. :)

I, Brian
Light Poster
47 posts since Mar 2004
Reputation Points: 10
Solved Threads: 1
 

Aww, thanks Brian :)

cscgal
The Queen of DaniWeb
Administrator
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
 

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

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?

I, Brian
Light Poster
47 posts since Mar 2004
Reputation Points: 10
Solved Threads: 1
 

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

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?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 ?

ToOnZ
Newbie Poster
6 posts since Aug 2004
Reputation Points: 10
Solved Threads: 0
 

Good catch on that one Nordinho: Dani: this (probably) should be edited into the original post of this thread...

Natch
Newbie Poster
16 posts since Oct 2004
Reputation Points: 10
Solved Threads: 0
 

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.

infiniterb
Newbie Poster
2 posts since Dec 2004
Reputation Points: 10
Solved Threads: 0
 

Excellent tutorial...nice job. Should be very handy..I might try this

eWebTalk
Newbie Poster
24 posts since Oct 2004
Reputation Points: 10
Solved Threads: 0
 

I agree with ewebtalk great tutorial!

hysteriaweb
Newbie Poster
17 posts since Sep 2004
Reputation Points: 10
Solved Threads: 0
 

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

Thanks everybody!

Arizona Web
Junior Poster
118 posts since Jun 2004
Reputation Points: 16
Solved Threads: 2
 

**From the original thread

Sorry to be a pain but I would love this hack to work but I have obviously done something wrong

the forums come up correctly but I get a 404 error on every page. I have redone the hack from start three times now but the same thing always happens

You can see at www.forums.ic-games.co.uk

Any idea whats up? I have tried to read as much of this thread as I can put its getting on 12 pages and I may have missed something.

Any help appreciated

Coasters
Newbie Poster
4 posts since Dec 2004
Reputation Points: 10
Solved Threads: 0
 

How would I know that rewrites are activated on the server? Having problems doing this hack yet everyone else has success :p

My last guess is that I cannot do this on our server?

However the "/" error is still not fixed on the instructions and the last code changes feature repeated steps. Could someone clean up the original instructions as its a nightmare in its current form and obviously people (me anyway :p) are still visiting this thread for the first time :(

Coasters
Newbie Poster
4 posts since Dec 2004
Reputation Points: 10
Solved Threads: 0
 
How would I know that rewrites are activated on the server?


Contact your host and ask them :)

KeithMcL
Light Poster
34 posts since Oct 2004
Reputation Points: 10
Solved Threads: 0
 
Contact your host and ask them :)

That sounds like a plan, cheers Keith :)

Coasters
Newbie Poster
4 posts since Dec 2004
Reputation Points: 10
Solved Threads: 0
 

Easy way to check if it's working or not is to upload the phpinfo file. Search the results for mod_rewrite. If it's listed an installed module under the Apache heading then it's there and running, if it doesn't show up then it hasn't been installed.

nathanaus
Light Poster
31 posts since Dec 2004
Reputation Points: 10
Solved Threads: 0
 

Does this thread/method supercede the one started by cscgal?

nathanaus
Light Poster
31 posts since Dec 2004
Reputation Points: 10
Solved Threads: 0
 

In the multiple pages of replies to the original thread, many amendments / other ideas were discussed. This thread simply implements some of those other ideas, so one doesn't have to read through so many posts.

cscgal
The Queen of DaniWeb
Administrator
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
 

okay thanks

nice job on the site too

nathanaus
Light Poster
31 posts since Dec 2004
Reputation Points: 10
Solved Threads: 0
 

Small issue.

I did everything, ran it, looked fine got error pages. Changed the .htaccess as suggested by another poster - looked great.

One problem remains

One of my forum "headers" and one of my forum "links" shared the same name, so the generated HTML was identical for two different sections.

I went into the admin section and renamed the forum link prt to add an additional word but the html didn't update leaving two links with the same name.

As a result clicking either of these givees a popup saying:

f2-name-of-file is not a registered protocol

How can I fix this? Also does this mean when I add new forums to the site they wont be updated either?

nathanaus
Light Poster
31 posts since Dec 2004
Reputation Points: 10
Solved Threads: 0
 

Small issue.

I did everything, ran it, looked fine got error pages. Changed the .htaccess as suggested by another poster - looked great.

One problem remains

One of my forum "headers" and one of my forum "links" shared the same name, so the generated HTML was identical for two different sections.

I went into the admin section and renamed the forum link prt to add an additional word but the html didn't update leaving two links with the same name.

As a result clicking either of these givees a popup saying:

How can I fix this? Also does this mean when I add new forums to the site they wont be updated either?


Actually looking further into it the original file name has a semi colon : in it. I'm wondering if that is causing a problem?

nathanaus
Light Poster
31 posts since Dec 2004
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You