Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2015-05-05 23:09:17

RobS
Member
Registered: 2013-09-01
Posts: 166

How add logout link to branded login page?

I've created a branded login page, but can't see how to add a logout link, like the one that's in the crg-default template.

Can someone let me know how to do this, please?

Thanks.

Offline

#2 2015-05-06 04:14:37

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: How add logout link to branded login page?

the only thing I can think of is to add the needed code following the Login text in Localisations under Client Accounts > TEXT_LOGIN
Since the text is pre-wrapped in H2 tags you'll need to make sure you've got the code in proper html. If you want the text to be smaller you can use some inline styling

You should be able to just copy the code from the page source code of a CRG page you're logged in to.

You'll end up with something like this for the TEXT_LOGIN localisation:

Login<p style="font-size: 14px;"><a class="logout" title="Logout" href="http://yoursite.com/ttg-be/crg/?a=logout"><i class="fa fa-fw fa-times-circle-o"></i>Logout</a></p>

This leaves the logout icon and also ads the text "Logout". If you don't want the logout icon, just remove this portion:

<i class="fa fa-fw fa-times-circle-o"></i>

Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#3 2015-05-06 07:07:12

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: How add logout link to branded login page?

Alternatively, the CRG script supports links with the classes submit-large and logout-large, intended for use within a page.  These won't be affected by the styling of the small logout and submit classes.

e.g.

<a href="#" class="logout-large">Click here to logout</a>

Offline

#4 2015-05-06 09:46:15

RobS
Member
Registered: 2013-09-01
Posts: 166

Re: How add logout link to branded login page?

Thanks Rod, Thanks Ben,

I added the TEXT_LOGIN localisation code, but when I go to

http://www.mysite.com/ttg-be/crg/

it already says Logout, even though you're not logged in. And when you log in, the login link disappears.

What to do?

I was just looking for the Logout link to appear on the summary page of gallery links that the client sees after logging in.

Last edited by RobS (2015-05-06 09:47:57)

Offline

#5 2015-05-06 10:09:16

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: How add logout link to branded login page?

Then just look for the "Albums Assigned to You" text in Localisations and add the logout code there.
the field is named: TEXT_ASSIGNED_ALBUMS


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#6 2015-05-06 11:50:23

RobS
Member
Registered: 2013-09-01
Posts: 166

Re: How add logout link to branded login page?

Thanks Rod. That works.

Offline

Board footer

Powered by FluxBB