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  
 
   
Seperate index page for guests and members ?

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


Joined: 21 Oct 2006
Posts: 81

Seperate index page for guests and members ?Posted: Fri Nov 03, 2006 10:34 am    Post subject: Seperate index page for guests and members ?

Is it possible to have one index page for guests and another index page for members ?
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

Seperate index page for guests and members ?Posted: Fri Nov 03, 2006 10:57 am    Post subject: Re: Seperate index page for guests and members ?

Very possible, you can show a different web site to guest if you like, and it's not cloaking as long as it's done for all guests, not only bots.

You could for example show a lighter template to guests, things like that.

The principle will be to use :

Code:
if ( $userdata['session_logged_in'] ) {

// Here you work for logged users ..

}


Or :

Code:
if ( !$userdata['session_logged_in'] ) {

// Here you work for guest users ..

}


In the phpBB's php code. You may have to declare $userdata as Global inside functions.

And :

Code:
<!-- BEGIN switch_user_logged_in -->

<!-- here the html for logged users only in the templates-->

<!-- END switch_user_logged_in -->


Or :
Code:

<!-- BEGIN switch_user_logged_out -->

<!-- here the html for guest users only in the templates-->

<!-- END switch_user_logged_out -->


In the templates files.

With this you can accurately chose to show what you want to guest and logged users among phpBB pages Very Happy
But do not implement to many switches as it could become a server load issue.
If you want to show major difference in output, you should try to use the less switches as possible, using them for larger part of code, even repeated a bit with the opposite case.

As always, the simpler the better Wink

++

_________________
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
euroman
PR0
PR0


Joined: 21 Oct 2006
Posts: 81

Seperate index page for guests and members ?Posted: Fri Nov 03, 2006 11:08 am    Post subject: Re: Seperate index page for guests and members ?

Great Very Happy Exactly what I was looking for !
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

Seperate index page for guests and members ?Posted: Fri Nov 03, 2006 11:09 am    Post subject: Re: Seperate index page for guests and members ?

Way to go Very Happy

_________________
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: