User variable in CMS

Issues related to the CMS tools of WYSIWYG Web Builder.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/cms_tools.html
A lot of information about the Content Manager System can be found in the help/manual. Please read this first before posting any questions! Also check out the demo template that is include with the software.

CMS trouble shooting / FAQ:
viewtopic.php?f=10&t=43245
User avatar
Hurtado
 
 
Posts: 661
Joined: Sun Nov 04, 2012 12:02 pm
Location: Valladolid
Contact:

User variable in CMS

Post by Hurtado » Sun May 31, 2015 11:04 am

Is posible use a new variable in CMS ($cms_user by example) for user ?

User avatar
Pablo
 
Posts: 16735
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: User variable in CMS

Post by Pablo » Sun May 31, 2015 5:34 pm

No, there is no $cms_user variable.

User avatar
Hurtado
 
 
Posts: 661
Joined: Sun Nov 04, 2012 12:02 pm
Location: Valladolid
Contact:

Re: User variable in CMS

Post by Hurtado » Fri Jun 12, 2015 10:52 pm

Is possible add in a future?

User avatar
Pablo
 
Posts: 16735
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: User variable in CMS

Post by Pablo » Sat Jun 13, 2015 6:41 am

What is the use of adding '$cms_user'?

User avatar
Hurtado
 
 
Posts: 661
Joined: Sun Nov 04, 2012 12:02 pm
Location: Valladolid
Contact:

Re: User variable in CMS

Post by Hurtado » Sat Jun 25, 2016 6:49 am

For example, show the user logged.
Only for use in Admin Site

User avatar
Pablo
 
Posts: 16735
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: User variable in CMS

Post by Pablo » Sat Jun 25, 2016 7:08 am

Can't you use the Login name object for that?
Or with PHP code: $_SESSION['username'];

User avatar
Hurtado
 
 
Posts: 661
Joined: Sun Nov 04, 2012 12:02 pm
Location: Valladolid
Contact:

Re: User variable in CMS

Post by Hurtado » Sun Jun 26, 2016 11:02 am

Login name Object?

User avatar
Pablo
 
Posts: 16735
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: User variable in CMS

Post by Pablo » Sun Jun 26, 2016 1:41 pm

You will find the 'Login Name' object in the toolbox, assuming that you use the login tools for user access.

User avatar
Hurtado
 
 
Posts: 661
Joined: Sun Nov 04, 2012 12:02 pm
Location: Valladolid
Contact:

Re: User variable in CMS

Post by Hurtado » Wed Jun 29, 2016 8:46 am

Use
I put a Login Name Opbject. Issues:

1.- If not logged in, show Text Before. Wrong
2.- If logged in, not show Use Name, show Text Before + Text Not Logged In

Image

User avatar
Pablo
 
Posts: 16735
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: User variable in CMS

Post by Pablo » Wed Jun 29, 2016 8:51 am

Did you login using the login tools?

User avatar
Hurtado
 
 
Posts: 661
Joined: Sun Nov 04, 2012 12:02 pm
Location: Valladolid
Contact:

Re: User variable in CMS

Post by Hurtado » Wed Jun 29, 2016 9:46 am

Is a CMS. Use the integrated CMS Login
I know is the only way to access the CMS admin panel

User avatar
Pablo
 
Posts: 16735
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: User variable in CMS

Post by Pablo » Wed Jun 29, 2016 9:54 am

In that case the username will be stored in

Code: Select all

$_SESSION['cms_user']

User avatar
Hurtado
 
 
Posts: 661
Joined: Sun Nov 04, 2012 12:02 pm
Location: Valladolid
Contact:

Re: User variable in CMS

Post by Hurtado » Wed Jun 29, 2016 11:41 am

How put?

User avatar
Pablo
 
Posts: 16735
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: User variable in CMS

Post by Pablo » Wed Jun 29, 2016 11:51 am

That depends on where you want it.

User avatar
Hurtado
 
 
Posts: 661
Joined: Sun Nov 04, 2012 12:02 pm
Location: Valladolid
Contact:

Re: User variable in CMS

Post by Hurtado » Wed Jun 29, 2016 11:52 am


Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests