| :: |
| Author |
Message |
loginn
Joined: 06 May 2007 Posts: 5
|
Posted: Mon May 07, 2007 12:17 am Post subject: header.. switch switch user_logged_in |
|
|
I've see that switch to verify the login status doesn't work in my header
Do u know why??
Here the code
| Code: | <!-- BEGIN switch_user_logged_in -->
<span class="mainmenu"><a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/aallixSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a> <a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/aallixSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a> <a href="{U_PROFILE}" class="mainmenu"><img src="templates/aallixSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a> <a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/aallixSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a>
<!-- END switch_user_logged_in -->
<a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/aallixSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a></span>
<!-- BEGIN switch_user_logged_out -->
<span class="mainmenu">
<a href="{U_REGISTER}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_register.gif" width="12" height="13" border="0" alt="{L_REGISTER}" hspace="3" />{L_REGISTER}</a> </span>
<!-- END switch_user_logged_out -->
|
how to resolve?
Thanks.. |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
Posted: Mon May 07, 2007 11:00 am Post subject: Re: header.. switch switch user_logged_in |
|
|
And welcome
Are both the switches not working ?
Could come from includes/page_header.php, make sure you have :
| Code: | //
// Login box?
//
if ( !$userdata['session_logged_in'] )
{
$template->assign_block_vars('switch_user_logged_out', array());
//
// Allow autologin?
//
if (!isset($board_config['allow_autologin']) || $board_config['allow_autologin'] )
{
$template->assign_block_vars('switch_allow_autologin', array());
$template->assign_block_vars('switch_user_logged_out.switch_allow_autologin', array());
}
}
else
{
$template->assign_block_vars('switch_user_logged_in', array());
if ( !empty($userdata['user_popup_pm']) )
{
$template->assign_block_vars('switch_enable_pm_popup', array());
}
} |
In it.
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
loginn
Joined: 06 May 2007 Posts: 5
|
Posted: Mon May 07, 2007 4:23 pm Post subject: Re: header.. switch switch user_logged_in |
|
|
Very thanks for welcome. I'm happy here.
I've the same code in the page_header but switch <!-- BEGIN switch_user_logged_in --> do not work.
I want hide Profile Groups Members Private Message Link in the header, when i start and navigate Phpbb without login and show this links after Login..
But doesn't work with this switch.  |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
loginn
Joined: 06 May 2007 Posts: 5
|
Posted: Tue May 08, 2007 10:38 am Post subject: Re: header.. switch switch user_logged_in |
|
|
| and how i can resolve?? |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
loginn
Joined: 06 May 2007 Posts: 5
|
Posted: Wed May 09, 2007 1:02 pm Post subject: Re: header.. switch switch user_logged_in |
|
|
thanks. i think that i use PhpBB default edition without XS mod, but i'm not sure. How i can verify if i ve xs mode?
cache and auto regeneration are options that i can set in configuration panel?
thanks a lot |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
loginn
Joined: 06 May 2007 Posts: 5
|
Posted: Thu May 10, 2007 9:20 am Post subject: Re: header.. switch switch user_logged_in |
|
|
i haven't.  |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
Posted: Thu May 10, 2007 10:27 am Post subject: Re: header.. switch switch user_logged_in |
|
|
So this is not what causes the problem you're facing.
And unfortunately, I have to admit I've no other clues about what could fail here.
You can thus try two things : 1) ask support on phpBB.com, some one could have had the same issue
2) install a local test forum, with the same php files as you online one. You'll be able to go further into testing and debugging. The idea would be to compare your files (page_header.php, overal_header.tpl and why not template.php) with vanilla ones.
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
|
|