Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved [How To?] Border and Userstats
#34
Not Solved
(03-06-2017, 07:09 PM)Glunar Wrote: It worked!!

Thank you soooooooooooooooooooooooooo much!!!

Can I write something like "Owner of etc." under the Avatar also?

Also... Could you tell me how did you do it in a small way? Like explaining what you changed deleted and/or added?

The code you have has been applied to usergroups, not users in specific. Here is amended code with 'Staff Member' for all users in group ID 3 and 4.

{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<div class="post classic {$unapproved_shade}" style="{$post_visibility}" id="post_{$post['pid']}">
<div class="post_author scaleimages">
<div class="pbclassicusername">
<strong><span style="font-size: 21px;">{$post['profilelink']}</span></strong> {$post['onlinestatus']}
</div>
{$post['useravatar']}
<div class="author_information">
<span class="smalltext">
<if in_array($post['usergroup'], array(4,3)) then><else>{$post['usertitle']}</if><br />
{$post['userstars']}
{$post['groupimage']}
</span>
</div>
<div class="author_statistics">
<if in_array($post['usergroup'], array(4,3)) then>Staff Member<else>{$post['user_details']}
{$post['newpoints_postbit']}</if>
</div>
</div>
<div class="post_content">
<div class="post_head">
{$post['posturl']}
{$post['icon']}
<span class="post_date">{$post['postdate']} <span class="post_edit" id="edited_by_{$post['pid']}">{$post['editedmsg']}</span></span>
{$post['subject_extra']}
</div>
<div class="post_body scaleimages" id="pid_{$post['pid']}">
{$post['message']}
</div>
{$post['attachments']}
{$post['signature']}
<div class="post_meta" id="post_meta_{$post['pid']}">
{$post['iplogged']}
</div>
</div>
<div class="post_controls">
<div class="postbit_buttons author_buttons float_left">
{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}
</div>
<div class="postbit_buttons post_management_buttons float_right">
{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quickrestore']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_purgespammer']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
</div>
</div>
</div>

Here is amended code that will only apply to you and you only. It states 'Owner', also this will only happen to your posts, nobody elses.

{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<div class="post classic {$unapproved_shade}" style="{$post_visibility}" id="post_{$post['pid']}">
<div class="post_author scaleimages">
<div class="pbclassicusername">
<strong><span style="font-size: 21px;">{$post['profilelink']}</span></strong> {$post['onlinestatus']}
</div>
{$post['useravatar']}
<div class="author_information">
<span class="smalltext">
<if $memprofile['uid'] == 1 then><else>{$post['usertitle']}</if><br />
{$post['userstars']}
{$post['groupimage']}
</span>
</div>
<div class="author_statistics">
<if $memprofile['uid'] == 1 then><span style="color:red"><b>Owner</b></span><else>{$post['user_details']}
{$post['newpoints_postbit']}</if>
</div>
</div>
<div class="post_content">
<div class="post_head">
{$post['posturl']}
{$post['icon']}
<span class="post_date">{$post['postdate']} <span class="post_edit" id="edited_by_{$post['pid']}">{$post['editedmsg']}</span></span>
{$post['subject_extra']}
</div>
<div class="post_body scaleimages" id="pid_{$post['pid']}">
{$post['message']}
</div>
{$post['attachments']}
{$post['signature']}
<div class="post_meta" id="post_meta_{$post['pid']}">
{$post['iplogged']}
</div>
</div>
<div class="post_controls">
<div class="postbit_buttons author_buttons float_left">
{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}
</div>
<div class="postbit_buttons post_management_buttons float_right">
{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quickrestore']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_purgespammer']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
</div>
</div>
</div>
Check out all my submissions here - click me
MyBB support at it's finest. 
Reply


Messages In This Thread
Border and Userstats - by Glunar - 03-06-2017, 02:57 PM
RE: Border and Userstats - by Nasyr - 03-06-2017, 02:59 PM
RE: Border and Userstats - by Glunar - 03-06-2017, 03:09 PM
RE: Border and Userstats - by Nasyr - 03-06-2017, 03:15 PM
RE: Border and Userstats - by Glunar - 03-06-2017, 03:16 PM
RE: Border and Userstats - by Nasyr - 03-06-2017, 03:20 PM
RE: Border and Userstats - by Glunar - 03-06-2017, 03:21 PM
RE: Border and Userstats - by Nasyr - 03-06-2017, 03:24 PM
RE: Border and Userstats - by Glunar - 03-06-2017, 03:27 PM
RE: Border and Userstats - by Nasyr - 03-06-2017, 03:32 PM
RE: Border and Userstats - by Glunar - 03-06-2017, 03:35 PM
RE: Border and Userstats - by Nasyr - 03-06-2017, 03:37 PM
RE: Border and Userstats - by Glunar - 03-06-2017, 03:40 PM
RE: Border and Userstats - by Nasyr - 03-06-2017, 03:48 PM
RE: Border and Userstats - by Glunar - 03-06-2017, 03:53 PM
RE: Border and Userstats - by Nasyr - 03-06-2017, 03:57 PM
RE: Border and Userstats - by Glunar - 03-06-2017, 04:00 PM
RE: Border and Userstats - by Nasyr - 03-06-2017, 04:10 PM
RE: Border and Userstats - by Glunar - 03-06-2017, 04:26 PM
RE: Border and Userstats - by Nasyr - 03-06-2017, 04:33 PM
RE: Border and Userstats - by Glunar - 03-06-2017, 04:37 PM
RE: Border and Userstats - by Nasyr - 03-06-2017, 04:47 PM
RE: Border and Userstats - by Glunar - 03-06-2017, 05:30 PM
RE: Border and Userstats - by Nasyr - 03-06-2017, 05:50 PM
RE: Border and Userstats - by Glunar - 03-06-2017, 06:13 PM
RE: Border and Userstats - by Nasyr - 03-06-2017, 06:15 PM
RE: Border and Userstats - by Glunar - 03-06-2017, 06:28 PM
RE: Border and Userstats - by Nasyr - 03-06-2017, 06:30 PM
RE: Border and Userstats - by Glunar - 03-06-2017, 06:37 PM
RE: Border and Userstats - by Nasyr - 03-06-2017, 06:44 PM
RE: Border and Userstats - by Glunar - 03-06-2017, 06:47 PM
RE: Border and Userstats - by Nasyr - 03-06-2017, 07:05 PM
RE: Border and Userstats - by Glunar - 03-06-2017, 07:09 PM
RE: Border and Userstats - by Nasyr - 03-06-2017, 07:16 PM
RE: Border and Userstats - by Glunar - 03-06-2017, 07:26 PM
RE: Border and Userstats - by Nasyr - 03-06-2017, 07:50 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)