Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Predefined User-Attributes Extension
Hi.
I wrote an extension which allows administrators to predefine attributes. Administrators may add custom fields like "Phone-Nr." or "Shirt-Size" (Respect your users privacy) to the Accounts-Page. User may fill this information on Appliance and on the Account "Personal Information" page.
http://twoantennas.com/sr/wp-content/files/2006/04/PredefinedAttributes.php.zip
http://lussumo.com/addons/?PostBackAction=AddOn&AddOnID=20 (edited)
The extension uses the field "Attribute" in "User" table and disables user-defined "Label"-"Value" pairs. The "User" and "UserManager" classes are extened. The "CustomIdentityForm" and "CustomApplyForm" classes are overwritten to handel user inputs.
In the first version the extension has to be configured in the php-file.
I'm working with Vanilla since a short time. This is my first extension. I hope to get some feedback and tipps in this forum.
Thanks,
Michael
I wrote an extension which allows administrators to predefine attributes. Administrators may add custom fields like "Phone-Nr." or "Shirt-Size" (Respect your users privacy) to the Accounts-Page. User may fill this information on Appliance and on the Account "Personal Information" page.
http://lussumo.com/addons/?PostBackAction=AddOn&AddOnID=20 (edited)
The extension uses the field "Attribute" in "User" table and disables user-defined "Label"-"Value" pairs. The "User" and "UserManager" classes are extened. The "CustomIdentityForm" and "CustomApplyForm" classes are overwritten to handel user inputs.
In the first version the extension has to be configured in the php-file.
I'm working with Vanilla since a short time. This is my first extension. I hope to get some feedback and tipps in this forum.
Thanks,
Michael
0
Comments
Very nice extension - however without realizing it I killed some other user defined labels that were already there :-) no prob though.
Make sure you get yours up in the new add-ons area!
http://lussumo.com/addons/?PostBackAction=AddOn&AddOnID=20
@ccmehil: I added a warning to the description, which will be displayed in the extension manager. Sorry for your losses.
the major difference is that in 0.9.3 and 1.0, extensions reside in their own folder.
in 0.9.2 it was like: extensions/MyExtension.php
in 1.0 it's like: extensions/MyExtension/default.php.
i've changed several 0.9.2 extensions to the new format just by renaming them and so far they've all worked fine.
also this thread has information about the SVN.
thank you for this info and the right links
Any suggestions and feedback?
Parse error: parse error, expecting `')'' in /home/webtree/htdocs/vanilla/extensions/PredefinedAttributes_v0.3.1/default.php on line 102
i don't have this error. In line 102 is the Constructor Which php Version are you running?
In old version you may have to change it to Grüsse aus Hamburg*
i've changed it to
function PredefinedAttributes(&$Context, &$User = false) {
but it doesn't work. I get the same error.
If i Change it to
function PredefinedAttributes($Context, $User = null) {
I don't get this error, but the extension doesn't work...
Grüsse aus Deggendorf, Bayern
Does anyone else got the same error on Line 102?