Skip to content

Instantly share code, notes, and snippets.

@uzielweb
Last active August 11, 2016 18:07
Show Gist options
  • Save uzielweb/1397fae0ae5d1e8c075b1ca8f6a22501 to your computer and use it in GitHub Desktop.
Save uzielweb/1397fae0ae5d1e8c075b1ca8f6a22501 to your computer and use it in GitHub Desktop.
Change the default Logout button in JomSocial Toolbar in components/com_community/templates/jomsocial/layouts/toolbar/base.php line 441 With Joomsocial $logoutLink
<?php
//Change the default Logout button in JomSocial Toolbar in components/com_community/templates/jomsocial/layouts/toolbar/base.php line 441
//Delete the entire code bettween <a> and </a> in the lines 441 at 449
//Put the code bellow instead
?>
<form action="<?php echo JRoute::_('index.php', true); ?>" method="post" name="logoutForm">
<span style="cursor:pointer;" name="Submit" class="joms-js--logout" onclick="document.logoutForm.submit()">
<svg viewBox="0 0 16 16" class="joms-icon">
<use xlink:href="<?php echo CRoute::getURI(); ?>#joms-icon-switch"></use>
</svg>
</span>
<input type="hidden" name="option" value="com_users" />
<input type="hidden" name="task" value="user.logout" />
<input type="hidden" name="return" value="<?php echo $logoutLink; ?>" />
<?php echo JHtml::_('form.token'); ?>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment