inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Jan 17, 2018 9:41:18 GMT -8
Forum URL: guitarnuts2.proboards.com/I apologize in advance if my question is in the wrong category/board. I've been working closely with the Admins on guitarnuts2. We're interested in using the like system to identify helpful users and also those who are readily giving approvals. I haven't seen anything in the Admin Control Panel. Perhaps there's a plugin?
|
|
#e61919
Support Staff
224482
0
1
Nov 22, 2024 17:59:24 GMT -8
Scott
“Asking for help isn't giving up... it's refusing to give up.”
24,527
August 2015
socalso
|
Post by Scott on Jan 17, 2018 9:56:57 GMT -8
Yes likes are tallied. The code to display likes would need to be added to the appropriate layout template(s). I can give you the code/instructions if I know where you want the likes to display.
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Jan 17, 2018 10:05:23 GMT -8
Thank you for the speedy reply!
Right now we've been discussing the possibility of have a "leaderboard" viewable by staff. Perhaps a likes given / likes received field in member miniprofiles for their personal tallies.
|
|
#e61919
Support Staff
224482
0
1
Nov 22, 2024 17:59:24 GMT -8
Scott
“Asking for help isn't giving up... it's refusing to give up.”
24,527
August 2015
socalso
|
Post by Scott on Jan 17, 2018 10:28:04 GMT -8
Retread , The only available variable is to show likes received. Generally this is done by showing in the member's profile summary page or in their mini-profile (the same as post counts). If you want however, I can give you the code so that you (or staff, or just all members) can see the number of likes in the members list similar to below, the only caveat is that you won't be able to sort by likes. If you want to do something like that then a plugin would mostly likely do this.
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Jan 17, 2018 10:53:28 GMT -8
Thanks Scott!
Having the option of showing likes received in the miniprofile would be awesome. I don't think likes given would be necessary there or desirable. Instructions and code would be greatly appreciated.
The option to show likes on the member list would be good too. Would the code have a switch on the Admin Control Panel that determines if they're viewed by Everyone / Members and Staff / Staff or would it be necessary for us to tell you which level can view that column, before you write the code?
EDIT: I just remembered, the member list can't be viewed unless logged in. Nevermind the Everyone part.
|
|
#e61919
Support Staff
224482
0
1
Nov 22, 2024 17:59:24 GMT -8
Scott
“Asking for help isn't giving up... it's refusing to give up.”
24,527
August 2015
socalso
|
Post by Scott on Jan 17, 2018 10:58:29 GMT -8
Thanks Scott! Having the option of showing likes received in the miniprofile would be awesome. Cool Not possible, so no problem. I'll make a separate post in this thread for how to add to the mini-profile It would not have a switch, so know what level of visibility ahead would be needed.
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Jan 17, 2018 11:11:21 GMT -8
I'll make a command decision for our team and say Members and Staff.
How difficult would it be to write a plugin that could sort the Member List by likes when that column is clicked?
|
|
#e61919
Support Staff
224482
0
1
Nov 22, 2024 17:59:24 GMT -8
Scott
“Asking for help isn't giving up... it's refusing to give up.”
24,527
August 2015
socalso
|
Post by Scott on Jan 17, 2018 11:11:34 GMT -8
To add likes to the Mini Profile:
1. Go to Admin > Structure > Layout Templates 2. Click on the Mini-Profile layout template 3. Look for this line of code (should be around line 24):
Posts: $[user.posts]{if $[user.gender]}<span class="float-right">$[user.gender.image]</span>{/if} 4. Add a new blank line AFTER the above and paste in this code:
<br />Likes: $[user.likes] 5. Click the Save Changes button.
You're then good to go!
|
|
#e61919
Support Staff
224482
0
1
Nov 22, 2024 17:59:24 GMT -8
Scott
“Asking for help isn't giving up... it's refusing to give up.”
24,527
August 2015
socalso
|
Post by Scott on Jan 17, 2018 11:15:28 GMT -8
I'll make a command decision for our team and say Members and Staff. How difficult would it be to write a plugin that could sort the Member List by likes when that column is clicked? Have no idea as I don't write plugins. Where do you want the likes column in the members list? (Like between which other columns?)
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Jan 17, 2018 11:20:39 GMT -8
Likes in the farthest right column would be good.
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Jan 17, 2018 11:29:53 GMT -8
Done and success.
|
|
#e61919
Support Staff
224482
0
1
Nov 22, 2024 17:59:24 GMT -8
Scott
“Asking for help isn't giving up... it's refusing to give up.”
24,527
August 2015
socalso
|
Post by Scott on Jan 17, 2018 11:32:25 GMT -8
|
|
#e61919
Support Staff
224482
0
1
Nov 22, 2024 17:59:24 GMT -8
Scott
“Asking for help isn't giving up... it's refusing to give up.”
24,527
August 2015
socalso
|
Post by Scott on Jan 17, 2018 11:34:42 GMT -8
Likes in the farthest right column would be good. And far right meaning, after the "Last Online"? FYI, between Posts and Date Registered might be worth considering for aesthetics as well as ease of comparing number of posts made to likes received. Just something to think about....
|
|
#e61919
Support Staff
224482
0
1
Nov 22, 2024 17:59:24 GMT -8
Scott
“Asking for help isn't giving up... it's refusing to give up.”
24,527
August 2015
socalso
|
Post by Scott on Jan 17, 2018 12:24:43 GMT -8
Retread 1. Go to Admin > Structure > Layout Templates 2. Click on the Members layout template 3. Around line 22 you will see this: <th class="posts $[sortable_class.posts]">Posts</th> <th class="date-registered $[sortable_class.registered_on]">Date Registered</th> 4. Add a new line BETWEEN the two and paste in this: <th class="posts">Likes</th> 5. Save Changes. 6. Then click on the Member List tab. 7. Same as above, around line 7 you should see this: <td class="posts">$[user.posts]</td> <td class="date-registered">$[user.registered_on]</td> 8. Add a new line BETWEEN the two and paste in this: <td class="posts">$[user.likes]</td> 9. Save Changes. Since the member list is only visible to members and staff that are logged in, there's no additional code needed to prevent guests from viewing. If you want the 'Likes' column in a different position, you can change where you add the new line of code. Just make sure you use the same position on both the Members and Member List layout templates.
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Jan 17, 2018 13:49:25 GMT -8
Done and works fine. Thank you so very much. If you want the 'Likes' column in a different position, you can change where you add the new line of code. Just make sure you use the same position on both the Members and Member List layout templates. Don't know much about coding but I guess the first part in Members created an entry for a column named Likes. No reason to change that but I reckon it could be called anything. The second part in Member List puts the users tally(user.likes) in that column. Or something like that. Anyhoo. I guess we're done here. Only one thing left for me to do. . .
|
|