MyBB Community Forums

Full Version: UID in postbit for Selected groups
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How can i make the UID show in postbit for selected usergroups i use google seo this is why and it will be easier for betting mods
http://mods.mybb.com/view/user-id-uid-on-postbit
Doesn't support selected usergroups though.
(2012-05-05, 11:33 PM)Solidus Wrote: [ -> ]http://mods.mybb.com/view/user-id-uid-on-postbit
Doesn't support selected usergroups though.

i need it to support selected usergroups you dont even need that plugin

<strong>UID:</strong>{$memprofile['uid']}

but i want to select certain usergroups
If you're using template conditionals, do this,

<if $user['usergroup'] == 2 then>
<strong>UID:</strong>{$memprofile['uid']}</if>

That would (I think) only show UID on registered group members.
http://mybbhacks.zingaburga.com/showthread.php?tid=464
(2012-05-05, 11:38 PM)Solidus Wrote: [ -> ]If you're using template conditionals, do this,

<if $user['usergroup'] == 2 then>
<strong>UID:</strong>{$memprofile['uid']}</if>

That would (I think) only show UID on registered group members.
http://mybbhacks.zingaburga.com/showthread.php?tid=464

lets say add 2 how can i do more?
<if $user['usergroup'] == 2,1 then>
<strong>UID:</strong>{$memprofile['uid']}</if>
I don't think {$memprofile['uid']} would work on postbit. Its a profile function and as far as I guess, you're recalling it on postbit which won't work, I believe.
(2012-05-06, 05:42 AM)crazy4cs Wrote: [ -> ]I don't think {$memprofile['uid']} would work on postbit. Its a profile function and as far as I guess, you're recalling it on postbit which won't work, I believe.
i done {$post['uid']} the if statement didnt work..
Use plugin instead.
I think it's always best to use php call manually that to use plugin that keep your space and slow down your board page loading.
I used: {$post['uid']} on the postbit_author_user template of the theme I use for my board and works pretty well with me and I didn't install any plugin. To make it show on the member_user (user profile) you use {$memprofile['uid']}