[BETA] Login Box Mod 0.2.0

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Post Reply
ryan0204
Registered User
Posts: 44
Joined: Thu Jan 17, 2002 2:12 am

[BETA] Login Box Mod 0.2.0

Post by ryan0204 »

This is an update I did of another mod called index_login(by Mike Dawidowicz) to work w/ phpbb 2.0.6. It lets you place a small login box on your homepage and lets a user login without having to display the message board. I have it running on my computer and it seems to be working fine, but please let me know if you find any errors with it.

Download Login Box 0.2.0
[Edit] Link fixed, thanks to Jason for hosting the file.
Last edited by ryan0204 on Sun Jun 04, 2006 8:56 pm, edited 2 times in total.
danb00
Registered User
Posts: 1025
Joined: Sun Dec 15, 2002 9:41 pm
Location: Inside Mod:Extreme PHPBB
Contact:

Post by danb00 »

been done before

http://phpbbhacks.com/viewhack.php?id=1839

and there was no need of an update as it works fine with 2.0.6
ryan0204
Registered User
Posts: 44
Joined: Thu Jan 17, 2002 2:12 am

Post by ryan0204 »

This one is a little different. If they enter an in valid username/pw it will display the error in the little box rather than displaying the forum & when you logout it doesn't show phpbb's logout page like that mod you linked to does.
danb00
Registered User
Posts: 1025
Joined: Sun Dec 15, 2002 9:41 pm
Location: Inside Mod:Extreme PHPBB
Contact:

Post by danb00 »

hmm sounds good then :)

got a demo and test account?
ryan0204
Registered User
Posts: 44
Joined: Thu Jan 17, 2002 2:12 am

Post by ryan0204 »

Last edited by ryan0204 on Thu Jan 15, 2004 11:11 pm, edited 1 time in total.
Graemeo
Registered User
Posts: 52
Joined: Wed Sep 03, 2003 11:52 pm

Post by Graemeo »

i just get Cannot Find Server when trying to view Demo or Download file :(
krazykris
Registered User
Posts: 31
Joined: Sun Jan 04, 2004 9:52 pm
Location: UK
Contact:

Post by krazykris »

When will the login box be put back up, i really want to use it
ryan0204
Registered User
Posts: 44
Joined: Thu Jan 17, 2002 2:12 am

Post by ryan0204 »

Sorry about that, i switched servers and forgot to re-upload it. It's up again & so is the demo
s0undt3ch
Registered User
Posts: 15
Joined: Fri Feb 06, 2004 2:23 am

Slight Problem!

Post by s0undt3ch »

Hi there, You dont image how much I've serached the web to find something like this! Thank You!

Now the sligh detail:

I included lb_login.php on a cell on my main page wich ain't on bb2's root and the same page is in bb2 root with the name index2.php.

Code: Select all

root
   |- index.php //from where I call the lb_login
   |
   |-phpbb2
   |       |-lb_login.php
   |       |-index2.php //from where I also call the lb_login
   |       |
Well if I open my main page it gives me an erron:
Fatal error: Call to undefined function: session_pagestart() in c:\program files\utils\webdevelop\appserv\www\s0undt3ch\phpbb2\lb_login.php on line 39

If I open index2.php, the one on phpbb2 root folder, everyting works great!

I tried adding:

Code: Select all

<?
define('IN_PHPBB', true);
$phpbb_root_path = './phpbb2/';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
?>
witch wasn't there because I noticed you had it your mod, but even worst:

Warning: init_userprefs(./language/lang_english/lang_main.php): failed to open stream: No such file or directory in c:\program files\utils\webdevelop\appserv\www\s0undt3ch\phpbb2\includes\functions.php on line 243

Warning: init_userprefs(): Failed opening './language/lang_english/lang_main.php' for inclusion (include_path='.;c:\php4\pear') in c:\program files\utils\webdevelop\appserv\www\s0undt3ch\phpbb2\includes\functions.php on line 243
Template->make_filename(): Error - file /lb_logged_in.tpl does not exist


How can I make this work, without beeing forced to be in bb2 root?

Thanks,
Pedro.
s0undt3ch
Registered User
Posts: 15
Joined: Fri Feb 06, 2004 2:23 am

I'll answer this myself!

Post by s0undt3ch »

8)

Read ALL the install.txt

Pedro.

:roll:
Abax
Registered User
Posts: 142
Joined: Sun May 11, 2003 10:34 am
Location: Atlanta
Contact:

Post by Abax »

It does not work if I installed my forum in a subdomain. Is there a way to get aroud that?
vincentR
Registered User
Posts: 17
Joined: Wed Oct 22, 2003 11:46 am

Post by vincentR »

i think there is something missing in install.txt
regarding phpBB2/lb_login.php
you apparently forgot to mention that this should be changed too?

//type your phpBB2 subdirectory with ending slash
$phpBB_url = ($site_url.'phpBB2/');
vincentR
Registered User
Posts: 17
Joined: Wed Oct 22, 2003 11:46 am

Post by vincentR »

somehow i cannot get the include to work

my phpBB forum is in the /forum/ subdirectory
my code
<?php
define('override_phpbb_root_path', 'forum/'); // path to the phpBB2 folder, no beginning slash
require(override_phpbb_root_path . 'lb_login.php');
?>

i get the following error :
Fatal error: Failed opening required 'forum/lb_login.php' (include_path='.:/usr/lib/php') in /home/sites/site10/web/forum/testlogin.php on line 8
ronaldlimburg
Registered User
Posts: 8
Joined: Thu Oct 02, 2003 9:11 am

Log off?

Post by ronaldlimburg »

Mods works good, still a question.

When I log off on the forum-page, I will be redirected to my main page. On that page is the login_mod active, and it sais that I am still online. (And I was logged out through the forum). When I press logout, then there will be an error.

When I manually go back from the main page, than I can normally logged out, and everything works fine.

So what should I do?
Remove the log out link from the forum?

Ronald
ryan0204
Registered User
Posts: 44
Joined: Thu Jan 17, 2002 2:12 am

Post by ryan0204 »

vincentR wrote: somehow i cannot get the include to work

my phpBB forum is in the /forum/ subdirectory
my code
<?php
define('override_phpbb_root_path', 'forum/'); // path to the phpBB2 folder, no beginning slash
require(override_phpbb_root_path . 'lb_login.php');
?>

i get the following error :
Fatal error: Failed opening required 'forum/lb_login.php' (include_path='.:/usr/lib/php') in /home/sites/site10/web/forum/testlogin.php on line 8


I think the problem is that the file testlogin.php is in your phpbb folder, and the way the mod was written is that it is called from a file outside of the phpbb folder. So when you call lb_login.php from testlogin.php its probably looking in /forum/forum. Try changing the 'forum/' to just ''
ronaldlimburg wrote: Mods works good, still a question.

When I log off on the forum-page, I will be redirected to my main page. On that page is the login_mod active, and it sais that I am still online. (And I was logged out through the forum). When I press logout, then there will be an error.

When I manually go back from the main page, than I can normally logged out, and everything works fine.

So what should I do?
Remove the log out link from the forum?

Ronald

The problem with that is the browser loading a saved version of your main page, if you refresh you'll see that you have logged out. I'll check out the error when you press the logout button and see if I can find out why its happening
Abax wrote: It does not work if I installed my forum in a subdomain. Is there a way to get aroud that?

Can't really be of much help here, I haven't tested it out on subdomains.
Post Reply

Return to “[2.0.x] MODs in Development”