News:

Wondering if this will always be free?  See why free is better.

Main Menu

Custom Profile Field Mod

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

Previous topic - Next topic

perplexed

yeah its an existing problem, bit annoying but workable, it will be fixed in the next version I believe.  Just remember and do what James says above and you will be ok :)

Chris™

I did what you said and it still does not appear on the cebrus theme :(

Bazil Greyson

Quote from: Bazil Greyson on February 26, 2007, 02:26:55 PM
I am working on using this to replace pretty much the entire default profile page. One request I have from my members is this. Is there a way to hide from view, fields that are not filled in by the member?  For example.. if I didn't have an AIM name, then the blank field would not be seen by others viewing my profile.

Any suggestions on how to achieve this result? I am looking to have a long list of fields that members can fill in, but do not want empty fields to show on the profile page.

Chris™

Quote from: Chris™ on March 07, 2007, 12:22:36 AM
I did what you said and it still does not appear on the cebrus theme :(

perplexed

Quote from: Bazil Greyson on March 07, 2007, 02:22:51 PM
Quote from: Bazil Greyson on February 26, 2007, 02:26:55 PM
I am working on using this to replace pretty much the entire default profile page. One request I have from my members is this. Is there a way to hide from view, fields that are not filled in by the member?  For example.. if I didn't have an AIM name, then the blank field would not be seen by others viewing my profile.

Any suggestions on how to achieve this result? I am looking to have a long list of fields that members can fill in, but do not want empty fields to show on the profile page.

I have members on my site who have never filled in some of the custom profile fields I created, and they don't show up on the profile summaries.

Also, if I remove some of the info from the fields they did fill in, and make them empty again, then again, it doesnt show up on the profile summary :)

Bazil Greyson

Quote from: perplexed on March 08, 2007, 09:21:30 AM
I have members on my site who have never filled in some of the custom profile fields I created, and they don't show up on the profile summaries.

Also, if I remove some of the info from the fields they did fill in, and make them empty again, then again, it doesnt show up on the profile summary :)

Thanks for the heads up, I was always viewing it in admin mode or something. I reinstalled it just incase and it all works nicely now. That was my bad for not creating a dummy account to see things as a member.

LGLDSR

#1026
Is this mod functional now for 1.1.2?

Thank you!

Lyman

santanu

"Modification parse error"  when installing mod

neskiairti

yeah i have that error with the data transposing to each one as i move it.. quite frustrating.. seeing as i can switch it to what it should be.. if your using two "drop down menues"
one has 12 options.. and i wanted that one high up on the list.. so i move it up.. all of a sudden, i cant get the one with only 5 options back to normal.. i delete it and re-create it.. still has 12 options.. i suffered with just making 7 empty ones.
Moo!

do NOT milk the bull!

ckgb

Ok, I'm a bit lost. Is there instructions on how to create birthday field?

I've looked through the entire topic but was not able to find. Thank you

Bigguy

How do you mean a birthday field. ??? Where members input there birthday. ???  

GJ-tje

#1031
Quote from: ckgb on March 10, 2007, 12:45:53 PM
Ok, I'm a bit lost. Is there instructions on how to create birthday field?

I've looked through the entire topic but was not able to find. Thank you
Birthday is on a standard profile.
If you put in your birthdate, it will be seenable upon the calendar... ;)
And the age will get calculated on the profile
"People cannot gain anything without sacrificing something of equal value.
To obtain, something of equal value must be lost.
That is alchemy's first law of Equivalent Exchange."

"People should not be afraid of their Goverments. Goverments should be afraid of their People."

ckgb

Thanks I know that, but I need to have birthday on registration page.

Zetan

Hi, is there a way I can make the custom field use a Drop Down menu.
It's a great mod, but if a post contains very little text then the rest of the post is left with a large empty area.

I'd like the drop down to be after the Field title.


Regards



ZTN

SunilDVR

I'm trying to create an SQL statement which will select certain information from smf_members and the custom profile fields from smf_themes...

What I'd like to do is end up with something like this:

ID_MEMBER, CP1, CP2, emailAddress, memberName
1, Name, Membership Number, [email protected], ScreenName

and so on (note, CP1 and CP2 are "Name" and "Membership Number")

Because of how the mod stores CP1 and 2 (and so on, if you have more than 2 custom fields) in smf_themes, the best I've come up with is this:

SELECT smf_themes.ID_MEMBER, smf_themes.value, smf_members.emailAddress
FROM smf_themes, smf_members
WHERE (
smf_themes.variable = 'CP2'  OR smf_themes.variable = 'CP1'
)
AND smf_themes.ID_MEMBER = smf_members.ID_MEMBER
ORDER BY smf_members.ID_MEMBER


Which returns the information I want, but with 2 rows for each member thanks to the "OR" clause in the middle.

I'm not an expert on SQL, so any help would be appreciated...!

Sunil

Perfektionist

Hello.

Is there a way to let admins and global moderators view and edit the content of additional profile fields, while other user groups can't view and edit?

I ask this question since I don't want to grant admin rights to global moderators. Then of course I could have used the options "allow only admins to view/edit fields".

Still I want global moderators to manage incoming registration requests. Therefore they should be able to view the data in the additional fields before they approve new members.

I'd be glad about some help.

Regards,
Michael

paulthai

How can I get the information creating by Custom Profile Field?

Such as, the value of field CP1

Please show me the code....

I try by created the ssi_showprofiles in SSI.php.

Thank you....


function ssi_getprofiles()
{
global $context, $settings, $options, $scripturl, $modSettings, $txt , $sourcedir;

require_once($sourcedir . '/CustomProfile.php');


for ($i = 1; $i < 21; $i++)
{

             // This try to show the custom Profile Field.
echo ' ' . $modSettings['CP' . $i . '_name'] . ': ' . $modSettings['CP' . $i . '_???????] .  '<br>';

}



}

Davey D.

Reply #1013 - any help here?

GJ-tje

Quote from: davidkirk on March 12, 2007, 12:26:48 PM
Reply #1013 - any help here?
Referring to posts doesn't help with your problem.
Most users don't check back te pages to find post #1013... ;)

Maybe you can explain your problem once again?
Have you did somethings on own initiative? If you've allready tried something, we don'thave to suggest those answers, because you've already tried!
"People cannot gain anything without sacrificing something of equal value.
To obtain, something of equal value must be lost.
That is alchemy's first law of Equivalent Exchange."

"People should not be afraid of their Goverments. Goverments should be afraid of their People."

bkeritk

Hi, I'm getting these "test failed" errors (might be my smf version though - I'm running 1.1 RC1:



    Type  ActionDescription
1. Execute Modification  ./Sources/ModSettings.phpTest failed
2. Execute Modification   ./Themes/default/Profile.template.phpTest successful
3. Execute Modification   ./Themes/default/Display.template.phpTest successful
4. Execute Modification   ./Themes/default/PersonalMessage.template.phpTest failed
5. Execute Modification  ./Themes/default/Register.template.phpTest successful
6. Execute Modification   ./Sources/Register.phpTest successful
7. Extract File   ./Sources/CustomProfile.php
8. Extract File   ./Themes/default/languages/CustomProfile.english.php    

These are the current Packages I have installed:

    Mod Name    Version
1. Google Member Map   0.55
2. Users Online Today Mod   1.3.0
3. Member Color Link   1.87
4. Member Specific Permissions   1.32

SMF Version: SMF 1.1 RC1

Advertisement: