Is there a code to show the stat number of how many buddies a user has?
I want to display this on user's profiles
something likeĀ {$memprofile['buddynum']}
Not sure if this is stored/exists
No. With Template Conditionals plugin you can do:
<?=count(explode(',', $memprofile['buddylist']))?>
I do have Template Conditions installed but I tried inserting that code into member_profile template but didn't do anything.
I inserted it into mine and it worked.
Hey Destroy666. Did I have to wrap the <?=count(explode(',', $memprofile['buddylist']))?> code with anything? or do I just have to put it in like that.
ohh nvm. It's because I was using the Template Conditional plugin instead of the PHP and Template Conditional plugin. Thanks Destroy666.
One other question Destroy666. I have multiple award/achievement plugins.
I tried
<?=count(explode('img', $post['ougc_awards']))?>
That worked but I also want it to count {$post['ougc_agi']}{$post['myachievements_postbit']} and output it all as one number. Anyway to do that?