2020-02-15, 05:36 AM
2020-02-15, 06:33 AM
if you want to display logged in user's newpoints then you can use
for the richest users, try using
{$user['newpoints']}
for the richest users, try using
{$richest_users}
2020-02-15, 08:41 AM
Dont work too.
I want to make a small user profile on index and show his avatar,name, reputation and newpoints
I want to make a small user profile on index and show his avatar,name, reputation and newpoints
2020-02-15, 03:03 PM
^ check if this works -->
{$mybb->user['newpoints']}
2020-02-15, 04:27 PM
that works. i will let you know when i finish my user bar
so i made this
i have two problem
1)how to show number of repuptation on index
1) how to hide it from guest
so i made this
<!-- BEGIN USEERBOX -->
<style>.mini-avatar { float:right; width:25px; height:25px; border-radius:100%; margin-left:5px; background: url('images/default_avatar.png') no-repeat; background-size: 100% auto; }
.mini-avatar img { width:25px; height:25px; border-radius:100%; }
.mini-avatar img[src=""] { display: none; }</style>
<table width="100%" cellpadding="5" cellspacing="0" class="tborder">
<tbody><tr>
<td class="trow1 no_bottom_border" style="background-color:#202020 !Important;" colspan="3">
<img class="head-avatar-new" src="{$mybb->user['avatar']}" alt="avatar" title="{$mybb->user['username']}" style="width: 55px; height: 55px; vertical-align: middle; margin: -2px 10px 0 0; border-radius: 4px;">
<span class="largetext"> <span><a data-uid="649171" data-class="profile_url" data-link="profilecard.php?action=profilecard&uid=649171" href="member.php?action=profile&uid={$mybb->user['uid']}" data-hasqtip="0"> {$mybb->user['username']}</a>
</span><span class="float_right latest-replies credits"><i class="fas fa-coins credit_icon"></i> {$mybb->user['newpoints']}</span>
<br>
</span></td>
</tr>
<tr>
<td class="trow1 no_bottom_border" width="33%" valign="middle" align="center"><span class=" largetext">NUM</span><br><span class="x-smalltext">Reputation</span></td>
<td class="trow1 no_bottom_border" width="33%" valign="middle" align="center"><span class=" largetext">{$mybb->user['threadnum']}</span><br><span class="x-smalltext">Threads</span></td>
<td class="trow1 no_bottom_border" width="33%" valign="middle" align="center"><span class=" largetext">{$mybb->user['postnum']}</span><br><span class="x-smalltext">Posts</span></td>
</tr>
</tbody></table>
</div>
<!-- END USEERBOX -->
i have two problem
1)how to show number of repuptation on index
1) how to hide it from guest
2020-02-16, 02:03 AM
logged in user's reputation -->
if you do not want to display content to guests then
generally followed method is to use template conditional
after installing template conditionals plugin you can wrap the content with
AND
{$mybb->user['reputation']}
if you do not want to display content to guests then
generally followed method is to use template conditional
after installing template conditionals plugin you can wrap the content with
<if $mybb->user['usergroup'] != 1 then>
at the beginning of the contentAND
</if>
at the end of the content2020-02-16, 01:02 PM
thank you that how it looks like now
2020-03-15, 03:48 PM
(2020-02-16, 01:02 PM)Mastersly Wrote: [ -> ]thank you that how it looks like now
Hi bro,
can you please provide a link of new working NewPoints 2.0 in this 2020 ?
2020-03-15, 04:12 PM
^ NewPoints plugin's latest available version is 2.1.1.
this latest version & previous versions available here => Link
this latest version & previous versions available here => Link
2020-05-31, 02:20 AM
(2020-02-15, 03:03 PM).m. Wrote: [ -> ]^ check if this works --> {$mybb->user['newpoints']}
It work well but I would like to display {$richest_users} at newpoints_home and how can I do?