| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
euroman PR0

Joined: 21 Oct 2006 Posts: 81
|
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 |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
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
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
++ |
_________________ 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 |
|
 |
euroman PR0

Joined: 21 Oct 2006 Posts: 81
|
Posted: Fri Nov 03, 2006 11:08 am Post subject: Re: Seperate index page for guests and members ? |
|
|
Great Exactly what I was looking for ! |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
|
| Back to top |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |