Version: 1.00, by mcahill
Developer Last Online: Dec 2012
Version: 3.0.0
Rating:
Released: 02-02-2004
Last Update: Never
Installs: 74
No support by the author.
This is a simple modification to do, and adds a lot of value to your homepage.
Notes:
1. This script can occassionally have conflicts with other javascripts. Test before you deploy.
2. If you use and include to put the file on your page, be sure that the chdir and the require for global.php is in the head of the main document.
3. It is assumed that you are using a php page, and that you have already got connectivity with your database.
The code:
At the top of the document, before the <html> or <head> tags (edit to provide the path for your particular installation):
Before requesting support, please check the following:
1. Make sure you have the path to your forum in the chdir. If you haven't done this, you will get a "can't include" error.
2. Make sure you have the chdir in the main document. If it isn't you will get a "can't modify header" error.
3. If those don't resolve the issue, try putting the login in a separate file, with no other code. If it works there, then you will know that you have a conflict with one of the scripts on the page you are trying to add the login to. I can't help you if you've got a conflict with another script.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
1. After Logging in, can the member be sent back to the page he logged in at.
2. Once the person has logged in, can you add: Welcome back "username" and You have 0 new PM's (or if 2 new PM's - you have 2 new PM's)...
Okay, I finally got this hack to work with my PHPnuke 7.1. There's still 1 problem remaining. It logs in and returns to the main page, however the message does not change to "Welcome username", it always shows the login form....I made it into a phpnuke block, so it is in its' own file. The login is successful, but there is no welcome page.
Make sure your "Path to Save Cookies" setting in your Administrator Control Panel is set so that the path includes your login page. For example, you might need to change it from "/forum/" to "/"...
Ok, I have a small problem, when the user is logged into the forums every thing is fine, but when there is an unregistered or logged out user I get this
Line 1 is the call to global.php, anyone know why this is happening? Thanks
EDIT: Ummm, I noticed anything that uses a call to global.php on the main page makes this happen, we also have latest post and events from the calander calling to it . . . . . :ermm: :disappointed:
1. After Logging in, can the member be sent back to the page he logged in at.
2. Once the person has logged in, can you add: Welcome back "username" and You have 0 new PM's (or if 2 new PM's - you have 2 new PM's)...
That's exactly what I'm looking for! Plus a link to View New Posts. Does anyone know how to do this with this hack?