GK JS Members

GK User
Wed May 18, 2011 2:42 pm
The module GK JS Members which is included in the Musicity template should have the ability to show username instead of the users real name. A lot of users doesn´t want me to show their names so I want the ability to show their usernames instead.
User avatar
Platinum Boarder

GK User
Wed Jun 01, 2011 8:22 pm
AGREED, I tried to make the changes necessary, but I'm no programmer.

PLEASE HELP GUYS!
User avatar
Expert Boarder

teitbite
Fri Jun 03, 2011 11:48 am
User avatar
Moderator

GK User
Fri Jun 03, 2011 12:15 pm
teitbite wrote:Hi

Please take a look at this thread: 125-joomla-15/47981-change-name-to-username-in-module.html#47981


Since we have Joomla 1.6 the pathways to the files doesn´t match how we have it. Could you maybe make a similar guide for this problem which works with Joomla 1.6?
User avatar
Platinum Boarder

teitbite
Fri Jun 03, 2011 5:32 pm
Hi

I've asked programmer for help in pointing right file and line.
User avatar
Moderator

GK User
Fri Jun 03, 2011 6:22 pm
Go to file /modules/mod_gk_js_members/tmpl/default.php

Find (it's around line 127)
Code: Select all
<div class="gk_js_member_name">
    <span><?php echo $member->name; ?></span>
</div>
<?php endif; ?>




And change to

Code: Select all
<div class="gk_js_member_name">
    <span><?php echo $member->username; ?></span>
</div>
<?php endif; ?>

User avatar
Expert Boarder

GK User
Fri Jun 03, 2011 8:01 pm
PascM wrote:Go to file /modules/mod_gk_js_members/tmpl/default.php

Find (it's around line 127)
Code: Select all
<div class="gk_js_member_name">
    <span><?php echo $member->name; ?></span>
</div>
<?php endif; ?>




And change to

Code: Select all
<div class="gk_js_member_name">
    <span><?php echo $member->username; ?></span>
</div>
<?php endif; ?>



Thanks, it works! But Gavick should make this avalible as an option from the back-end.
User avatar
Platinum Boarder

GK User
Fri Jun 03, 2011 8:10 pm
Also thanks, I was able to figure it out using the old thread, but that's more helpful.

I agree this needs to be an option on the backend. But it's solved for now, thanks.
User avatar
Expert Boarder

teitbite
Sun Jun 05, 2011 9:28 am
Hi

Now I see it not differs from the old one ;/ Sorry I counldn't tell that sooner. Do not have a JS for 1.6 to try it :(
User avatar
Moderator


cron