PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
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 Back to top

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
Only registered users can see links on this board!
Get registered or login to the 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: 16987
Location: Kansas

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

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 Visit poster's website AIM Address Yahoo Messenger
Lateron
Worker
Worker


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

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

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

Is there a benefit in doing it that way?
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

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.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Lateron
Worker
Worker


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

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

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
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

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.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Lateron
Worker
Worker


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

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

Good news.

I tested HackAttempt, Protector and Chatserv's admin fix from the other day and they all work!
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum