Author Topic: How to do else to {if lang_loggedin_msg}  (Read 3576 times)

0 Members and 1 Guest are viewing this topic.

Offline Marcovich

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
    • High Definition Wallpapers
How to do else to {if lang_loggedin_msg}
« on: July 07, 2009, 10:22:27 PM »
Hey i have this code:
When im loged in i see just 1 table (like i want) but when i log out i see two tables.

how can i do "else" to this code?
   

            {if lang_loggedin_msg}

                  <table width="743" border="0" cellspacing="0" cellpadding="0" background="{template_url}/images/back.gif" height="203">
<tr>
<td>
                <h2 class="banner_title">Welcome to <span style="color:#FF3300">BackgroundsCity.net</span></h2>
                <div class="banner_feature">Read about free Online Screensaver, <a href="read.html"><font size=2>Read more..</font></a></div>
                <div class="banner_feature">Learn more about "Favorite box" System, <a href="read.html"><font size=2>Read more..</font></a></div>
                <div class="banner_feature">Huge High definition Wallpapers collection</div>
                <div class="banner_feature">Search at Backgroundscity easily, <a href="http://www.backgroundscity.net/search.htm"><font size=2>Search now</font></a></div>
</td>
<td valign="bottom" align="right">
<img src="{template_url}/images/newbottom.gif">
</td>
</tr>
</table>

                {endif lang_loggedin_msg}



                {ifnot lang_loggedin_msg}   

                  <table width="743" border="0" cellspacing="0" cellpadding="0" background="{template_url}/images/back.gif" height="203">
<tr>
<td>
                <h2 class="banner_title">Welcome to <span style="color:#FF3300">{site_name}</span></h2>
                <div class="banner_feature">Free Membership account, <a href="http://www.backgroundscity.net/register.php"><font size=2>Register now!</a></font></div>
                <div class="banner_feature">Free wallpapers in various resolutions</div>
                <div class="banner_feature">Free creation of online screensaver, <a href="read.html"><font size=2>Read more..</font></a></div>
</td>
<td valign="bottom" align="right">
<img src="{template_url}/images/newbottom.gif">
</td>
</tr>
</table>

{endifnot lang_loggedin_msg}

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: How to do else to {if lang_loggedin_msg}
« Reply #1 on: July 08, 2009, 03:05:18 AM »
Your template looks correct, it's your .php code is where the misstake is. If you see both tables, this means that {lang_loggedin_msg} is not defined (set) at all.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Marcovich

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
    • High Definition Wallpapers
Re: How to do else to {if lang_loggedin_msg}
« Reply #2 on: July 08, 2009, 05:23:27 AM »
Can you tell me how to fix it or where i can find the .php code?
Thanks.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: How to do else to {if lang_loggedin_msg}
« Reply #3 on: July 08, 2009, 07:28:27 AM »
Actually, nothing needs to be changed.
Use these tags instead:
Code: (template HTML) [Select]
{if user_loggedin}
text for logged in user
{endif user_loggedin}

{if user_loggedout}
text for guests
{endif user_loggedout}
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)