Discussion on Simple Bulletin Board - Login Anywhere

themac

themac does not currently provide support for this item.

13 comments found.

dude – thank you

makes all our lives simpler :-)

I’m trying to implement this into an if statement which has validation like:

if(empty($_POST['fuser'])){
$errors[] = 'Username cannot be empty';
}

if(empty($errors)){ //LOG IN THE USER HERE $_SESSION[‘username’] = $_POST[‘fuser’]; }

but once I log in the form doesn’t log me into the forum – like the sbbauth sessions are not been stored.

hi,

thx for purchasing SBB -LAW :)

where did you use the if statement, in the class.

please contact me via my profile or via email (readme.txt) and provide more information (URL, login info…)

currently I’m going an a trip this long weekend – so don’t wonder if answers arrive not until monday

thx again
mac

if statement is used at the end once all validation has happened. i’ll email you the full login code.

Thanks

Nice one :)

This is a five star addon ‘and hope we get some more for a 5 star product ’’ Top man :)

thank ya

... when the ideas come :) ...

Will this work only for SSB ? I have a membersystem installed on a website. The membersystem uses sql database. And suppose I install SSB on that site too…..

Now, can a single login be possible for members to use the members areas as well as SSB ?

hi,

this is just an addon for the SBB that offer’s the possibility to add a login-form anywhere on your homepage – it’s currently not easy possible to use another member system

byemac

Hello themac,

Great work and very helpful add on. I have a few clarifications before purchasing.

1. Can the ‘Login Anywhere’ have a register link, Forgot Password and remember me options ??

2. In the register form : – Can we have an extra input field to enter the employee ID ? – The registration should send an email to an admin who then activates the account and send the notifications to the user??

Hi,

ad 1)
you could add a link to the SBB register form. A forgot password (reset password) function isn’t impleentd yet – but itÄs a good idea and I’ll think about adding it.

There’s no remember me function implemented into the SBB

ad 2)
You could add more fields to the register form. An “Activation by administrator” option is already implemented

rgds
mac

Hi Mac

I’m working on a little web page here: http://www.build.adammcarthur.net/v2.html

I’m going to obviously eventually change the page to .php but,

how do you make it so login anywhere can be used in that login form in the top right hand corner? How would you customize it to do so?

Cheers.

hi,

thx for purchasing SBB -LAW :)

yes, it should be a php file to handle the inputs

after succeeded installation of SBB -LAW (following equipped instructions) with positioning the echo $SBBLaw->drawLoginForm(); at the prefered positionon your site. you can stye your form with CSS (sample2.php) and/or modify the out put of the method drawLoginForm() in sbb.law.class.php

rgds
mac

Ahh okay.

Is possible to not get it to draw the form, and do it manually?

So for example could you use a form action? This would be reaaalllyy helpful for me.

<form class="login-form nolabel bar clearfix" action="AN ACTION TO LOGIN">
                <input required name="username" class="login-input" type="text" placeholder="Username" />

                <input required name="password" class="login-input" type="password" placeholder="Password" />

                <input class="login-btn" value="" type="submit" />
            </form>

Thanks Mac,

Adam.

hi,

you’re able to do it manually, just check out the drawLoginForm() method

you can either modify (copy into a new method) drawLoginForm() or write the whole code to your site, but therefor you have to take care on some variables: $this->auth, $this->error

rgds
mac

hmmm…

So I can’t go;

<form method="post" action="sbb.law.class.php" />

?

It’s just I’l have to change 150+ lines of code if I can’t do it this way.

the actio shouldn’t be sbb.law.class.php but the page where you’re about to include the class (the same page)

bye
mac

Can the login form be used on other pages on the site.. that don’t have the forum? Say I bought the forum and this addon.. and then wanted to “membership protect” a few other pages. Could I use the login as a global membership for my site.. or will it only work on the page(s) where the forum is installed?

Thanks.

hi,

you could use the addon to protect any other sites too

if ($SSBLaw->auth) {
   //authenticated stuff
} else {
   //non-auth stuff
}

rgds
mac

So I have SBB embedded into a template that I have. I added this addon to the template as well. Everything works, but when I logout, the following message appears, I still logout of the system though:

Warning: session_destroy() [function.session-destroy]: Trying to destroy uninitialized session in /home/sbb/classes/auth.class.php on line 70

How can I fix this error?

Thanks.

-— UPDATE --—-

I added <?php session_start(); ?> to the top of sbb.law.class.php and it has gotten rid of the error. I do not know if this is the correct thing to do though. But it seems to work.

hi,

thx for purchasing this SBB addon :)

adding of <?php session_start(); ?> was the correct solution I think, I’ll consider this for a future update

thx
mac

Hi,

I’ve recently purchased SBB4.1. I notice this addon is over 2 years old, will it still work with the new SBB version?

hi,

yes it should – but I’ll check it out these days and if not (don’t think so) I’ll update the item for SBB3+ and SBB4+

rgds
mac

I have one question. your program needs SQL or not ? Pls. answer me.

hi,

this item is an addon for the Simple Bulletin Board (SBB or SBB Bootstrap Edition) – which needs mysql

rgds
mac

by
by
by
by
by
by