UBB.Dev
Posted By: Gardener [6.0.1] ForumIndexLoginBox 1.0 - 07/06/2002 4:49 PM
Mod Name / Version ForumIndexLoginBox 1.0
Description Adds a login box to the forum index for users not logged in.
Working under UBB.threads 6.0.1
Any pre-requisites None
Author(s) Gardener
Credits The person who made this for an older version of UBB.threads
Demo See attached screenshot
Files Altered ubbthreads.tmpl
Database Altered No
New Files None
Any other info Almost the same effect can be achieved by just putting the login box in the ubbt_unregisterednav.tmpl template which will put the login box on all pages when the user isn't logged in.


Attached File
Posted By: Gary_dup1 Re: ForumIndexLoginBox 1.0 - 08/01/2002 9:49 PM
This doesn't seem to work for me. Using 6.0.2.
When I try to log in using the new box, I get a message saying: All of the required fields are not filled in.

Obviously I'm putting both my username and password in!

Any ideas?
Posted By: Gardener Re: ForumIndexLoginBox 1.0 - 08/01/2002 11:06 PM
Yes, this only works for 6.0.1 since the login form has changed in 6.0.2.

Fortunately this was one of the hacks I managed to upgrade yesterday before my server went down again today.

You can find the hack updated for 6.0.2 in this thread.
Posted By: Gary_dup1 Re: ForumIndexLoginBox 1.0 - 08/09/2002 1:05 PM
Fantastic... Cheers.
Posted By: lauraz Re: ForumIndexLoginBox 1.0 - 10/16/2002 1:20 PM
Can I use this hack on version 6.0.2 ?
Posted By: Gardener Re: ForumIndexLoginBox 1.0 - 10/16/2002 5:27 PM
No, it doesn't work properly on 6.0.2 since the login process was changed in that version. You will find an upgraded version here that you can use instead.
Posted By: KLB Re: ForumIndexLoginBox 1.0 - 03/24/2003 2:40 PM
Will this work with version 6.1? If not - is there a download for that version?

Thanks.
Posted By: Gardener Re: ForumIndexLoginBox 1.0 - 03/24/2003 7:47 PM
I have no idea, but it might. The only change I can remember that needs to be done is to add the cookie prefix to the language require. Change this:
Code
<br />require "languages/$w3t_language/login.php";  //UBBTREMARK<br />


To this:
Code
<br />require "languages/${$config['cookieprefix']."w3t_language"}/login.php"; //UBBTREMARK<br />


Hope that helps.
© UBB.Developers