inherit
201954
0
Jan 8, 2014 8:41:29 GMT -8
Garrett Silvers
'Someone kill the DJ' - Green Day
16
November 2013
lookitskyle
|
Post by Garrett Silvers on Dec 24, 2013 2:41:11 GMT -8
Hey!
I have been trying to find out how to add likes and posts count to mini-profile's on my forum, I've looked everywhere I've spent a good 3 hours searching. And so I go bored of searching and decided to ask for your help, so is there a code to add 'Likes' and 'Post' count to mini-profiles? Thanks!
Also whilst I'm at it, I need a code to display whether or not a member is online in the mini-profile?
|
|
inherit
201954
0
Jan 8, 2014 8:41:29 GMT -8
Garrett Silvers
'Someone kill the DJ' - Green Day
16
November 2013
lookitskyle
|
Post by Garrett Silvers on Dec 24, 2013 5:24:05 GMT -8
Bump^^
|
|
inherit
Jack of All Trades, Master of None
27090
0
May 30, 2013 20:36:34 GMT -8
Stinky666
8,818
July 2004
stinky666
|
Post by Stinky666 on Dec 24, 2013 6:34:02 GMT -8
Hey! I have been trying to find out how to add likes and posts count to mini-profile's on my forum, I've looked everywhere I've spent a good 3 hours searching. And so I go bored of searching and decided to ask for your help, so is there a code to add ' Likes' and ' Post' count to mini-profiles? Thanks! Also whilst I'm at it, I need a code to display whether or not a member is online in the mini-profile? Admin > Themes > Layout Templates > Mini-ProfileThis all depends now on where you want what, to display where and in what order. Posts above everything else? Below everything? You should see this somewhere in there: <div class="info">Place the following BELOW that but make sure it's ABOVE the following: </div> Which should be located a few lines after. {if $[user.likes]}<br />I've received <font style="color:#c9cf55; weight: bold;">$[user.likes] like{if $[user.likes] != 1}s{/if}</font>{/if} And then for Posts: I have made <font style="color:#14ada7; weight: bold;">$[user.posts]</font> post{if $[user.posts] != 1}s{/if} So for example do this: <div class="info">I have made <font style="color:#14ada7; weight: bold;">$[user.posts]</font> post{if $[user.posts] != 1}s{/if}{if $[user.likes]}<br />I've received <font style="color:#c9cf55; weight: bold;">$[user.likes] like{if $[user.likes] != 1}s{/if}</font>{/if}</div>
If you want them worded differently, or in a specific position, let me know and I will gladly help. However, if you do, could you copy ALL of the Mini Profile Layout Template, and paste it here for me, so then I can show you exactly where to put stuff. Tell me specifically where you want stuff too, such as Posts at the very top, just below the avatar, and then likes below everything else, etc.
Here's what I am using on one or two of my themes {if $[user.is_member]} <div class="info"> I have made <font style="color:#14ada7; weight: bold;">$[user.posts]</font> post{if $[user.posts] != 1}s{/if} {if $[user.is_online]}<br />Right now I'm <font style="color:#adc92f; weight: bold;">Online</font>{else}<br />Right now I'm <i>Offline</i>{/if} {if $[user.registered_on_short]}<br />I joined <font style="color:#55b8cf; weight: bold;">$[user.registered_on_short]</font>{/if} {if $[user.likes]}<br />I've received <font style="color:#c9cf55; weight: bold;">$[user.likes] like{if $[user.likes] != 1}s{/if}</font>{/if} {if $[user.gender]}<br />My gender is <font style="color:#9255cf; weight: bold;">$[user.gender.text]</font>{/if} {if $[user.birthday]}<br />I was born <font style="color:#cf559a; weight: bold;">$[user.birthday.month_short_name]$[user.birthday.year]</font>{/if} {if $[user.location]}<br />I live in <font style="color:#cf5558; weight: bold;">$[user.location]</font>{/if} {if $[user.mini_custom_field]}<br /><br /><hr>{foreach $[user.mini_custom_field]} <br /><span class="$[user.mini_custom_field.content_class];"><strong><font style="font-size: 105%;">$[user.mini_custom_field.name]</font></strong> <i>$[user.mini_custom_field.value]</i></span> {/foreach} </div><br /> {/if} Everything below the avatar displays in the mini profile like so: My recent status is this!!
I have made 7 posts Right now I'm Online I joined September 2013 I've received 1 like My gender is Male I was born Oct, 1987 I live in England, UK For me personally, I display the stuff in a specific way. I have put 'forum info' first, then 'about me' stuff after.
|
|
inherit
201954
0
Jan 8, 2014 8:41:29 GMT -8
Garrett Silvers
'Someone kill the DJ' - Green Day
16
November 2013
lookitskyle
|
Post by Garrett Silvers on Dec 24, 2013 6:41:12 GMT -8
Mini-Profile Template:
<div class="$[miniprofile_class]"> $[user]<br /> {if $[user.is_guest]}Guest<br />{/if} {if $[user.group]} $[user.group.name]<br />$[user.group.stars]<br /> {elseif $[user.rank]} $[user.rank.name]<br /> {if $[user.rank.stars]} $[user.rank.stars]<br /> {/if} {/if} {if $[user.custom_title]}$[user.custom_title]<br />{/if} $[user.warning.bar] <br /> {if $[user.avatar]} <div class="avatar">$[user.avatar]</div><br /> {/if} {if $[user.personal_text.message]} $[user.personal_text]<br /> {/if} {if $[user.is_member]} <div class="info"> Posts: $[user.posts]{if $[user.gender]}<span class="float-right">$[user.gender.image]</span>{/if} {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} </div><br /> { </div> <span class="post_act">Registered: $[user.registered_on]</span> <span class="post_act">Registered: $[user.registered_on]</span> <tr>
I wanted the 'user is online'/'user is offline' at the very bottom and the 'Posts' below the Avatar and below the 'Posts' the 'Likes'
I'm so confused. -_-
|
|
inherit
201954
0
Jan 8, 2014 8:41:29 GMT -8
Garrett Silvers
'Someone kill the DJ' - Green Day
16
November 2013
lookitskyle
|
Post by Garrett Silvers on Dec 24, 2013 6:48:03 GMT -8
Basically I want it to look like this:
Name Custom Title Rank/Group Stars(In my case ribbons) Avatar Status Posts Likes
|
|
inherit
Jack of All Trades, Master of None
27090
0
May 30, 2013 20:36:34 GMT -8
Stinky666
8,818
July 2004
stinky666
|
Post by Stinky666 on Dec 24, 2013 8:01:28 GMT -8
Basically I want it to look like this: Name Custom Title Rank/Group Stars(In my case ribbons) Avatar Status Posts Likes Ok well in that case, with your template add the BLUE part. See the bit below I have made RED? That's "Posts", so it should already have "Posts: 10" (example number). <div class="$[miniprofile_class]"> $[user]<br /> {if $[user.is_guest]}Guest<br />{/if} {if $[user.group]} $[user.group.name]<br />$[user.group.stars]<br /> {elseif $[user.rank]} $[user.rank.name]<br /> {if $[user.rank.stars]} $[user.rank.stars]<br /> {/if} {/if} {if $[user.custom_title]}$[user.custom_title]<br />{/if} $[user.warning.bar] <br /> {if $[user.avatar]} <div class="avatar">$[user.avatar]</div><br /> {/if} {if $[user.personal_text.message]} $[user.personal_text]<br /> {/if} {if $[user.is_member]} <div class="info"> Posts: $[user.posts]{if $[user.gender]}<span class="float-right">$[user.gender.image]</span>{/if} {if $[user.likes]}<br />Likes: $[user.likes]{/if}{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} </div><br /> {</div> <span class="post_act">Registered: $[user.registered_on]</span> <span class="post_act">Registered: $[user.registered_on]</span> <tr>
I'm not sure why that green bit is in there, because that's for CSS. Maybe I am wrong, but even if it can do something, it doesn't appear to be doing so. IS there any reason that is there?
|
|
inherit
201954
0
Jan 8, 2014 8:41:29 GMT -8
Garrett Silvers
'Someone kill the DJ' - Green Day
16
November 2013
lookitskyle
|
Post by Garrett Silvers on Dec 24, 2013 9:33:13 GMT -8
It's probably a bracket I haven't deleted from previous attempts.
|
|
inherit
201954
0
Jan 8, 2014 8:41:29 GMT -8
Garrett Silvers
'Someone kill the DJ' - Green Day
16
November 2013
lookitskyle
|
Post by Garrett Silvers on Dec 24, 2013 10:15:39 GMT -8
Also there I believe is an error. When I edit the HTML of it, it shows in the PREVIEW so I go and save it I go onto my Forum and it doesn't work, it's really quite frustrating.
|
|
inherit
Jack of All Trades, Master of None
27090
0
May 30, 2013 20:36:34 GMT -8
Stinky666
8,818
July 2004
stinky666
|
Post by Stinky666 on Dec 24, 2013 10:50:00 GMT -8
Also there I believe is an error. When I edit the HTML of it, it shows in the PREVIEW so I go and save it I go onto my Forum and it doesn't work, it's really quite frustrating. An error for what? I mean, is it for the stuff I told you to add, or is that working fine?
|
|
inherit
201954
0
Jan 8, 2014 8:41:29 GMT -8
Garrett Silvers
'Someone kill the DJ' - Green Day
16
November 2013
lookitskyle
|
Post by Garrett Silvers on Dec 24, 2013 12:03:35 GMT -8
Also there I believe is an error. When I edit the HTML of it, it shows in the PREVIEW so I go and save it I go onto my Forum and it doesn't work, it's really quite frustrating. An error for what? I mean, is it for the stuff I told you to add, or is that working fine? It works when I go to 'preview' it but when I save it and go to it an a separate tab it doesn't.
|
|
inherit
Jack of All Trades, Master of None
27090
0
May 30, 2013 20:36:34 GMT -8
Stinky666
8,818
July 2004
stinky666
|
Post by Stinky666 on Dec 24, 2013 12:26:05 GMT -8
An error for what? I mean, is it for the stuff I told you to add, or is that working fine? It works when I go to 'preview' it but when I save it and go to it an a separate tab it doesn't. Into a tab? Not sure what you mean. What tab? This adds the posts and likes into the mini profile for in posts/threads.
|
|
inherit
201954
0
Jan 8, 2014 8:41:29 GMT -8
Garrett Silvers
'Someone kill the DJ' - Green Day
16
November 2013
lookitskyle
|
Post by Garrett Silvers on Dec 25, 2013 1:34:35 GMT -8
When in preview it works. When I save it and go to my Forum it doesn't work. Like there's not been any update.
|
|
inherit
Jack of All Trades, Master of None
27090
0
May 30, 2013 20:36:34 GMT -8
Stinky666
8,818
July 2004
stinky666
|
Post by Stinky666 on Dec 25, 2013 8:50:51 GMT -8
I'm not sure what to say or do. It seems like that's a ProBoards Bug, which is some thing they would need to fix. Best report it in the support board, and link back to this thread
|
|