[solved]New Members Module mod_gk_js_members

Feel free to talk about everything related to our Joomla Products
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Wed Dec 02, 2009 12:33 pm
Hi,

Thank you for the wonderful products. They are great.

I would like to change the default display from Newwest Meners to Active

OR

I would liek to only display the newest member with a profile picture. I would really like this option above the first one.

Can you help me? I can't stand the no picture profiles on the main page as the first thing someone sees...

Thank you!
User avatar
Fresh Boarder

GK User
Fri Dec 04, 2009 11:51 am
Please try change order of structure in default.php file in module tmpl/ directory.
User avatar
Administrator

GK User
Sat Dec 05, 2009 10:49 pm
Attached are the files I modified to show Active, Newest adn then Popular. Thank you and enjoy!

Lines 54-57 in helper.php need arranging to meet need &
Find //
// newest members
//
Where the beginning code and end code for each array is generated then just move top or bottom depending where you want what to show.

AND

Change lines 165-167 to specified order

AND

default.php 122-125 to specified order.

Youc an download mine and just upoad and overwrite to get you Active, newest and popular.
User avatar
Fresh Boarder

GK User
Tue Sep 07, 2010 9:32 pm
This works great, but it doesn't seem to change the order text of the tabs. Any idea how to change that too?

Mine right now content wise is displaying Popular, Active, Newest. But the tabs still say Newest, Active, Popular.
User avatar
Fresh Boarder

GK User
Tue Sep 07, 2010 10:09 pm
@ericdmartin

Thank you for sharing this change. It needs also changes on /tmpl/default.php file.

So from start, follow this instructions:

Open ../modules/mod_gk_js_members/tmpl/default.php

and find this fragment


Code: Select all
<div class="gk_js_tabs_wrap">
         <div class="gk_js_tab"><span><?php echo JText::_('NEWEST'); ?></span></div>
         <div class="gk_js_tab"><span><?php echo JText::_('ACTIVE'); ?></span></div>
         <div class="gk_js_tab"><span><?php echo JText::_('POPULAR'); ?></span></div>
      </div>


change to this:

Code: Select all
<div class="gk_js_tabs_wrap">
         <div class="gk_js_tab"><span><?php echo JText::_('POPULAR'); ?></span></div>
         <div class="gk_js_tab"><span><?php echo JText::_('NEWEST'); ?></span></div>
         <div class="gk_js_tab"><span><?php echo JText::_('ACTIVE'); ?></span></div>
      </div>


This will change to order of tabs text.

Now to change the respective order of tab content, open this file ../modules/mod_gk_js_members/helper.php

and find this fragment:

Code: Select all
// content array
      $this->content = array(
         'newest' => '',
         'active' => '',
         'popular' => ''
      );


change to

Code: Select all
      // content array
      $this->content = array(
         'popular' => '',
         'active' => '',
         'newest' => ''
      );


Cheers
User avatar
Platinum Boarder

GK User
Tue Sep 07, 2010 10:38 pm
Hrmmm, that's what I thought too, and did, but still, the tab's text order isn't changing. The content is changing though. I thought it might be a caching thing so I emptied, still shows in the original order though. You can see the buildsite below.

http://www.djmedley.com/beta/

username: paris
password: lohan
User avatar
Fresh Boarder

GK User
Tue Sep 07, 2010 11:24 pm
Oh sorry. my explanation was about Quay template.
For PartyFreak template, since we use /tmpl/ files from the module, you need to change on this file:

../templates/gk_party_freak/html/mod_gk_js_members/default.php

so change this fragment:

Code: Select all
<div class="gk_js_tabs_wrap">
         <div class="gk_js_tab"><span><?php echo JText::_('NEWEST'); ?></span></div>
         <div class="gk_js_tab"><span><?php echo JText::_('ACTIVE'); ?></span></div>
         <div class="gk_js_tab"><span><?php echo JText::_('POPULAR'); ?></span></div>
      </div>


to

Code: Select all
<div class="gk_js_tabs_wrap">
         <div class="gk_js_tab"><span><?php echo JText::_('POPULAR'); ?></span></div>
         <div class="gk_js_tab"><span><?php echo JText::_('NEWEST'); ?></span></div>
         <div class="gk_js_tab"><span><?php echo JText::_('ACTIVE'); ?></span></div>
      </div>


Cheers ;)
User avatar
Platinum Boarder

GK User
Wed Sep 08, 2010 1:21 am
That did it! Thank you!
User avatar
Fresh Boarder

GK User
Thu Sep 09, 2010 10:10 am
Just one more question while I have your attention. How can I change the position of the activity stream in a users profile to be below the wall and other plugins?
User avatar
Fresh Boarder

GK User
Thu Sep 09, 2010 10:18 pm
I figured it out

componentscom_communitytemplatesdefaultprofile.index.php

Locate this:

Code: Select all
<?php echo $content; ?>



Move it up to just before:

Code: Select all
<div id="activity-stream-nav" class="filterlink">
<div style="float: right;">
<a class="p-active-profile-and-friends-activity active-state" href="javascript:void(0);"><?php echo JText::sprintf('CC PROFILE OWNER AND FRIENDS' , $profileOwnerName );?></a>
<a class="p-active-profile-activity" href="javascript:void(0);"><?php echo $profileOwnerName ?></a>
</div>
<div class="loading"></div>
</div>

<div style="position: relative;">
<div id="activity-stream-container">
<?php echo $newsfeed; ?>
</div>
</div>
User avatar
Fresh Boarder

GK User
Thu Oct 28, 2010 12:23 am
Is there a way to add a tab to this module that would show the users with the most friends?
User avatar
Fresh Boarder

GK User
Wed Nov 03, 2010 7:19 am
Maybe this is something I could pay you to develop? Would really love to show most friends in a tab on this module. Let me know if you're interested.
User avatar
Fresh Boarder


cron