show any kind of content in a page only to logged visitors
show any kind of content in a page only to logged visitors
I wonder if is possible to show content in a page only to logged visitor
I mean a tag like
[iflogged] any kind of content [/iflogged]
I have searched for this with no results at all
Any help is much appreciated
Thanks in advanc Larissa
I mean a tag like
[iflogged] any kind of content [/iflogged]
I have searched for this with no results at all
Any help is much appreciated
Thanks in advanc Larissa
KH_frontend_user
Hi,
at this moment we only can switch a category and his children for a frontend user to on/off.
Please place the CP frontend login into a non hidden area.
Knut
[German Frontend Login: http://www.phpwcms.de/forum/viewtopic.php?p=94549#94549]
at this moment we only can switch a category and his children for a frontend user to on/off.
Code: Select all
1. conf.inc.php:
------------------------------
$phpwcms['SESSION_FEinit'] = 1; // set 1 to enable sessions in frontend, 0 to disable sessions in frontend
Code: Select all
2. user administration:
------------------------------
login section: [x] frontend [ ] backend [ ] frontend and backend
set user active: [x] if set the user can login
user is admin: [ ] if set the user gets admin rights !!!
verification: [/] send an email to new user with the account information
Code: Select all
3. site structure (child of):
------------------------------
frontend menu status:
[ ] hide [ ] visible when active [x] visible for users logged on only
status:
[x] visible [x] public [ ] SSL [/] sitemap
Knut
[German Frontend Login: http://www.phpwcms.de/forum/viewtopic.php?p=94549#94549]
Last edited by flip-flop on Thu 8. Nov 2007, 15:52, edited 1 time in total.
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
show any kind of content in a page only to logged visitors
Thanks Knut your suggestions is what I am using at the moment but I found it a bit poor as solution:
My idea is the following :
in any page not logged user see only what not logged users are alllowed to see then in the same page when user is logged can see links or any kind of stuff that not logged can not see does it makes sense ?
In this I can add a any thing I want in a page i.e. 4images gallery allows to do it
it would be a big feature any chance t have it as an HAck
Many thanks Larissa
My idea is the following :
in any page not logged user see only what not logged users are alllowed to see then in the same page when user is logged can see links or any kind of stuff that not logged can not see does it makes sense ?
In this I can add a any thing I want in a page i.e. 4images gallery allows to do it
it would be a big feature any chance t have it as an HAck
Many thanks Larissa
At this moment we have no chance to do so. (There is no hack for solving your problem).
O:G. is writing an enhanced user management. We don´t know what feature he will insert.
Knut
O:G. is writing an enhanced user management. We don´t know what feature he will insert.
Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
show any kind of content in a page only to logged visitors
knut ,
shall I ask directly to O:G. ? what do you suggest
Many Thanks
Larissa
shall I ask directly to O:G. ? what do you suggest
Many Thanks
Larissa
Yes, yes, do it. Have a call to him via eMail or Skype.
Knut
Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
show any kind of content in a page only to logged visitors
Knut,
may be you can contact O. G. on my behalf,
You know him much better then me, moreover
I think this is a quite important issue and not too difficult to be implemented.
let me know
many thanks
LArissa
may be you can contact O. G. on my behalf,
You know him much better then me, moreover
I think this is a quite important issue and not too difficult to be implemented.
let me know
many thanks
LArissa
- Oliver Georgi
- Site Admin
- Posts: 9892
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
OK, here is the solution:
Open include/inc_front/content.func.inc.php and
place the following code snippet at the end but before the closing ?>
If you are not sure how to handle this you can also place a new file login_status_render.php inside
template/inc_script/frontend_render with following content:
But use only one of my suggestions - the first solution is now part of phpwcms.
Oliver
Open include/inc_front/content.func.inc.php and
place the following code snippet at the end but before the closing ?>
Code: Select all
// now clean up special sections in case user is logged in OR not
if(strpos($content['all'], '--LOGGED_')) {
if( _getFeUserLoginStatus() ) {
// if user IS logged in
$content['all'] = str_replace(array('<!--LOGGED_IN_START//-->', '<!--LOGGED_IN_END//-->'), '', $content['all']);
$content['all'] = replace_tmpl_section('LOGGED_OUT', $content['all']);
} else {
// user is NOT logged
$content['all'] = str_replace(array('<!--LOGGED_OUT_START//-->', '<!--LOGGED_OUT_END//-->'), '', $content['all']);
$content['all'] = replace_tmpl_section('LOGGED_IN', $content['all']);
}
}
template/inc_script/frontend_render with following content:
Code: Select all
<?php
// now clean up special sections in case user is logged in OR not
if(strpos($content['all'], '--LOGGED_')) {
if( _getFeUserLoginStatus() ) {
// if user IS logged in
$content['all'] = str_replace(array('<!--LOGGED_IN_START//-->', '<!--LOGGED_IN_END//-->'), '', $content['all']);
$content['all'] = replace_tmpl_section('LOGGED_OUT', $content['all']);
} else {
// user is NOT logged
$content['all'] = str_replace(array('<!--LOGGED_OUT_START//-->', '<!--LOGGED_OUT_END//-->'), '', $content['all']);
$content['all'] = replace_tmpl_section('LOGGED_IN', $content['all']);
}
}
?>
Oliver
show any kind of content in a page only to logged visitors
Oliveeerrrrrrrrrrr you are a magiciaaannnnnnnnnn first solution works as smoothly as silk
SMACK SMACK
Lari
SMACK SMACK
Lari
- heliotrope
- Posts: 33
- Joined: Fri 14. Sep 2007, 15:21
- heliotrope
- Posts: 33
- Joined: Fri 14. Sep 2007, 15:21
Re: show any kind of content in a page only to logged visitors
Yesterday I started using
<!--LOGGED_IN_START//-->heyhey<!--LOGGED_IN_END//-->
and
<!--LOGGED_OUT_START//-->oh-oh!<!--LOGGED_OUT_END//-->
in an extended way and must tell that this is really very
<!--LOGGED_IN_START//-->heyhey<!--LOGGED_IN_END//-->
and
<!--LOGGED_OUT_START//-->oh-oh!<!--LOGGED_OUT_END//-->
in an extended way and must tell that this is really very
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
Re: show any kind of content in a page only to logged visitors
Hi Claus...
you are able to use the switch inside the ContentParts to do the same thing "articlewide".
Your solution is for the templates.... to do it "sitewide".
you are able to use the switch inside the ContentParts to do the same thing "articlewide".
Your solution is for the templates.... to do it "sitewide".