Custom Profile Field Mod

Started by winrules, March 30, 2006, 02:21:25 PM

Previous topic - Next topic

Garou

Its all there jay.clark if you look.

When you add a profile field in 2.0 RC2 then you scroll down to "Input Settings", under "Field Type:" you have the choice of Text, Large Text, Select, Radio, and Check boxes once you choose one it pops up the fields to fill out for that type of field. There is also an option to show and require on registration.

I just checked  :)

jay.clark

Quote from: Garou on December 28, 2009, 08:03:33 AM
When you add a profile field in 2.0 RC2 then you scroll down to "Input Settings", under "Field Type:" you have the choice of Text, Large Text, Select, Radio, and Check boxes once you choose one it pops up the fields to fill out for that type of field. There is also an option to show and require on registration.

First of all let me apologize for not poking around more to discover the pull down choices.

I found them and radio buttons work as advertised, however when I select check boxes, I see a single box, and I can check it, however there is no place to enter text, and there is no option shown for adding more boxes as there is in the radio buttons mode.

Am I just being dumb and/or lazy again?

jayr
SMF 1.11- SMF 2.0 RC2/RC3 - - RSS Feed Poster 2.2,RSS Feeder 1.1.4, Downloads System Pro 1.0.17.1, SMF Classifieds 1.3.5, SMF Gallery Pro 3.0.2, SimpleDesk - Integrated Helpdesk for Simple Machines Forum 1.0 Felidae, Aeva Media 1.1b, Ultimate Profile     0.9, Google Analytics Code 1.1, Twitter and Facebook Publisher mod 2.4, Stop Spammer 2.3.7, SMF Links 2.2, Site map 2.1.2, AjaxChat Integration 3.2.1, Ad Management 2.3.6

SMF (Donated) SMF Links (donated) - Ad Manager (donated) - phpMyChat (donated)

Garou

The Checkbox feature as they have designed it is a simple true/false or  actually yes/no designation. If you check the box in the admin area it will automatically be checked for the user, if not the vice versa. You would enter any relevant text in the "Name" and "Description" areas then the user would check or un-check the box based on the criteria listed in the description. What Text is displayed next to the user input on the view profile page would be entered in "Show Enclosed Within Text (Optional):"

Selroth

If you're using an older version of Custom Profile Field mod, and upgrading to SMF 2, then consider this:

All your data they put inside the fields is in the smf_themes table, with the "variable" as your field name (in my case, "Biography")

The data in the smf_custom_fields table is the list of what custom fields you have.  'col_name' in SMF2 may not match 'variable' in your smf_themes table. 

When I made the fields with the same name in SMF 2, it added "cust_" and a bit to the col_name.  This was my fix:

UPDATE `thewes8_DraconityDB3`.`smf_custom_fields` SET `col_name` = 'Biography' WHERE `smf_custom_fields`.`col_name` = 'cust_Biog' LIMIT 1 ;
Everything is built from imagination.

jay.clark

Quote from: Garou on December 28, 2009, 11:18:02 AM
The Checkbox feature as they have designed it is a simple true/false or  actually yes/no designation.

I was finally able to make it work as you describe, however it does not do what I want it to do.

Basicly I am looking for setup functionality similar to the radio buttons, on registration or when they edit their profile I want the user to see either a standard pull down, or a table of check boxes that they can select or deselect.

In use when someone checks the user profile they would see an "Interests" listing that contained all of the items that the user had checked during registration or modification.
SMF 1.11- SMF 2.0 RC2/RC3 - - RSS Feed Poster 2.2,RSS Feeder 1.1.4, Downloads System Pro 1.0.17.1, SMF Classifieds 1.3.5, SMF Gallery Pro 3.0.2, SimpleDesk - Integrated Helpdesk for Simple Machines Forum 1.0 Felidae, Aeva Media 1.1b, Ultimate Profile     0.9, Google Analytics Code 1.1, Twitter and Facebook Publisher mod 2.4, Stop Spammer 2.3.7, SMF Links 2.2, Site map 2.1.2, AjaxChat Integration 3.2.1, Ad Management 2.3.6

SMF (Donated) SMF Links (donated) - Ad Manager (donated) - phpMyChat (donated)

LBizGrl

I tried using it with my 1.1.11 and it does not work. :( Are there any other ways to create profile fields? I wish it was default...LOL.
Smile! :)

It burns WAY more calories than a frown!

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

BLueSS

I made a post earlier

What I'm trying to do: Use a check box field as an option to enable code on *any page* not just profile pages. (ie: load the custom profile setting on index.template.php)

Is there any way of doing this?  My post had previous mentions of what I tried/better explanation.

B.SkiLLs

Quote from: LBizGrl on December 22, 2009, 12:30:11 PM
Can this be used in 1.1.11 yet?

Yes.. regarding this post and your other on last page.

Just go to mod page and under the download link select 1.1.11 and bring up manual install. Do the modsettings.php file yourself, reupload it and you should be good to go. If not still. Make sure it did not double up on code snips from the install itself.

so basically what you have to do is to edit that modsettings file.. then install package. it will let you then. But then you might have an error when u visit "features and options" tab. If thats the case re-download the modsettings file after install also. then open it up and check to see if doubles had entered around line 350 or 340.

Just did it and works fine. Need further assistance let us know. Also might have to edit the install xml file as well to set the intall to 1.1.11 inside the xml. (before upload and install step 1 here i posted)






VICKTORY THE UNDERDOG Documentary – Pitbulls the untold true story

This is a must read & watch. Then Buy your DVD today. You will not regret it. Totally AWESOME. Best i ever seen. --
 
____________________
Message approved by
: [B. SkiLLs]
 


gaz12321

I have just done a manual install for this mod on version 1.1.11 and when I go to the features and options page in the admin section I get the following error:

Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/liveforf/public_html/grassroots/Sources/ModSettings.php on line 184

Any ideas??

Kindred

looks like you either mis-copied some code or put the code in a place it does not belong.

look at line 184 and the previous 4-5 lines... I suspect that you are missing an echo statement or a closing semicolon or quote.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

gaz12321

Thanks for your help, I re-done the whole modsettings file and it worked so must have done it wrong the first time, cheers.

Jaymjaym

Is it possible to require a certain text be entered into a field?

I'll use this as an example;

If, upon registration, there was a description that said, "Type 'cookies' in the field".

Would it be possible, to have it so that in order to continue with the registration, the user must type "cookies" into the field?

I know it's possible to have required fields, but can we have required information inside of the required fields?

Kindred

no, that is not what this mod is for... there are other mods that do just that
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

psynx

hello,

i love this mod.

but i have one question. how about adding a custom profile field in the registration page such as an option for the user to upload its picture? or a required field to upload his/her photos during registration?

thanks.

BLueSS

Nobody has commented on this yet, so repost.

I made a post earlier

What I'm trying to do: Use a check box field as an option to enable code on *any page* not just profile pages. (ie: load the custom profile setting on index.template.php)

Is there any way of doing this?  My post had previous mentions of what I tried/better explanation.

Arantor

It may be, really really depends on what you're trying to do, especially as there may be a better way of doing it.
Holder of controversial views, all of which my own.


gastan

#2857
Using version 1.1.11 with default theme.

Is it possible to create a field with two check boxes and force a choice between them? 

What I would like to do is add a question to the registration form and force people to tick either a yes or a no box  --  just like they are forced to tick the "I Agree" box at the bottom of the registration page.

I have already added two text fields to the registration page that require input but am finding the check box and selection box choices confusing.

Thanks.

Kindred

no, I do not believe that is possible.

Although, you could maybe simulate that by using 2 radio buttons...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

kazu

This mod is great, but it doesn't work on my 1.11.11. I installed it and the custom fields are displayed everywhere except in posts even though I should be able to see the custom profile under the user count. What is wrong? I am using a different template than the default one so might that be what causes the problem?  :'(

Advertisement: