test
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • jhendric1000 Friend
    #149025

    I’m using this template for JomSocial but I notice there’s no logout link for JomSocial. There’s another thread on here that says something like “you have to go to the home page to get the logout link”. The only problem is that JomSocial *is* my home page.

    So, how do I put in the JomSocial logout link into ja_sulfer (as is standard on the default JomSocial templates)?

    jhendric1000 Friend
    #333893

    I figured it out on my own. If anyone wants another tab on the JomSocial toolbar with a Logout link, here’s the code you add to ../components/com_community/templates/ja_sulfer/toolbar.index.php at approximately line 139 (sorry about the formatting):


    <?php if( $config->get('displayhome') ) {
    if(isset($customToolbar) && !empty($customToolbar)){
    if($customToolbar->hasToolBarGroup(TOOLBAR_HOME)){
    $homeItem = $customToolbar->getToolbarItems(TOOLBAR_HOME);
    ?>
    <li id="toolbar-item-frontpage" class="<?php echo $toolbarClass['frontpage']; ?> toolbar-item">
    <form action="index.php" method="post" name="communitylogout" id="communitylogout">
    <a href="javascript:void(0);" onclick="document.communitylogout.submit();"><?php echo JText::_('CC LOGOUT');?></a>
    <input type="hidden" name="option" value="com_user" />
    <input type="hidden" name="task" value="logout" />
    <input type="hidden" name="return" value="<?php echo $logoutLink; ?>" />
    </form>
    </li>
    <?php
    }
    }
    }
    ?>

    bokigto Friend
    #335990

    Nice, I was looking for it.

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  bokigto 14 years, 9 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum