Does anyone know an example of an "if" statement code?
Something like this that could work in Arrowchat?
<?php if: group_id = 5 >
Displays message A
<elseif: group_id = 1 >
Displays message B
?>
That's a normal PHP file, so you can do anything. The user's groups are stored in $group_id (array).If possible add it somewhere in the file /public/mobile/index.php
I am trying to display a message to my "free members" only (who are in group permission #9)
Any help would be nice.
I tried a lot of different codes but none workThat's a normal PHP file, so you can do anything. The user's groups are stored in $group_id (array).
That's exactly what I was looking for, thank you, sir !!!if (in_array(9, $group_id))
That is what you're looking for. If you need to do other things with it, just search for info on PHP arrays.