Well Whooo! It worked. Thank you very much. I was trying to figure out the stripos function as I think it will come in very handy. Thank you.
For those who may be interested, this was the final code snippet:
PHP Code:
<if (stripos(','.$memprofile['additionalgroups'].',', ',15,') !== false) then>
Show Stuff on profile where profile owner is in ADDITIONAL usergroup 15
</if>
|
Sorry for messing that up. stripos is just a case insensitive version of strpos, so either will work fine.
Well, it was very interesting so no big deal. My next quest is to make certain profile fields only available for certain user groups... I don't think that is gonna be an easy one though.
Another basic variable question:
if user's post count in specified forum is 0
I presume you mean number of posts made by a user in a specific forum only?
If so, there's no nice way to get that kind of information.
Yeah, I basically wanted to show a message if user "x" has zero posts in forum "y"
Too bad
How to show x if there are 0 replies to a thread?
If it is in showthread or forumdisplay_thread, you can use $thread['replies']
Thanks
How about the current folder ID in messaging?
Sorry to ask so many questions ;;;