Add Multiple Options Per User (via Bitfields)
Create Multiple Options Per User (via Bitfields)
This How-To should serve as a reference to coders, who have a basic knowledge of PHP and who want to make their own mods. Help on writing hacks will NOT be provided, and any such posts will be ignored. Whereever it says mybitoptionsfield, you'll need to replace that with the actual fieldname that you are going to use.
Once done, rebuild your btifields. Now, you should be able to access the new options simply by using $userinfo['mybitoptiontitle']. >> EOD |
bookmarked :) thanks dude
|
You saved the day! Thank you very much Anthony! :)
|
i just get
Invalid File Specified when i try to import the xml product file containing: PHP Code:
|
Don't import that file, place it under ./includes/xml/ of your forum (filename should be: bitfield_myproductid.xml).
|
ahh thanks for the quick response
btw myproductid is myproductid lol |
You should use a unique string as your product id, not keep the default one. Two product with the same product id cannot co-exist.
|
yeah i am just testing i will change afterwards.
do you know how to get 2 radio buttons yes or no? |
Please refer to the following text from the first post:
Quote:
|
so how am i supposed to learn :(
|
You could start by referring to the following thread:
https://vborg.vbsupport.ru/showthread.php?t=99570 Also, if you have specified questions, post them in "Modifications Questions" forum. :) |
already have. lol :)....
|
A great tutorial!
I had two issues, that others might also run into: * you might have to execute the querys from step 2 manually (as i followed all the steps here to create the product, and didn't acually "install" it via the import product button) * If you want to create a plugin that changes the template (instead of manually inserting the code into the template modifyoptionslike in step 4) you have to do some extra things - explained in this thread |
Very Good Article
|
I have a side question, I know it says no help will be provided. But I want to have an option like "Enable Override" and then my options would override the usergroup options. For instance, if enable override is on and voting is off, the user can't vote whether they have usergroup permissions or not. If the voting is on then they can vote whether they have usergroup permissions or not. This way I can allow certain users to vote even if their usergroup doesn't allow it, or deny them access to vote even if their usergroup allows it.
|
Fantastic article. Any chance of doing something similar with vb4.x? Has it even changed much?
|
All times are GMT. The time now is 06:22 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:
|