Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
  #31  
Old 29 Jul 2005, 22:08
Brinnie's Avatar
Brinnie Brinnie is offline
 
Join Date: Jul 2005
very nice,

thank you!
Reply With Quote
  #32  
Old 21 Aug 2005, 06:50
Mr Blunt Mr Blunt is offline
 
Join Date: Jan 2004
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.

Originally Posted by John
This is happening because the install field in the bitfield XML is only used when vBulletin is first installed (see lines 2280-2315 in install/mysql_schema.php). You may want to reproduce some of the code from there in your plugin to get it to take up the default values.
I played with this all day today and basically got nowhere.
Maybe someone else will have better luck than me.
Reply With Quote
  #33  
Old 23 Aug 2005, 14:57
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
Untested, but


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Last edited by KirbyDE; 23 Aug 2005 at 19:57.
Reply With Quote
  #34  
Old 23 Aug 2005, 19:55
Mr Blunt Mr Blunt is offline
 
Join Date: Jan 2004
You were close Kirby
You only forgot the WHERE usergroupid=$usergroupid in the query.
Works like a charm!!!
Thank you, Sir!!


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #35  
Old 23 Aug 2005, 19:58
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
I knew there was a reason why I specified a Variable for the Key in foreach()
Reply With Quote
  #36  
Old 23 Aug 2005, 21:36
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
lol... Kirby, might I ask why I'm in your signature?
__________________
Former vBulletin.org Staff Member

Please feel free to re-use any of the code in any of my projects submitted to vB.org, so long as original attribution is retained.
Reply With Quote
  #37  
Old 23 Aug 2005, 21:43
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
Yes. I've read this Post you made and found it very amusing
Reply With Quote
  #38  
Old 23 Aug 2005, 22:16
Mr Blunt Mr Blunt is offline
 
Join Date: Jan 2004
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.
Reply With Quote
  #39  
Old 23 Aug 2005, 22:21
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
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
Reply With Quote
  #40  
Old 23 Aug 2005, 22:36
Mr Blunt Mr Blunt is offline
 
Join Date: Jan 2004
Thumbs up

3 thumbs up for Kirby!!
Appreciate the time!!
Reply With Quote
  #41  
Old 24 Aug 2005, 01:42
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Originally Posted by KirbyDE
Yes. I've read this Post you made and found it very amusing
Ha ha... well I'm glad I can find ways to amuse you. I was just curious... not like you see v3 Arcade in the Navbar or anything, eh?
__________________
Former vBulletin.org Staff Member

Please feel free to re-use any of the code in any of my projects submitted to vB.org, so long as original attribution is retained.
Reply With Quote
  #42  
Old 07 Oct 2005, 02:51
jesus likes pie's Avatar
jesus likes pie jesus likes pie is offline
 
Join Date: Apr 2005
Can you make a specific user be allowed to use html?

If so, how?


EDIT: hey, I have an idea, could I make a secondary usergroup that has it enabled, put the desired user as secondary usergroup for it, but have him display as his primary one?

Will that work? If not.....what will?

sorry guys...wrong thread. rofl...

Last edited by jesus likes pie; 07 Oct 2005 at 02:52. Reason: Automerged Doublepost
Reply With Quote
  #43  
Old 07 Oct 2005, 02:52
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
Yes it will work, if the primary usergroup does allow membergroups.
Reply With Quote
  #44  
Old 07 Oct 2005, 04:03
Reaktor7 Reaktor7 is offline
 
Join Date: Mar 2005
i am pretty sure there is a plugin for that which may make things a little neater....
Reply With Quote
  #45  
Old 22 Oct 2005, 15:46
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Real name: Andrew Harmor
I got the same error someone else got about the escape strings

In the product I have I put that "Rebuild Bitfields" script Andreas wrote


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I don't know if I plugins can be used without a hook so maybe that's my problem.

Here's my bitfield

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
Reply

Similar Article
Article Author Type Replies Last Post
Custom Usergroup/Forum Permissions joefitz vBulletin 3.5 Add-ons 8 14 Feb 2011 19:23



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Article Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 21:18.

Layout Options | Width: Wide Color: