Custom Profile Field Mod

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

Previous topic - Next topic

Kindred

not by default.

These fields are added into the themes table and associated with the specific user...his information is not searched.
Сл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."

Klabautermann

And is it possible to make them searchable? And does this make sence? Or is there a better way?

TrueSatan

Many things are possible but this would require a good deal of coding.

AnimationEmpire

Okay, I think you missed my question :'( so I'll repost it right here (it is edited a little also):
QuoteHi, I really like your mod but have a question. How can I get the variable elsewhere. For example: If I have a field called Level how can I get that variable for a member somewhere else.
Better Example: Their is a custom field called Level. On one of the pages it has to be a certain number to view the content.
Is this possible and how would this be done?

badams

OK.....I've installed this MOD and I like it....but..... :-\

Is there any way to change the size of the textarea???  I need a textarea about the size of the Signature area in the profile....

Or did I miss something along the way in reading this thread???

Kindred

AnimationEmpire...  Please read through this thread. It has been discussed several times how to access the information from these fields. (not specifically as you indicate, but the code has been posted on how to pull the data form the SQL table. The rets of the logic would be up to you, once you have the data.
Сл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."

Coyote90

Just a quick question,
why do you save the data in smf_themes and not in smf_members or in a new table dedicated to the mod ?
it would be more convenient to use after...

Kindred

because that's how most mods save the data specific to users...

Modifying the members table could cause problems with an upgrade later and creating a new table associating each field with a user is duplicating effort (the themes table already does 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."

fiver

#1648
I have these in Forum Error Log:

Quote
...index.php?action=featuresettings                                                                                       
                        8: Undefined index:  path
File: /.../Themes/default/languages/CustomProfile.english.php (main_above sub template - eval?)
Line: 107

.../
index.php?action=serversettings;sesc                                                                                       
                        8: Undefined index:  path
File: /.../Themes/default/Admin.template.php (main_above sub template - eval?)
Line: 107

...
/index.php?action=featuresettings                                                                                       
                        8: Undefined index:  path
File: /.../Themes/default/languages/CustomProfile.english.php (main_above sub template - eval?)
Line: 107

.../index.php?action=admin                                                                                       
                        8: Undefined index:  path
File: /.../Themes/default/Admin.template.php (main_above sub template - eval?)
Line: 107

.../index.php                                                                                                               8: Undefined index:  path
File: /.../Themes/default/BoardIndex.template.php (main_above sub template - eval?)
Line: 107








Using smf 1.1.4


Anyone knows how to fix this please? Thanks

Matthew Schenker

I just installed this modification and it definitely helps me get required fields for registration.

One question: how do existing members access the custom profile fields?  In my forum, I need members to identify their international region.  I want to require it during registration, but I also want existing members to add the information to their profile.  How do I make this work?

One more question: is there a way to require action from existing members?

Thanks!

TrueSatan

Identifying country might be better handled by the Country Flags mod and that has the controls you mention...save for the existing members function...you could get round that one by using the updated registration agreement mod and putting in text to tell the members to fill in the profile details.

porkins

I was able to install this mod successfully on the newest version, but what I need is for the initial registration page to just display first and last name fields, so that when I get the message to approve the user, I can see who it is by name, rather than just by the username they chose and e-mail.  How would I go about doing this..?

TrueSatan

You would require a custom registration mod (or edits)...such features aren't part of this mod's remit.

porkins

If the code modification is simple enough.  Could someone please post the code?  I am not very good at php and would have assumed that such a feature would have been built in, given that enabling approvals is mostly useless if you are unable to know who you are approving by name.. :(

TrueSatan

You should post on the mod requests board asking for a new mod...you may or may not get somebody willing to do the custom coding for you there.

Matthew Schenker

Quote from: TrueSatan on January 11, 2008, 12:50:46 PM
Identifying country might be better handled by the Country Flags mod and that has the controls you mention...save for the existing members function...you could get round that one by using the updated registration agreement mod and putting in text to tell the members to fill in the profile details.

In my case, members are not necessarily stating what country they are from, but rather what region they are from, based on pre-arranged international groupings, kind of like "North America," "Asia," etc.  So the flags won't work.

I like the idea of combining this with the updated registration agreement system.  Of course, my goal is always to keep the number of modifications down as low as possible!

Thanks for your help!

myaicons

does anybody know if this mod does this:

if a checkbox field is added and has been checked (yes)... other text fields will show to be filled in...

almost a permission based field?

i scratch your back you scratch my back...
funny thing about my back is its located on my...

Bigguy

No not that I know of. You could request it maybe here in this thread.

AnimationEmpire

I tried the searching but only got 1 result for some reason. I've tried searching with different browsers but it is still not working. So would you please just tell me how to incorporate SSI. I have tried almost everything. The one thing I did find did not work:
Quote from: winrules on April 09, 2006, 02:22:08 PM
Quote from: SamyWeb on April 09, 2006, 01:28:44 PM
Hello! Thank you for this grat MOD! :)
I would like to know if it's possible to use in SSI functions some conditions links to a user's field.. i.e.: All members who has choosen a particular option in the select field, they will see calendar events in my home site.

If you don't have ideas for my questions, I ask you only where I can find the column in which are stored data for this mod.

Sorry for my english...

Thanks very much!

The data's stored in the themes table. If you want to access it with ssi, you could wait until next version :) or find:

setupThemeContext();


and add after:

require_once($sourcedir . '/Profile.php');
loadThemeOptions($context['user']['id']);


havent tested it though...but it should work.
when you add that you can use

$context['member']['options'][fieldID]

So you could do something like

if ($context['member']['options']['someoption']=='First Page')
//first page
else
//second page



Quote from: mitchell784 on April 09, 2006, 01:39:35 PM
Is there a way to use this on a different theme besides the default one?

Ok I read how to do it.

But I dont know I am just having trouble using this.
And I cant delete a field...

How do I go about doing that?
You can just disable fields. just find the code it says to find, and replace it with the code it sayd to replace.

If you tell me no again, I will stop bugging you and just read through all 83 pages (which I have already started.

Thank you for making this mod though. It is very helpful.

Sincerely,
Animation Empire

badams

OK.....I guess my question was overlooked....so, I'll post it again....

Is there any way to increase the text area of the input field??

I've searched the boards and even played a little.  So, let me explain what I want to do....then maybe someone can point me in the right direction.....

What I'm looking for is a Biography section that members have to fill out during registration and it appears in the members profile.

I started out playing with "Adding a Biography Section to A Users Profile"......

http://www.simplemachines.org/community/index.php?topic=115547.0

The problem with the above is when you view the members profile and the member hasn't entered anything in the  Biography Section in other words the section is empty.....then it generates an error in the forum error logs.  The person who created this appears to no longer offer support.

The custom profile mod appears to perform what I want to accomplish with the exception that I need the input text area increased......

It would be nice to incorporate the two, but that's just wishful thinking......

Is there any way that I can increase the textarea for a Biography type of entry?  That's really all I'm looking for.....

I know very little PHP.....so, any help would be greatly appreciate.

Thanks.

Advertisement: