inherit
231969
0
Jan 14, 2019 7:53:08 GMT -8
forumcoder
71
May 2016
forumcoder
|
Post by forumcoder on May 15, 2016 6:02:22 GMT -8
Forum URL: patriotsfans.freeforums.netAfter putting in the plugins for dislikes, I see that under the avatar there is the count of both posts and dislikes. Is there also a way to have in the count of likes?
|
|
Former Member
inherit
guest@proboards.com
181302
0
Nov 23, 2024 20:32:42 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on May 15, 2016 6:16:01 GMT -8
forumcoder, you would be best to ask in the plugin's support topic, where that may already be explained how to do.
|
|
inherit
231969
0
Jan 14, 2019 7:53:08 GMT -8
forumcoder
71
May 2016
forumcoder
|
Post by forumcoder on May 15, 2016 6:35:59 GMT -8
forumcoder , you would be best to ask in the plugin's support topic, where that may already be explained how to do.
Ok, I'll repeat it there.
|
|
inherit
223590
0
May 17, 2023 9:13:21 GMT -8
Kitty Katt
My Username is @kittykatt (with 2 t's in katt)
821
July 2015
kittykatt
|
Post by Kitty Katt on May 15, 2016 7:02:21 GMT -8
Hello,
For displaying the count of Likes, you will need to add in your Profile and Mini Profile templates. The variable to use is: $[user.likes]
For Profile (Admin -> Themes -> Layout Templates -> User Profile -> Summary (tab). I have included the piece above it where it displays post counts. The part in green is what you want to add:
For Mini Profile (Admin -> Themes -> Layout Templates -> Mini-Profile). Again, I include the surrounding code, but have highlighted the part to add in green:
|
|
#eb7100
1480
0
1
Nov 21, 2024 14:52:33 GMT -8
Craig
209,196
September 2001
cmdynasty
|
Post by Craig on May 15, 2016 7:03:32 GMT -8
This is a variable you can add to the mini profile/profile via the templates system [ admin > themes > layout templates ].
If you open up your Mini Profile template, and look for the following line:
Posts: $[user.posts]{if $[user.gender]}<span class="float-right">$[user.gender.image]</span>{/if}
And add this below it:
<br /> Likes: $[user.likes]
If you want it added to the profile also, open up your user profile template. Select i]Summary[/i] from the tabs, and then look for the following lines:
<tr> <td class="headings">Posts:</td> <td>$[user.posts]</td> </tr>
and add this below it:
<tr> <td class="headings">Likes:</td> <td>$[user.likes]</td> </tr>
|
|
inherit
231969
0
Jan 14, 2019 7:53:08 GMT -8
forumcoder
71
May 2016
forumcoder
|
Post by forumcoder on May 15, 2016 7:26:07 GMT -8
Hello, For displaying the count of Likes, you will need to add in your Profile and Mini Profile templates. The variable to use is: $[user.likes] For Profile (Admin -> Themes -> Layout Templates -> User Profile -> Summary (tab). I have included the piece above it where it displays post counts. The part in green is what you want to add: For Mini Profile (Admin -> Themes -> Layout Templates -> Mini-Profile). Again, I include the surrounding code, but have highlighted the part to add in green: Thank you. That did it. I actually moved the line in my mini-profile to below the member is on line because the dislike count from the plugin goes there and I wanted them to be together.
|
|
ausprep
New Member
The Australian Preparedness Forum
Posts: 30
inherit
215066
0
Apr 3, 2017 1:55:35 GMT -8
ausprep
The Australian Preparedness Forum
30
October 2014
ausprep
|
Post by ausprep on May 16, 2016 0:07:24 GMT -8
Thanks for the great info here.
Ive tried adding it to my mini profiles but a pop up states it would exceed the 8mb theme limit to 10mb.
how would i work around this?
|
|
#eb7100
1480
0
1
Nov 21, 2024 14:52:33 GMT -8
Craig
209,196
September 2001
cmdynasty
|
Post by Craig on May 16, 2016 0:12:49 GMT -8
That's interesting. Could you copy the exact message you are getting please. Adding a bit of text shouldn't add 2mb to the theme.
|
|
ausprep
New Member
The Australian Preparedness Forum
Posts: 30
inherit
215066
0
Apr 3, 2017 1:55:35 GMT -8
ausprep
The Australian Preparedness Forum
30
October 2014
ausprep
|
Post by ausprep on May 16, 2016 0:18:32 GMT -8
Heres where ive added the line to:
{if $[user.is_member]} <div class="info"> Posts: $[user.posts]{if $[user.gender]}<span class="float-right">$[user.gender.image]</span>{/if} <br /> Likes: $[user.likes] {foreach $[user.mini_custom_field]} <br /><span class="$[user.mini_custom_field.content_class]">$[user.mini_custom_field.name]: $[user.mini_custom_field.value]</span> {/foreach} {if $[user.is_online]}<br /><span class="italic">Member is Online</span>{/if}
Heres the message:
Error: Action could not be completed. The action would put the theme size 8MB over the 10MB limit.
|
|
#eb7100
1480
0
1
Nov 21, 2024 14:52:33 GMT -8
Craig
209,196
September 2001
cmdynasty
|
Post by Craig on May 16, 2016 0:20:24 GMT -8
If you go into your theme manager, it should show how big the theme is.
admin > themes > theme manager
What does it so there? Also, if you go to edit the template, and save it without changing anything, does it produce the same error?
|
|
ausprep
New Member
The Australian Preparedness Forum
Posts: 30
inherit
215066
0
Apr 3, 2017 1:55:35 GMT -8
ausprep
The Australian Preparedness Forum
30
October 2014
ausprep
|
Post by ausprep on May 16, 2016 0:20:54 GMT -8
|
|
ausprep
New Member
The Australian Preparedness Forum
Posts: 30
inherit
215066
0
Apr 3, 2017 1:55:35 GMT -8
ausprep
The Australian Preparedness Forum
30
October 2014
ausprep
|
Post by ausprep on May 16, 2016 0:21:59 GMT -8
Themes Total Themes: 3 Max Per Image: 1 MB Max Images Per Theme: 500 Increase Storage 19 /50 MB
Create, import and manage themes for modifying your forum's appearance. Click the checkbox to the left of a theme to enable/disable it.
Create New/Import Theme
Theme Size Images Permissions Backup_Original 180.09 KB 41 Default Default 18.73 MB 55 Eerie Woods 850.55 KB 80
|
|
#eb7100
1480
0
1
Nov 21, 2024 14:52:33 GMT -8
Craig
209,196
September 2001
cmdynasty
|
Post by Craig on May 16, 2016 0:30:42 GMT -8
Ok, so it looks like the theme is already 8mb more than it should be. Open up the image editor for that theme, and at the bottom, you should find a block of custom theme images. Review the images there and remove any images you no longer need/use.
After doing that, what does the file size now read?
|
|
ausprep
New Member
The Australian Preparedness Forum
Posts: 30
inherit
215066
0
Apr 3, 2017 1:55:35 GMT -8
ausprep
The Australian Preparedness Forum
30
October 2014
ausprep
|
Post by ausprep on May 16, 2016 0:46:42 GMT -8
5.64MB now.
annnnnd it worked!
|
|
#eb7100
1480
0
1
Nov 21, 2024 14:52:33 GMT -8
Craig
209,196
September 2001
cmdynasty
|
Post by Craig on May 16, 2016 0:49:28 GMT -8
Great
|
|