![]() |
If then statements.
If this is in the wrong forum, I apologize in advance.
I was on a site ColoradoK5 you can see the hack here.(http://coloradok5.com/forums/showthread.php?t=200375). He has a hack he made that allows him to specify users to receive little icons on the bottom of their post bit. I asked him how he did it, and he just told me he made some sort of if/then code where if userid = 123 then post the graphic. Can someone here teach me how I would write something like that? Thanks. |
I do not see any "little icons" .. perhaps you have to be logged in :confused:
upload a screenshot |
If you want to use this with a lot of users, create a new profile field and note the profile id # and add this code into your postbit template (mine is 19).
HTML Code:
<!-- begin img --> There is more on conditionals here: http://www.vbulletin.com/docs/html/m...e_conditionals |
I have the code, I can't delete my post, so thanks for reading.
<if condition="in_array($post[userid], array(1,2))"> <img src="image.gif" alt="MouseOver" border="0" /> </if> Quote:
|
Yeah, the example you posted is better if you want to give certain users the same image. Mine is if you want to give users thier own image. Different purposes.
|
you can also use USER RANKS
http://www.vbulletin.com/docs/html/user_ranks_example_1 |
All times are GMT. The time now is 02:31 PM. |
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:
|