very nice,
thank you! :D |
KirbyDE .... Great How-To!!
One thing I would like to point out to everyone which I think is extremely relevant to this thread is the install="X" field will not be recognized during a product installation script ... at least not without extra code which I haven't figured out how to write yet. Simply rebuilding the bitfields (while it will allow the new permissions to begin functioning) will result in all zero's as default for all groups. http://www.vbulletin.com/forum/bugs3...iew&bugid=1054 This is the vBulletin response. Quote:
Maybe someone else will have better luck than me. |
Untested, but
PHP Code:
|
You were close Kirby
You only forgot the WHERE usergroupid=$usergroupid in the query. Works like a charm!!! Thank you, Sir!! PHP Code:
|
I knew there was a reason why I specified a Variable for the Key in foreach() :p
|
lol... Kirby, might I ask why I'm in your signature?
|
Yes. I've read this Post you made and found it very amusing :)
|
Can anyone verify or deny for certain if two of the same "canfoo" bitfield names can exist as long as they are each under a different groupname?
For example, something like "canview" under groupname "bluntswhodlpermissions". I could see almost every hack using a "canview", LOL, but the groupname is very unique. I ask because I do see a lot of vbulletin code which checks for clashes, but the code gets a little too deep for me to fully understand so far. I ask in this thread to help reinforce this how-to. I mean if we must all diversify this variable as well, then maybe the how-to should reflect that we should put part of our myhack name in this too somehow .... or maybe we are all good with real simple short vars here if duplicate canfoo's are ok as long as the groupname is unique. I suspect the latter, but I leave it as a question. Just trying to help avert potential problems down the road while we are all learning the vb350 ways. |
You can have "canfoo" in myperms1, myperms2, mypers3, doesntmatterperms and so on - doesn't cause Problems, as they are different Bitfields and those Names are just Shortcuts for the Bits :)
|
3 thumbs up for Kirby!!
Appreciate the time!! |
All times are GMT. The time now is 11:58 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|