News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Custom Profile Field Mod

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

Previous topic - Next topic

Kindred

You installed twice.... You will have to manually remove the duplicate code
Сл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."

rfscholl

Where do you see it displaying the age?  I have two fields defined and have them set to display in the profile page, but I don't see them anywhere.

Thanks.

rob54

I installed this mod originally in December 2009 when it was at version 3.19.

I recently changed one if the fields to a dropdown and I am getting people applying to join with words appearing in that field that are not one of the options. They are obviously time wasters as the text replies in the other fields are nonesense.

How is it that someone can get something in that dropdown field that is not one of the options? Attached is what the registration looks like to someone registering.

Would installing version 3.20 help and if I did would it mess with what I have already?

johnpdmccall

Hi, sorry for being thick but where do I find out where the data for my custom profile fields is being stored?
The mod works great and is so so useful  :)
I've been looking at my MySql database and can find the members table but can't find the custom profiles data there or anywhere. Any help is much appreciated.
Cheers
John

Kindred

smf_themes table


Quote from: Kindred on October 19, 2010, 04:20:35 PM
Quote from: Kindred on March 19, 2008, 05:36:58 PM
BTW: To convert this to the standard 2.0 custom fields...
UPDATE `smf_themes` SET `variable` = '*NewFieldName*' WHERE `variable` = 'CP1';  (or CP2, or CP2, etc)
Сл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."

johnpdmccall

Cheers
John

Unilein

Great mod! :-)

But how to read them with php from within a block of the "SimplePortal" mod?
Or just: how to read them from the DB?

Thank you for your help

Greetz
Uni

Kindred

column names are listed in my previous post
Сл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."

opheliagrimm

#3068
Quote from: Kindred on February 24, 2011, 06:12:33 PM
I posted this 3 years ago...

Quote from: Kindred on March 19, 2008, 05:36:58 PM
BTW: To convert this to the standard 2.0 custom fields...
UPDATE `smf_themes` SET `variable` = '*NewFieldName*' WHERE `variable` = 'CP1';  (or CP2, or CP2, etc)

kindred, while this guidance works.....there is one caveat that may have caused trouble for novice forum admins like myself.

That is, SMF 2.0 creates a custom field name for the custom profile fields. I actually populated the field for one member and ran a query in phpmyadmin to reveal the correct ID to use in your magic formula.

For clarity:

My old Custom Profile Field in SMF 1.1.13 for "Favorite Ice cream Flavor" is CP3

My new Custom Profile Field in SMF 2.0 RC5 for "Favorite Ice cream Flavor" is  FavIceCream

However, in phpmyadmin the field is created automagically as "cust_favicec" by SMF 2.0 RC5 and NOT FavIceCream

so my SQL script reads like this:

UPDATE smf_themes
SET variable = "cust_favicec"
where variable = "CP3"

and not

UPDATE smf_themes
SET variable = "FavIceCream"
where variable = "CP3"

Hope this helps someone.

And just want to say thanks again to the author for this awesome mod. It was truly a joy to install and use over the past few years.

Almost sad to leave it behind in our move to SMF 2.0 Gold.



sunmixed

I know this mod was posted some time ago but i am new to SMF. i'm running version 1.13 and installed your mod to add a text field to the registration page which i have successfully done. i want that field to show up in the users profile but it doesn't even though i've checked the box "show in profile". the reason i downloaded this mod is that i want to use this custom field to verify that new registrants are part of our organization before i grant them access. therefore i need this field would be visible in the profile of members awaiting approval. will it be visible there? my settings for this field are: show in profile: checked, show in posts: no, parse BBC: checked, text to display: none, field id: CP1, add rule: no, show field: force input, only allow admins to edit field: checked, only allow admins to view field: not checked.

Thanks, Larry


Kindred

are you running in the default theme?   Do you have some other profile mod, like ultimate profile running?
Сл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."

sunmixed

sorry. i'm using the default theme and i have no other mods installed

razors edge

Will this mod be updated for 2.0 RC5?


grafitus

SMF 2.0 is already include this feature name Advanced Profile Fields.

Gorm

With the risk that this has already been raised

I want to migrate the content from this mod to SMF 2.0. On several occasions in this thread it is said that custom fileds are saved in smf_themes (even in 2.0) but in my database it is saved in smf_custom_fields. I have not got any profile mods installed and are not using the default theme (using Headline).

Thanks!
Johan

Kindred

If you are using this mod, then the data is saved in the themes table. I can not answer for the data if you modified itnfurther or used a different mod.
Сл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."

Gorm

Thanks for the quick reply! I have'nt modified this mod. The issue was regarding the posibility to migrate the content from the fields in smf_themes (from this mod) to the native custom filed fature in SMF 2.0 (which is apperently are stored in smf_custom_field in the database).


/Johan

Gorm

I guess I have to move the created fields from this mod to smf_custom_fields somehow. Have anyone attempted to do this?

/Johan

Tapsa2

I'm also having the same trouble converting this mod to 2.0 profile fields.
Looks like 2.0 is saving the data to smf_custom_fields table now, and i don't know a way to move the data from smf_themes table


Suomi - Finland

Kindred

hmmmm.....   try this:

Do my original instructions for renaming the fields in the smf_themes table and then re-run upgrade.php


remember --- ALWAYS take a backup before doing anything like this! !!!
Сл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."

Advertisement: