MyBB Community Forums
Enhanced Account Switcher - All Account Posts - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Support (https://community.mybb.com/forum-72.html)
+---- Thread: Enhanced Account Switcher - All Account Posts (/thread-229005.html)



Enhanced Account Switcher - All Account Posts - ThistleProse - 2020-08-12

Hello!

I'm having a bit of trouble finding the piece of code that shows the 'Total Posts' in the Postbit.

accountswitcher_attached_postcount is the template it appears in, but what is the $post command?

I've searched through the default postbit templates, but am failing at finding it. Because my templates are heavily edited on the theme I'm using, they're not showing up.

Thanks for any help!


RE: Enhanced Account Switcher - All Account Posts - .m. - 2020-08-12

you can try using {$as_postcount}


RE: Enhanced Account Switcher - All Account Posts - ThistleProse - 2020-08-13

Hey .m., thanks for the tip -- unfortunately it doesn't work


RE: Enhanced Account Switcher - All Account Posts - ThistleProse - 2020-08-21

It's not working correctly... or something.

In the image below, the '35' should be showing up after the / to display as '20/35 Posts' but its appearing at the very bottom, above the Newpoints (droplets). I cannot seem to get it to appear where I want it. Not sure what I'm doing wrong. 

Any help would be greatly appreciated!

[Image: 6c69d3e61f9bb2f43e90b2852eae787e.png]

<!-- THIS IS THE MINI-AVATAR --> 
 <img src="http://blood-ties.net/rp/images/groupbadge/{$post['fid2']}.png" title="{$post['fid2']}">
<!-- END OF MINI-AVATAR -->

<center><span class="usertitle">

<!-- USERTITLE- THIS IS THE TEXT THAT
  APPEARS DIRECTLY BENEATH
      THE MINI-AVATAR -->
{$post['usertitle']}
<!-- END USERTITLE -->

</span></center>

<!-- THIS IS THE LINE BREAK -->
<h1></h1>
<!-- END OF LINE BREAK -->

<div style="padding-left: 10px;">

<!-- PROFILE FIELDS - USE pb_full
  FOR A FIELD THAT SPANS THE
  WIDTH OF THE ENTIRE PROFILE,
  USE pb_half FOR A FIELD THAT 
  SPANS ONLY HALF -->
<div class="pb_half">{$post['postnum']}/{$as_postcount} Posts</div>
<div class="pb_half">{$post['threadnum']} Threads</div>
<div class="pb_full">{$post['fid3']}</div>
<div class="pb_full">Registered: {$post['userregdate']}</div>
<!-- END OF PROFILE FIELDS -->

</div>

<!-- THIS IS THE LINE BREAK -->
<h1></h1>
<!-- END OF LINE BREAK -->

<div style="padding-left: 10px;">

<!-- PROFILE LINKS -->
<div class="pb_full"><b><u>Discord</u></b><br /><if in_array($GLOBALS['mybb']->user['usergroup'], array(2,3,4,5,6,8,13,14,16,17,18,19,22,23,24,25,26,27,28)) then>{$post['fid4']}
<else> 
{hidden}</if></div>
<!-- END PROFILE LINKS -->

</div>

<!-- THIS IS THE LINE BREAK -->
<h1></h1>
<!-- END OF LINE BREAK -->

<div class="pb_player">

<!-- PLAYER NAME -->
{$post['fid1']}
<!-- END PLAYER NAME -->

</div>



RE: Enhanced Account Switcher - All Account Posts - ThistleProse - 2020-10-04

Giving this a bump, as I'm still stumped Smile