Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
  #61  
Old 29 Oct 2005, 22:51
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
Originally Posted by Andreas in First Post
The value of <bitfield> is the decimal value of the bit (eg. 1 for the first, 2 for the second, 4 for the third, and so on).
So ... ?
Reply With Quote
  #62  
Old 29 Oct 2005, 22:59
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Real name: Anton Kanevsky
Ah, I didn't see that
__________________
I can no longer support any of my hacks. Please do not contact me for that. Feel free to create and post new versions of my hacks, as long as you give me credit for the original work.
Reply With Quote
  #63  
Old 10 Nov 2005, 11:22
Alan @ CIT Alan @ CIT is offline
 
Join Date: Nov 2004
Location: South UK
Real name: Alan
I have a usergroup xml file with 3 bitfield options. How can I get them to be "Yes" by default when the product is installed?

At the moment, I've set the database column default to 7, then rebuild the bitfields, which makes them all appear as "Yes" when you edit a usergroup, but you need to go into each usergorup and click "Save" to make them take effect.

If you don't, they are still set as "No" in the forum, despite Usergroup Manager saying they are yes.

Any ideas?
__________________
IMPORTANT: I'm afraid that I no longer develop software / modifications for vBulletin. However, thank you to everyone who installed / supported my modifications!
Reply With Quote
  #64  
Old 10 Nov 2005, 11:33
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Real name: Chris Murphy, BSc
You can either run a manual query to update the bitfield values or you will have to save each Usergroup - There is no way to set it to a default value for existing usergroups since the datastore will not contain the values for the new settings

Chris
Reply With Quote
  #65  
Old 10 Nov 2005, 11:39
Alan @ CIT Alan @ CIT is offline
 
Join Date: Nov 2004
Location: South UK
Real name: Alan
Dang, I was afraid of that. Cool, thanks Chris
__________________
IMPORTANT: I'm afraid that I no longer develop software / modifications for vBulletin. However, thank you to everyone who installed / supported my modifications!
Reply With Quote
  #66  
Old 18 Nov 2005, 14:38
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Real name: sabe
thanks, very useful.
__________________
UNDER CONSTRUCTION: Confessionary Hack

Make me a Hack of The Month author: GRPS: Groups Commune
make my hacks, they'll make you famous

unless it's a security concern, please do not pm/im me for support unless you're willing to pay.
Reply With Quote
  #67  
Old 28 Nov 2005, 06:09
deathemperor's Avatar
deathemperor deathemperor is offline
 
Join Date: Jul 2003
Real name: Lucius Hunk
I found that the product attribute of the <bitfields> on vb3.5.0 is not case sensitive while 3.5.1 is
Reply With Quote
  #68  
Old 11 Dec 2005, 14:56
Mr Blunt Mr Blunt is offline
 
Join Date: Jan 2004
Originally Posted by Andreas
Untested, but


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
Did this become broken in vb351 or vb352? For my hack, this code doesn't seem to allow the default install groups to be set during installation anymore (someone complained after installing it on vb3.5.2, which is when I tried the install/uninstall code again on my own test forum).

I spent the last 8 hours clicking around and found Andreas had a problem with his signature hack when vb351 came out, but since I didn't see the previous version, I don't know what he did to fix.

Sorry if this was answered elsewhere.
Reply With Quote
  #69  
Old 11 Dec 2005, 15:26
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
Yep, that does not work any longer for 3.5.1+ as the bitfield builder ignores bitfields for non-active products.
You must adjust it a bit to just use the XMLReader.

Last edited by Andreas; 11 Dec 2005 at 15:28.
Reply With Quote
  #70  
Old 12 Dec 2005, 01:43
Mr Blunt Mr Blunt is offline
 
Join Date: Jan 2004
Originally Posted by Andreas
Yep, that does not work any longer for 3.5.1+ as the bitfield builder ignores bitfields for non-active products.
You must adjust it a bit to just use the XMLReader.
Sigh, 12 hours of studying vb code and I haven't made any progress.

For the record, I gave up and moved the code to a seperate admin file and call it after installation.

Last edited by Mr Blunt; 12 Dec 2005 at 11:50. Reason: Automerged Doublepost
Reply With Quote
  #71  
Old 21 Dec 2005, 14:21
Cheertobi Cheertobi is offline
 
Join Date: Aug 2004
Hi,

I cannot get this work ;(

I made the following bitfield:


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

But $permissions['teampermissions'] seems to be empty and $vbulletin->bf_ugp_teampermissions['caneditteam']) or $vbulletin->bf_ugp_teampermissions['candeleteteams']) are always "true", even if they are selected in the admincp or not.

Tobi
__________________
Cheerleading Forum
Reply With Quote
  #72  
Old 22 Dec 2005, 21:40
Cheertobi Cheertobi is offline
 
Join Date: Aug 2004
Does noone have an idea what is wrong in my coding?!
__________________
Cheerleading Forum
Reply With Quote
  #73  
Old 23 Dec 2005, 22:13
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
Did you rebuild the bitfield cache?

@MrBlunt
Well, as said - just directly use the XMLReader and set your bits accordingly.
Or fake the product being installed and call the bitfield builder.
Reply With Quote
  #74  
Old 23 Dec 2005, 23:44
Cheertobi Cheertobi is offline
 
Join Date: Aug 2004
Question

Originally Posted by Andreas
Did you rebuild the bitfield cache?
Yes I did that. Andreas, can we maybe move over to vbhacks-germany? It might be easier for me to explain what I have done and what not work like expected in german?!

Regards,

Tobi
__________________
Cheerleading Forum
Reply With Quote
  #75  
Old 24 Dec 2005, 00:30
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
If you already have a thread there or create on - sure
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 17:38.

Layout Options | Width: Wide Color: