Log in

View Full Version : How can I access sigmaximages in a plugin at runtime?


AndrewRich
04-19-2012, 09:56 PM
In the usergroup table is a field for 'sigmaximages'. How can I access this value in a plugin (PHP) at runtime?

Thanks.

kh99
04-20-2012, 10:40 AM
Try $vbulletin->userinfo['permissions']['sigmaximages'].

AndrewRich
04-20-2012, 04:36 PM
Brilliant, thanks so much.

Any idea why just setting this value in AdminCP doesn't actually restrict the number of images members can put in their signatures?

kh99
04-20-2012, 05:10 PM
Any idea why just setting this value in AdminCP doesn't actually restrict the number of images members can put in their signatures?

No. I think it should. The code looks like it counts the occurrences of '<img' in the signature. Of course if it's set to 0 it means 'unlimited'. Anyway, maybe a plugin or product interfering somehow.

I think it probably won't do anything until a user edits their sig, so setting it won't do anything if they already have too many.

AndrewRich
04-20-2012, 05:31 PM
I think there must be an unspoken exemption for the Administrators group. I just re-tested and it works fine for regular users.

Thanks for your help!