By John Leake on Saturday, 22 August 2015
Posted in Technical Issues
Replies 4
Likes 0
Views 746
Votes 0
Badge listing view
1. How can I change the order of the badges to display by extension name, then by id?
2. How can change the number of badges per page so that there are not two blank spots on the bottom of each page? Something like 18 per page so it is evened out.

Your Achievements view
2. How can I change the order of the badges to display by extension name, then by award date?
3. How can I change the date format (ex. July 29, 2014)?

Profile page badge images
4. How can I change the order of the badge images to display by extension name, then by id?

btw, I am using wireframe theme.

I have hopes EasySocial will one day have achievement categories so users can view badges by categories. The main reason is because I have different awards for different categories of site activities. Another reason is I have some larger badges and some smaller and it can get and look messy...having better ordering options would help organize the presentation.
hey John,

I am really sorry for the delay of this reply as it is a weekend for us here.

Perhaps you can provide us with your Joomla backend and FTP access so we can better have a look as you described at above? (provide us one of the user profile URL and some screenshot how the ordering you expected)

3. How can I change the date format (ex. July 29, 2014)?

The achievement date format is located on this language file -> JoomlaFolder\language\en-GB\en-GB.ini
DATE_FORMAT_LC1="l, d F Y"
·
Saturday, 22 August 2015 13:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

I was able to change the date format in the user achievements view, thank you.

For other items, I added my site details so you can take a look and compare with how they should display in the images provided.

Badge listing view (See link provided in details)
1. I would like the badges to be grouped by what extension the badge is assigned to (ex. extension 1, then by extension 2, then by extension 3)
...then, within each extension, ordered by badge id.

Your Achievements view
3. http://screencast.com/t/bGeXniErBwse

Profile page badge images
4. http://screencast.com/t/T3I6mWaU
·
Sunday, 23 August 2015 06:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Any way to change the order of appearing badges as described?
·
Tuesday, 25 August 2015 04:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey John,

I am really sorry that delay of this reply,

I've checked you provided that screenshot, unfortunately that was not possible to group by each extension achievement badge show in user profile and achievement list page at this point of time.

However,I checked the code by default it show the latest achievement badge at first (based on achieved date), check my screenshot below.

If you would like to order by badge id, you can modify on this file -> JoomlaFolder\administrator\components\com_easysocial\models\badges.php


// LINE 535 add 1 more line of code
$sql->order('b.badge_id', 'asc');

// if you would like to sort by achieved date, you can add this line of code
$sql->order('achieved_date', 'asc');



Hope this help.
·
Tuesday, 25 August 2015 15:36
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post