Multiple Groupimages on Postbit

by Aoki - 15-01-2015, 01:14 AM
._.
Posts:
5,261
Joined:
Jan 2015
Likes:
1,431
Credits:
21,337
Reputation:
204
Owner
2 Years of Service
#1
OP
Posted: 15-01-2015, 01:14 AM
Talking about this:

[Image: 1Cu0Bh4.png]

You have to install the PHP in templates plugin. If you don't have it, download it here: http://nulledbb.com/Thread-PHP-in-Templates-2-0

Navigate to your postbit templates: AdminCP > Templates & Style > Templates > Postbit Templates > postbit or postbit_classic
If you want to add the second groupimage to one user add this below {$post['groupimage']}:

Code:
<if $post['uid'] == 1 then>[img]path/to/groupimage.png[/img]</if>
1 is the UserID (UID) of the user.

If you want to add the second group image to more users, add this below {$post['groupimage']}:

Code:
<if in_array($post['uid'], array(1,2,3,4)) then>[img]path/to/groupimage.png[/img]</if>

Send me a message for help. (Read the help docs first)
Steam Wishlist - Anime Watchlist
The last reply on this thread is older than a month. Please do not unnecessarily bump it.
Register an account or login to reply
Create an account
Create a free account today and start posting right away. It only takes a few seconds.
Login
Log into an existing account.
1 Guest(s)