The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#21
|
||||
|
||||
Then use the code I posted with bbuserinfo instead of post and see if that works.
|
#22
|
|||
|
|||
Yeah I did.
Maybe I didn't explain myself too well after u responded saying yes. I asked if "<if condition="in_array(is_member_of($bbuserinfo, array(5,6,7,9)))">$quickreply</if> in the same spot around $quickreply in the showthread template ?" was what I was supposed to use. You replied with Yes. So then I said well it still didn't work and it was giving me that error message at the top when viewing thread. So obviously it creates an error along with not working using that code provided "<if condition="in_array(is_member_of($bbuserinfo, array(5,6,7,9)))">$quickreply</if>" |
#23
|
||||
|
||||
Quote:
|
#24
|
|||
|
|||
Ok, I made one error. I had two instances of $quickreply. So I removed that, and now the quick reply box is gone for me, which isn't what I want, since I am the 7 usergroup.
The Warning: at the top still stays. So basically it did the exact opposite of what I wanted it to do. |
#25
|
||||
|
||||
You need to REPLACE $quickreply in the showthread template with that code.
|
#26
|
|||
|
|||
Yeah, Re-read above post. I was posting it underneath $quickreply. So after removing that one, the Warning Parameter message stays when viewing thread, but the quick reply box is gone when it should still be there for my usergroup
|
#27
|
||||
|
||||
Quote:
|
#28
|
||||
|
||||
Quote:
|
#29
|
||||
|
||||
Quote:
bool in_array ( mixed needle, array haystack [, bool strict]) The code above is only submitting one variable parameter, the result of the is_member_of () call. Secondly, is_member_of() does not account for an array of ID's to be passed to it. But only takes a single userid. So, you would need to either install the change by Merk which allows an array to be sent to is_member_of or use individual conditions as outlined above but matching against $bbuserinfo instead of $post. |
#30
|
||||
|
||||
Quote:
$post is an array that contains specific information about a post which is the information from the post table joined with the user table information of the person who made the post. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|