Music Free - Joomla/Jomsocial profiles

Support help forum dedicated to free and commerical templates for Joomla 3 and 2.5 version.
GK User
Tue Jul 24, 2012 10:04 pm
Hi there,

I'm using the Music free template with jomsocial. I installed a plugin that redirects all registrations to Jomsocial. When a user is logged in and clicks on "Your Account" on the top right, a pop-up comes up and gives options to edit profile, view profile, etc.

I want these links to all go to the jomsocial profile instead of the default Joomla pages. Maybe someone could help me to figure out how to do this? Thanks! :D
User avatar
Fresh Boarder

GK User
Wed Jul 25, 2012 12:28 am
Please see following topic, although that was for different template procedure should be similar. Please read whole topic as there were many mods in there with different types.

https://www.gavick.com/forums/131/solve ... pup#p63338

See you around...
User avatar
Platinum Boarder

GK User
Wed Jul 25, 2012 1:31 am
Thanks for the quick reply!

Unfortunately the topic doesn't solve my problem. I need to get the "My Profile" link to go to my jomsocial profile. Someone else in the topic asked this question, but it seems as if the problem was resolved in private messages. Here is a link to my website: www.photographyunion.com

Cheers
User avatar
Fresh Boarder

GK User
Wed Jul 25, 2012 2:35 am
You can replace following code but this will stop popup on login button and your account buttons.

Find File: templates/gk_music_free/layouts/default.php
Find Lines: 61 to 71 which is below
Code: Select all
      <?php if($this->API->modules('login') || ($this->API->get('register_link', 1) && $userID == 0) ) : ?>
      <div id="gkUserLinks">
         <?php if($this->API->get('register_link', 1) && $userID == 0) : ?>
         <a id="btnRegister" href="<?php echo $this->API->URLbase(); ?>index.php?option=com_users&amp;view=registration"><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></a>
         <?php endif; ?>
         
         <?php if($this->API->modules('login')) : ?>
         <a href="<?php echo $this->API->URLbase(); ?>index.php?option=com_users&amp;view=login" id="btnLogin"><?php echo $btn_login_text; ?></a>
         <?php endif; ?>
      </div>
      <?php endif; ?>

Replace with below
Code: Select all
      <?php if($this->API->modules('login') || ($this->API->get('register_link', 1) && $userID == 0) ) : ?>
      <div id="gkUserLinks">
         <?php if($this->API->get('register_link', 1) && $userID == 0) : ?>
         <a href="<?php echo JRoute::_( 'index.php?option=com_community&amp;view=register' ); ?>" id="btnRegister"><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></a>
         <?php endif; ?>
         <?php if($this->API->modules('login')) : ?>
         <a href="<?php echo JRoute::_( 'index.php?option=com_community&amp;view=profile' ); ?>" id=""><?php echo $btn_login_text; ?></a>
         <?php endif; ?>
      </div>
      <?php endif; ?>


See you around...
User avatar
Platinum Boarder


cron