No way to set logout as text (not button)

No way to set logout as text (not button)

Topic describes it all.

серяко
Сергей
useravatar
Offline
4 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: No way to set logout as text (not button)

Thanks for the feedback. I've added it to our issue tracker as something to make into an option in a future release. For now, you'd have to edit the /modules/mod_sclogin/helper.php file's getLogoutButton() function and edit the code we echo there. If you need help doing so, let us know and we can help.

Thanks,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23656 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: No way to set logout as text (not button)

Thanks, any guidance would help. I tried to look in login.php as a reference for the code to be echoed, but I dont have enough skills.

серяко
Сергей
useravatar
Offline
4 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: No way to set logout as text (not button)

No problem. Just looked into and tested what it would need in the code. The following change looks like what you need. Please edit the /modules/mod_sclogin/helper.php file. Search for the getLogoutButton function and update it like so:

Code:

    function getLogoutButton($useSecure, $jLogoutUrl)

    {
        return '<a href="'.JRoute::_('index.php?option=com_users&'.JSession::getFormToken() .'=1&task=user.logout&return='.$jLogoutUrl, true, $useSecure) . '">'.JText::_('JLOGOUT').'</a>';
    }

The rest of the code in that function isn't necessary if you aren't using JFBConnect or don't want the 'button' version of the Logout button.

Please let us know how that goes, and thanks again for the feedback and suggestions.

Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23656 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: No way to set logout as text (not button)

Thanks! That workes fine. Just one minor flaw that was seen with the button as well: there`s no space between user name and the "Logout" in horizontal mode.

серяко
Сергей
useravatar
Offline
4 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: No way to set logout as text (not button)

Is that when you're using the new text button code? To fix that, we'd need to see the site as we'd need to understand the styles that are being applied by your template so that we can figure out the best way to add the space. If you can post, or Private Message, the URL, we'll gladly help further.

Glad we're making progress!

Thanks,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23656 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests also viewing this topic
There are 0 users also viewing this topic

Board Info

Board Stats
 
Total Topics:
11404
Total Polls:
0
Total Posts:
48067
Posts today:
4
User Info
 
Total Users:
47224
Newest User:
radfie
Members Online:
0
Guests Online:
656

Online: 
There are no members online
Social Stream
Refer and Earn

Like our extensions? You're not alone! That's why they're used on tens of thousands of websites. Now you can earn 20% of any sale you refer to SourceCoast.com.

We provide excellent documentation, well laid out sales pages and great support. All you need to do is spread the word and we'll take care of the rest.

Learn About Our Affiliate Program