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

ehsizzup

Quote from: Kindred on May 09, 2009, 09:34:33 AM
the data from custom fields gets added into the smf_themes tale of the database...   search for anything with CP

The entries are not being made into smf_themes during the registration process....but if i go into the Forum Profile Information page I can see the custom field (and it's blank).  If I enter something manually and click "Change Profile" it will accept it and successfully write it into the database.

I must be something in the registration portion.    Would it generate an error log somewhere if there was one?

Thanks.

Gerry.


ehsizzup

Quote from: ehsizzup on May 09, 2009, 11:27:16 AM
Quote from: Kindred on May 09, 2009, 09:34:33 AM
the data from custom fields gets added into the smf_themes tale of the database...   search for anything with CP

The entries are not being made into smf_themes during the registration process....but if i go into the Forum Profile Information page I can see the custom field (and it's blank).  If I enter something manually and click "Change Profile" it will accept it and successfully write it into the database.

I must be something in the registration portion.    Would it generate an error log somewhere if there was one?

Thanks.

Gerry.

Apparently, I am an idiot. 

You must set the field to editable by members or it wont write the custom field during registration.  I thought that preference referred to after registration only.

Thanks for the help....

g.

alexandervba

How can I edit like this: (for a clan forum, meaning we have guests, members & leaders aka admins).

Guests CANNOT edit a field.
Members CAN edit this field for their own.
and admins CAN edit any fields.

At the moment its like either admin only edit, or every can edit... ANy1 please help?

thx!

Lex-BY

I'd like to post here a feature request.

If you have created an option for "selection box" field, you can not remove or move Up/Down this option anymore. Please, add [ Delete ] , [Move Up] & [Move Down] buttons for existing field options.

digit

I understand this mod is not going to be further developed...   since it is incorporated into 2.0 - but I'll give this a shot anyway  ;D

I have a custom profile field entitled "location".

I was just trying to add a field to MY search members form....  like...  http://www.simplemachines.org/community/index.php?action=mlist;sa=search

<label for="fields-location"><input type="checkbox" name="fields[]" id="fields-location" value="location" class="check" /> ', $txt['mlist_search_location'], '</label>

When trying to run a search for location, I am getting a syntax error.... 

Database Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIKE '%texas%'
AND is_activated = 1' at line 4
File: /users/Sources/Memberlist.php
Line: 465


Looking at line 465 of Memberlist.php...  I see....

$request = db_query("
SELECT COUNT(*)
FROM {$db_prefix}members AS mem
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))
WHERE " . implode(" $query OR ", $fields) . " $query$condition
LINE 465----> AND is_activated = 1", __FILE__, __LINE__);
list ($numResults) = mysql_fetch_row($request);
mysql_free_result($request);


Is there anyway to make these pre 2.0 custom profile fields searchable?  That would be a HUGE bonus at my site.

Thanks in advance.

digit
Happily using a heavily modified 1.1.16 version of SMF!

2748011 Posts in 320998 Topics by 50986 Members


SOLD my website - thanks it was a good run - they converted to vbadvanced. (and screwed it up good!)

tjhanes

I thought that this feature was supposed to be in the 2.0 version? I just installed 2.0 and I don't see custom fields anywhere. Can someone direct me to it? or if i misunderstood, let me know that too. thanx.

Kindred

turn on Advanced profile fields in the configuration > Core features
configuration > features and options > profile fields
Сл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."

tjhanes

Quote from: Kindred on May 12, 2009, 08:46:58 AM
turn on Advanced profile fields in the configuration > Core features
configuration > features and options > profile fields

Awesome, thank you!

Lithriel

#2528
QuoteI have a really dumb question.  I just installed this MOD, and it seems as though the Custom Fields are for things like Skype and other things like that, but what my intent in using it is for Phone Numbers and such.  Things that don't necessarily link to anywhere.

Can someone please run me through what I need to put in each field?  I am very confused.

Thanks,
victoryrock

This is just what I want to do, but can't!  Um, I've been trying to figure this out, and I am not finding anything in my search attempt of this topic- so- How do I get my custom field to act like the current AIM and MSN links?  I just want a DA link added.

Right now, I have the custom field set as text, and I have parse BBC selected.  I have the prefix as

[url]http:// and the suffix as .deviantart.com[/url]  Then the user enters their user name and a very long link appears under the avatar.

I want a DA icon to show up instead of the entire url.  Basically, I want it to be just like the AIM and MSN chat icons (and positioned right next to them).

Anyone know of a way?

EDIT:  After searching for hours before coming across this: http://www.smfsupport.com/support/guides_and_tutorials/guide_custom_profile_fields-t3061.0.html I realized I needed to change my code to this:

Prefix: [url=http://
Suffix: .deviantart.com][img]Themes/hero/images/da.gif[/img][/url]

Works like a charm!  Now it's time to go take an asprin.  O_o 

alexandervba

Quote from: alexandervba on May 10, 2009, 12:25:22 PM
How can I edit like this: (for a clan forum, meaning we have guests, members & leaders aka admins).

Guests CANNOT edit a field.
Members CAN edit this field for their own.
and admins CAN edit any fields.

At the moment its like either admin only edit, or every can edit... ANy1 please help?

thx!

I really need some help here, any1 can gimme a start please? I can probs do this myself if u tell me how to start...

Lsd_Monster

when i add 1 field for registration page,it gives me 2 of them on it....any support?

mcgiwer

Nice extension, but I have an suggestion how to improve it to make it better.

My idea: add an 2 select boxes (one for add and one for remove)  with number values.


Explanation:

User could use it to type how much fields he (or she) like to add (or remove).

The maximal count of fields should be configurable from the administration panel.
Michal D.
IT i Technika
Komitet Obrony Demokracji (KOD)
KOD woj. Dolnośląskie

Kindred

as previously notes, this mod is no longer being developed, because custom profile fields are standard in SMF 2.0
Сл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."

TashaElizabeth

#2533
Quote from: Kindred on May 20, 2009, 09:26:30 AM
as previously notes, this mod is no longer being developed, because custom profile fields are standard in SMF 2.0

shame too, cuz i wont be upgrading as most of my installed mods arent supported.....


however, if we are still permitted to ask questions on this one:

my custom field is a checkbox.

i have text displayed when the box is check, and have input text to be displayed when unchecked.

the unchecked text however, does not display.

i am using a custom theme.  anyone can point me in the direction of where to look?

balcen

I installed custom-profile 3-20 on SMF 1.1.9 successfully without "failed tests" on the components.

However, when i am clicking on "Features and Options" it is giving me a blank page.

Any idea why?

Thanks in advance.

Kindred

suspect: English versus English UTF-8  (more specifically, make sure your board is running in English, not English UTF-8...   OR add the text strings into your modifications.englishutf8.php
Сл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."

Uncle Don

Is this an ongoing thread for any questions on the Custom Profile Mod?

I want to add "Display name"  and "Graduation Year" to my registration page.  I have successfully applied the mod and added the two fields.  When I test it and look under members list it does not show up.  When I login as admin. and look in the members list both items are there.

Now, How do I add this information to the members list for all to see?  How do I enable the search option so that people can search members by graduation year?

I can be reached via msn [email protected] or email at [email protected].

Thanks for anyone willing to help me with this.
In times like these it is wise to remember that there has always been times like these. - Paul Harvey

balcen

Quote from: Kindred on May 26, 2009, 06:09:38 PM
suspect: English versus English UTF-8  (more specifically, make sure your board is running in English, not English UTF-8...   OR add the text strings into your modifications.englishutf8.php

thanks for the reply Kindred. I am running english, NOT english UTF-8.

How do i add or what should i add in the modifications.englishutf8.php.

Thanks in advance.

Kindred

Uncle Don,

This mod does not add anything into the memberlist-list. It only adds the fields into profile, registration and the message display.  There is no search option by field.

If you want that, you should upgrade to SMF 2.0.


Balcen,

I am not sure off the top of my head. Look in modifications.english.php and find the custom profile txt strings and then copy them into the other file.
Сл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."

EDSucation

I think that this mod is conflicting with my Custom Tab mod because I took a look at the Manual Install Instructions, and where it wants me to place this


'profile' => 'ModifyProfileSettings',
);

// By default do the basic settings.
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
$context['sub_action'] = $_REQUEST['sa'];



Where this is

);

// By default do the basic settings.
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
$context['sub_action'] = $_REQUEST['sa'];



I get this instead


);

$subActions['custom'] = 'ModifyCustomTabSettings';

// By default do the basic settings.
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
$context['sub_action'] = $_REQUEST['sa'];



What can I do?
Thanks,
EDSucation


Advertisement: