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.
Anyone? When people who don't have an avatar are logged in, it displays a broken image. Is there anything I can do to fix that? How can I tell the script to just display a link to edit their avatar, or possibly even a default avatar image?
sorry it dont show me welcome back
How can if fix this problem
all my code is :
Quote:
<?
if ($bbuserinfo['userid']!=0) {
$username=$bbuserinfo['username'];
// i assigned the avatar url to the variable $user_av and check to see if it's empty.
$user_av = fetch_avatar_url($bbuserinfo['userid']);
if($user_av!='')
$user_av="/forum/" . $user_av; //replace "/forum/" with your virtual path to your forum pages.
I am using this code as it seems to be the easiest way to integrate a login throughout our entire site.
I have a seemingly small problem though which is driving me nutz: The whole menu with login-thingy is inside php file which i include. In the non-forum pages, i of course also include the global.php, which i don?t inside the forum.
Outside the forum everything works exactly as it should.
As soon as you enter the forum, the variable (userid) seems to be empty and the if clause of course doesn?t work anymore...
Ok im going to need a little help from someone good with PHP. What happens is i tried on 3.5 and its pretty good but what happens is i login it logs in but then on the main page it just comes up with the login will i need to make a new file and redirect that to the logged in page eg indexloggedin.php also i tried logging in and i check the forums it says i have visited in the last 15 minutes but i dont seem to be logged in!