Jump to content

Recommended Posts

Posted

Hello,

I want to put a login form onto our Multicraft Installation: http://mc.gbitdrive.net (top right) to link to http://gbitdrve.net/client with a login form that automatically logs our clients into their portals. Is that possible? We use WHMCS a lot and we wanted to try Blesta for our 2nd brand.

Thanks, Jacob

 

http://www.blesta.com/forums/index.php?/topic/510-login-form-outside-blesta/

Posted

Hello,

Take a look at the Multicraft now..... any way to fix that?

Thanks, Jacob

 

You've not added the form correctly. If you can remove the form back to how it was before I can inspect element edit it for you and give you the code here.

Posted

Here is the code I have: 

         <form class="navbar-form navbar-right" role="form">
            <div class="form-group">
              <input type="text"  class="form-control" name="username" placeholder="Username" value="" id="login_username">
            </div>
            <div class="form-group">
			  <input type="password" placeholder="Password" class="form-control" name="password" value="" id="login_password">
            <div>
			<input type="submit" name="login" value="Login" class="btn" />
          </form>

Original:

        <?php endif ?>
        <?php
        if (Yii::app()->user->isGuest)
        {
        ?>
         <form class="navbar-form navbar-right" role="form">
            <div class="form-group">
              <input type="text" placeholder="Name" class="form-control">
            </div>
            <div class="form-group">
              <input type="password" placeholder="Password" class="form-control">
            </div>
            <button type="submit" class="btn btn-success">Login</button>
          </form>
        <?php
        }
        else
        {

Thanks, Jacob

Posted

Hello,

I am trying to make tghe login for on the menu bar login to the Blesta Client area

 

I'm confused mate, you have two logins.

 

Login which links to the Multicraft login page, and the login (form), is it the form you are trying to make work for Blesta?

Posted

Hello,

This login form want it to link to Blesta which is https://gbitdrive.net/client.

Login Form: http://puu.sh/faNEX/1131afd8fd.jpg

Thanks, Jacob

 

Ok thank you so it is the long one :).

 

Your code should be: 

<form class="navbar-form navbar-right" method="post" action="http://gbitdrve.net/client/login/">
     <div class="form-group">
         <input type="text" placeholder="Name" class="form-control" name="username" id="login_username">
     </div>
     <div class="form-group">
        <input type="password" placeholder="Password" class="form-control" name="password" id="login_password">
     </div>
     <input type="submit" name="login" value="Login" class="btn btn-success" hidefocus="true">
</form>

And make sure you have edited the config file as stated in the other thread.

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...