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.
ok ok i have a beta version of my site and its working like a charm, with a lot of another functions running smooth (avatar, new pms, etc) but in my real site.. its not working!
i get this error.
Code:
Fatal error: Call to a member function on a non-object in /xxxx/foros/includes/functions.php on line 922
and sometimes these other one:
Code:
Fatal error: Call to a member function on a non-object in /xxxx/foros/includes/sessions.php on line 72
functions.php line is:
Code:
$user = $DB_site->query_first("
and sessions.php line is:
Code:
$DB_site->shutdown_query("
Yes, i have included global.php before functions_user.php.
The beta version of the site is vb3.0.0 (working) and real is vb3.0.3 (not working) very strange.
ok ok i have a beta version of my site and its working like a charm, with a lot of another functions running smooth (avatar, new pms, etc) but in my real site.. its not working!
i get this error.
Code:
Fatal error: Call to a member function on a non-object in /xxxx/foros/includes/functions.php on line 922
and sometimes these other one:
Code:
Fatal error: Call to a member function on a non-object in /xxxx/foros/includes/sessions.php on line 72
functions.php line is:
Code:
$user = $DB_site->query_first("
and sessions.php line is:
Code:
$DB_site->shutdown_query("
Yes, i have included global.php before functions_user.php.
The beta version of the site is vb3.0.0 (working) and real is vb3.0.3 (not working) very strange.
The creator of this script has NEVER repliedto anyones posts, shouldnt this be removed or something as it is clearly not working or maybe a notice in his post saying that it has bugs.
The creator of this script has NEVER repliedto anyones posts, shouldnt this be removed or something as it is clearly not working or maybe a notice in his post saying that it has bugs.
Just a suggestion
Here's how I finally got it to work. I had conflicting database statements so I just read the database right from the index.php file.
umm is that safe putting that info in your index.php?
It's no different than putting it in a "config.php" file.
If you feel uncomfortable with it in there then put the database information in another file and then just put an include statement in the index.php file.