Welcome Guest, Not a member yet? Register   Sign In
User logged in div question
#1

[eluser]razerone[/eluser]
Hi.

When my users logged in I would like a div on the right side to display where the user log in is. So once the user is logged in the log in form goes away and the div that I am after goes in it's place.

Any ideas I not sure how to type the if statement for it?

<div class="container users-forum">
<div class="row">
<div class="col-lg-12">
<div class="module-heading">
Community Forum Test View
<span #859CE6; font-size: 20px; text-align: center;">Coming Soon! 2014</span>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-8">
<div class="panel-body text-center">
<h4>Forum Topics</h4>
</div>

<div class="panel panel-default module">
<div class="panel-body">
<h4>Computer Hardware Problems</h4>
<p>Got a problem with your computer hardware post a topic</p>
</div>
</div>
</div>&lt;!-- Col 8 Div User Panel --&gt;
<div class="col-lg-4 ">
<div class="panel panel-default module">
<div class="hot-link"><h3 class="panel-title main-title">User Login Control</h3></div>
<div class="panel-body">
<h4>Under Maintenance Login Not Working</h4>

<div class="users-box module spacer-lg">
&lt;?php

$data = array(
'name' => 'login',
'id' => 'login',
'role' => 'form',
'class' => 'spacer-padding-lg',
);
?&gt;

&lt;?php echo form_open('users/success', $data);?&gt;

&lt;?php

$data = array(
'name' => 'username',
'id' => 'username',
'placeholder' => 'Username',
'class' => 'form-control',
);
?&gt;

<div class="form-group">
&lt;?php echo form_input($data);?&gt;
</div>

<div class="form-group">
&lt;?php echo form_error('username', '<div class="error" red;">', '</div>'); ?&gt;
</div>

&lt;?php

$data = array(
'name' => 'password',
'id' => 'password',
'placeholder' => 'Password',
'class' => 'form-control',
);
?&gt;

<div class="form-group">
&lt;?php echo form_password($data);?&gt;
</div>

<div class="form-group">
&lt;?php echo form_error('password', '<div class="error" red;">', '</div>'); ?&gt;
</div>

&lt;?php

$data = array(
'name' => 'users',
'id' => 'users',
'value' => 'accept',
'checked' => TRUE,
);
?&gt;

<div class="form-group">
&lt;?php echo form_checkbox($data);?&gt; <label>Remember Me</label>
</div>

<div class="spacer-padding-lg1a">
Not Registered? <a href="&lt;?php echo base_url('register');?&gt;">Register Here</a>
</div>

&lt;?php

$data = array(
'id' => 'submit',
'name' => 'submit',
'class' => 'btn btn-primary',
'value' => 'Sign In',
);
?&gt;

<div class="form-group">
&lt;?php echo form_submit($data);?&gt;
</div>

&lt;?php echo form_close();?&gt;

</div>


<div class="user-info">
<div class="col-md-4">
<a href="#" class="thumbnail"><img data-src="holder.js/100%x180" alt="..."></a>
</div>
<div class="col-md-8">
<span class="login-success">Your Back Congratulations!</span>
<div class="form-group">
<span class="view-profile">View Your Profile</span> <a href="#userprofile">&lt;?php echo $this->input->post('username');?&gt;</a>
</div>
</div>
</div>
</div>
</div>

</div>&lt;!-- Col 4 Div User Panel --&gt;

</div>
</div>






Theme © iAndrew 2016 - Forum software by © MyBB