![]() |
Conditionals. To Display something from a usergroup
Hi All
Thanks for reading i'm no programmer, so i really need anyone's help in this
I hope i won't be redirected to the plugin page cos i'm sure with the many experts here, will be able to provide a useable conditional for this purpose thanks! |
In a thread, if you have a post getting displayed and you only want to display something in that post if the poster is in a certain usergroup:
HTML Code:
<if condition="is_member_of($post, x,y,z)"> |
hi Lynne
thanks! i did use that on the threadbit template but it wouldn't display Code:
<tr> in case if you're wondering what $avatar is, its the plugin that displays posters' avatars in the threadbit thanks! --------------- Added [DATE]1234286343[/DATE] at [TIME]1234286343[/TIME] --------------- this is the plugin code Code:
require_once('./includes/functions_user.php'); |
Where are you trying to show this? The condition I wrote was for posts in the showthread.php page. What page are you trying to modify? (Probably trying $userinfo instead of $post will work.)
|
hi lynne
it is for the threadbit i wish to display the avatars beside the threads in forumdisplay |
I want to show a small GIF image in the upper right hand corner of each post (right above the Join Date), for any user who is a member of a certain user group.
Should I use a modified version of what you recommended above Lynne? If so, should I add this conditional statement in the Postbit template? And how could I then make this image clickable, and send the clicker to a specific link? Thanks in advance as always. :) |
Quote:
PHP Code:
Quote:
|
Quote:
https://vborg.vbsupport.ru/showthread.php?t=204907 |
hi Lynne
thanks again but it still doesn't work. no avatars are displayed at all when i used these: $usergroupid = $thread['usergroupid']; $usergroupid = $usergroup['usergroupid']; $usergroupid = $forum['usergroupid']; here's my plugin code. is there anything wrong with it? Code:
require_once('./includes/functions_user.php'); |
You're grabbing the avatar URL, but not using it? :confused:
|
All times are GMT. The time now is 01:06 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|