phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
header.. switch switch user_logged_in

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB Forum
::  
Author Message
loginn



Joined: 06 May 2007
Posts: 5

header.. switch  switch user_logged_inPosted: 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>&nbsp; <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>&nbsp;<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>&nbsp; <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 -->


&nbsp;<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">
&nbsp;<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>&nbsp;</span>
<!-- END switch_user_logged_out -->


how to resolve?
Thanks..
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

header.. switch  switch user_logged_inPosted: Mon May 07, 2007 11:00 am    Post subject: Re: header.. switch switch user_logged_in

And welcome Very Happy

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
Visit poster's website
loginn



Joined: 06 May 2007
Posts: 5

header.. switch  switch user_logged_inPosted: Mon May 07, 2007 4:23 pm    Post subject: Re: header.. switch switch user_logged_in

Very thanks for welcome. I'm happy here. Smile

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. Sad
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

header.. switch  switch user_logged_inPosted: Tue May 08, 2007 9:45 am    Post subject: Re: header.. switch switch user_logged_in

Now this is strange.

It could be, if you are using XS mod, without cache auto update, a cache matter, like the cached templates not being updated or something.

Because it should work.

++

_________________
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
Visit poster's website
loginn



Joined: 06 May 2007
Posts: 5

header.. switch  switch user_logged_inPosted: 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
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

header.. switch  switch user_logged_inPosted: Wed May 09, 2007 7:53 am    Post subject: Re: header.. switch switch user_logged_in

You can start with answering to me, are you using XS mod ? with cache and auto regeneration ?

_________________
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
Visit poster's website
loginn



Joined: 06 May 2007
Posts: 5

header.. switch  switch user_logged_inPosted: 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
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

header.. switch  switch user_logged_inPosted: Thu May 10, 2007 8:37 am    Post subject: Re: header.. switch switch user_logged_in

Is there a folder named xs_mod/ in your phpBB folder ?

_________________
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
Visit poster's website
loginn



Joined: 06 May 2007
Posts: 5

header.. switch  switch user_logged_inPosted: Thu May 10, 2007 9:20 am    Post subject: Re: header.. switch switch user_logged_in

i haven't. Crying or Very sad
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

header.. switch  switch user_logged_inPosted: 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
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB Forum
Page 1 of 1

Navigation Similar Topics

Jump to: