Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
Lateron
Worker
Worker



Joined: May 10, 2003
Posts: 119
Location: Katoomba, NSW, Australia.

PostPosted: Wed Mar 31, 2004 11:51 pm Reply with quote

I am very busy at the moment and don't have the time to keep my front page news articles up to date so I've converted my phpnuke site to a psuedo-phpbb one but with all the benefits of phpnuke - Web Links, MS Analysis, Hack Alert, Protector, Recommend Us, IP Tracker etc.

To do this just make your forums the front page module instead of news and then turn off unwanted blocks and modules. You can see what I mean by visiting my site.

The only thing I found wrong was that the forums did not flag new posts for some reason when I logged on. However, if clicked on forums in the menu, I found that once I got there the new post indicators were there.

To get around this I added an .htaccess file to my root directory with this command in it:

Quote:
Redirect /index.php http://www.mysite.com/modules.php?name=Forums


Now as soon as I access the site new posts are showing.

Doing it this way saves all the hassle of converting to phpbb and losing the phpnuke benefits. And you can always go back to a full phpnuke site with a few admin changes.

This may all seem to be an obvious thing to do but I have gone to the trouble (and it IS a lot of trouble) of converting nuke sites to phpbb (and vice versa). And I still regularly see requests on forums on how to do a conversion and there really is no need.

Everything seems to be working just fine but if anyone can see a flaw(s) in my method I would be interested in hearing about it.

Cheers,
Ron....
 
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Thu Apr 01, 2004 12:00 am Reply with quote

Just for curiosity, rather than having the server do the redirect, have you tried just putting the redirect in index.php?
 
View user's profile Send private message
Lateron







PostPosted: Thu Apr 01, 2004 12:05 am Reply with quote

I don't have any idea how to do that, Raven.

Is there a benefit in doing it that way?
 
Raven







PostPosted: Thu Apr 01, 2004 12:15 am Reply with quote

In index.php add these 2 lines right after the opening <? tag
Code:
header("Location: http://www.mysite.com/modules.php?name=Forums");

exit;


Run timing tests both ways and see which is faster.
 
Lateron







PostPosted: Thu Apr 01, 2004 12:32 am Reply with quote

Yes, that seems faster. Thanks, Raven.

I just had a horrible thought: would what I have done plus this redirect, cause a bypass of hackattempt.php and Protector (which is activated in the root header.php) ? Confused
 
Raven







PostPosted: Thu Apr 01, 2004 2:37 am Reply with quote

I don't know about Protector but you should be ok with my script. My script is called from mainfile.php and modules.php starts off by calling mainfile.php.
 
Lateron







PostPosted: Thu Apr 01, 2004 4:38 am Reply with quote

Good news.

I tested HackAttempt, Protector and Chatserv's admin fix from the other day and they all work!
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©