Create Multiple Options Per Forum (via Bitfields)
Create Multiple Options Per Forum (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 $foruminfo['mybitoptiontitle']. >> EOD |
Thanks for taking the time to write this up :)
|
Thanks alot Anthony!
/me bookmarks! |
What do you mean by Multiple Options?
|
Quote:
|
Quote:
|
This tutorial is about creating new options, therefore forums WILL have whatever options you add using this tutorial, given you do it correctly :)
|
it's just giving me sql errors is this for 3.5.x or 3.0.x
|
This is for 3.5.x.
|
i wonder why it doesn't work then.
|
I don't know, it works for me. I used the steps described above to implement such thing in about 4 of my hacks by now...
|
I am trying to make a link in the thread tools.
What hooks would I use instead of "forumadmin_edit_form" and "forumadmin_update_save"? |
I have a question about the bitfield_myproductid.xml file.
When you release a product, can you include this information in the product.xml file? That is, can you put a new child <bitfields ...></bitfields> inside the <product ...></product> element of your installer? or must you have the user place the bitfields xml file in the mysite/includes/xml folder as part of product setup? |
The XML must be in /includes/xml.
|
Hi Psionic
Thanks for taking the time do publish this, very useful. |
So im trying to use a number input in my admincp, whenever i enter my numbers 10,5,.1and click go, it writes the number 8 to the database. ?? I have no clue how this is storing the information. I changed the int(10) to Varchar(250) by the way.
|
Great tutorial. Thanks a ton!
|
Works on vB4 :y:
How would I make a textbox appear in the forum manager, instead of a yesno row? |
All times are GMT. The time now is 06:11 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:
|