Forum Support

 
Advanced Search


[1]

Offline KlintWeb
Free Member
Posts: 253
Posted on: April 25, 2015, 02:30:52 AM

I want to add icons to login / Logout
I've tryed with class="s5box_login <?php if ($s5_user_id) { echo ion-log-out; } else { echo ion-log-in; } ?>" in index.php - see the code below, but it don't work. What's wrong?
Code:
<?php if (($s5_login  != "") || ($s5_register  != "")) { ?>
<div id="s5_loginreg">
<div id="s5_logregtm">
<?php if ($s5_register  != "") { ?>
<?php if ($s5_user_id) { } else {?>
<div id="s5_register" class="s5box_register">
<?php echo $s5_register;?>
</div>
<?php ?>
<?php ?>
<?php if ($s5_login  != "") { ?>
                           <div id="s5_login" class="s5box_login <?php if ($s5_user_id) { echo ion-log-out; } else { echo ion-log-in; } ?>">
<?php if ($s5_user_id) { echo $s5_loginout; } else { echo $s5_login; } ?>
</div>
<?php ?>
</div>
</div>
<?php ?>
Niels - DK
« Last Edit: April 25, 2015, 06:49:04 PM by KlintWeb »
Logged

Offline KlintWeb
Free Member
Posts: 253
Posted on: April 25, 2015, 06:51:52 PM

I want to add icons to login / Logout
I've tryed with class="s5box_login <?php if ($s5_user_id) { echo ion-log-out; } else { echo ion-log-in; } ?>" in index.php - see the code below, but it don't work. What's wrong?
Code:
<?php if (($s5_login  != "") || ($s5_register  != "")) { ?>
<div id="s5_loginreg">
<div id="s5_logregtm">
<?php if ($s5_register  != "") { ?>
<?php if ($s5_user_id) { } else {?>
<div id="s5_register" class="s5box_register">
<?php echo $s5_register;?>
</div>
<?php ?>
<?php ?>
<?php if ($s5_login  != "") { ?>
                          <div id="s5_login" class="s5box_login <?php if ($s5_user_id) { echo ion-log-out; } else { echo ion-log-in; } ?>">
<?php if ($s5_user_id) { echo $s5_loginout; } else { echo $s5_login; } ?>
</div>
<?php ?>
</div>
</div>
<?php ?>
Niels - DK

I forgot the '
I've corrected it to:
Code:
class="s5box_login <?php if ($s5_user_id) { echo 'ion-log-out'; } else { 'echo ion-log-in'; } ?>
Now it works perfect
Logged

Offline mikenicoll
Free Member
Posts: 20162 WWW
Posted on: April 27, 2015, 05:59:23 PM

Awesome,

Glad you got it sorted out.
Logged
[1]

Jump to:  


Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Page created in 0.021 seconds with 22 queries.
Need some help getting your site up and running? Be sure to check out our tutorials area, post on the forum or hire us
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.