• Q: When will be supported mandatory accept of terms and conditions field?

    A: Has been always there: is as easy as adding a checkbox and setting “equal to” rule to YES.

    Q: What the Database options do exactly?

    A: Basically you can:
    - empty or drop extra fields or extra fields data (inserted by users)
    - reset or drop plug-in’s options

    Q: Yes but will this affect other data? It says “WordPress Fields table”, this is scary.

    A: No, it will affect _only_ the data produced by the plug-in. Really.
    Also keep in mind that if you do NOT have to restore default values or uninstall the plug-in, then you do not need to touch them.

    Q: Cimy User Extra Fields is not compatible with “Themed Login”, how can I do?

    A: The reality is this plug-in IS compatible with WordPress 2.1 or greater and “Themed Login” NOT, so it’s NOT a Cimy User Extra Field’s bug! However I have tried with a little success a workaround to make it works, but first please understand that this is totally untested and unsupported hack, if you want a better one ask the author of that plug-in to support new WordPress!
    If you still want *my* personal and unsupported hack edit the plug-in “Themed Login” and do these 3 modifications:

    1. at line 773, after “global $wpdb, $wp_query;” add this:
      global $errors;
    2. at line 811, before “if ( 0 == count($errors) ) {” add this:
      do_action(‘register_post’);
    3. at line 871, before “A password will be emailed to you.” add this:
      <?php do_action(‘register_form’); ?>

    Q1: I got “Fatal error: Allowed memory size of 8388608 bytes exhausted [...]“, why?
    Q2: I got blank pages after activating this plug-in, why?

    A1: Because your memory limit is too low, to fix it edit your php.ini and search memory_limit key and put at least to 12M
    A2: If you do not have access to your php.ini you can try this workaround (might not work)
    http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

    Q: Your plug-in is great, but when you will add support to add more than one choice in radio and dropdown fields?

    A: This feature is here since ages, for radio field just use the same name, for dropdown field read instructions in the add field area (in the plug-in).

    Q: Uploaded images are not resized, why?

    A: You should add php-gd module (under Ubuntu install php5-gd package).

    Q: Why big files are not being uploaded?

    A: Please check this website, tells you how to change your PHP configurations to fix this issue: http://www.radinks.com/upload/config.php

    Q: Why admin user cannot see all fields even if I set to do it?

    A: Probably you installed the first time WordPress on PHP4 and you experienced this bug: http://core.trac.wordpress.org/ticket/8317
    To fix the problem you need to create another administrator user and change admin user to another role and then back to administrator.

    Q1: I’m using your plug-in on WordPress MultiSite per-blog installation and when I register one user all Extra Fields are ignored, why?
    Q2: I get this error: ‘Fatal error: Call to undefined function cimy_uef_mu_blog_exists()’, why?

    A: Because you missed to move cimy_uef_mu_activation.php file please check carefully the installation steps.

    Q: I’m using your plug-in on WordPress MultiSite per-blog installation, I’m registering users on one blog but they appear on the main blog too, why?

    A: Because WordPress MS is designed like that and I can’t do anything about, however all extra fields and relative data are saved per-blog.
    Since I had already a long discussion with an user that didn’t believe this, don’t bother me to insist on this topic until you prove I’m wrong.

    Q: I’m trying to use a regular expression in the rules, but the check does not work as expected, why?

    A: Usually means your regex is wrong, please study how to properly build it: http://php.net/manual/en/function.preg-match.php

    Q1: I do not see Extra Fields under the page user-new.php can you add there too?

    Q2: How can I import new users with Extra Fields data into?

    A: Unluckily due to a WordPress limitation I can’t add Extra Fields into user-new.php but you can quickly add all the users you want using my plugin: Cimy User Managerhttp://www.marcocimmino.net/cimy-wordpress-plugins/cimy-user-manager/

    Q: I cannot edit neither delete some Extra Fields, usually after the 10th one, why?

    A: Your PHP server is probably limiting number of $_POST elements, Suhosin for example does it. Please allow at least 500 or more vars.
    http://www.hardened-php.net/suhosin/configuration.html#suhosin.post.max_vars

    Q: I am trying to change the fields’ order, but whatever I try it doesn’t work, why?

    A: First of all you need to select at least 2 fields if you want to change the order.
    Secondly if you change for example field n.1 to position n.3 be sure that field n.3 goes into another position and finally that a field goes into position n.1
    In short: every field should have a new position or at least the same one, but no positions can be skipped or be present multiple times.

    Q: When feature XYZ will be added?

    A: I don’t know, remember that this is a 100% free project so answer is “When I have time and/or when someone help me with a donation”.

    Q: Can I help with a donation?

    A: Sure, visit the donation page or contact me via e-mail.

    Q: Can I hack this plug-in and hope to see my code in the next release?

    A: For sure, this is just happened and can happen again if you write useful new features and good code. Try to see how I maintain the code and try to do the same (or even better of course), I have rules on how I write it, don’t want “spaghetti code”, I’m Italian and I want spaghetti only on my plate.
    There is no guarantee that your patch will hit an official upcoming release of the plug-in, but feel free to do a fork of this project and distribute it, this is GPL!

    Q1: I have found a bug what can I do?
    Q2: Something does not work as expected, why?

    A: The first thing is to download the latest version of the plug-in and see if you still have the same issue.
    If yes please write me an email or write a comment but give as more details as you can, like:

    • Plug-in version
    • WordPress version
    • MYSQL version
    • PHP version
    • exact error that is returned (if any)

    after describe what you did, what you expected and what instead the plug-in did :)
    Then the MOST important thing is: DO NOT DISAPPEAR!
    A lot of times I cannot reproduce the problem and I need more details, so if you don’t check my answer then 80% of the times bug (if any) will NOT BE FIXED!

1,436 Responses

WP_Floristica
  1. fango says:

    Great plugin!

    is it possible to add ALT text for uploaded pictures?
    in your ex. you now have alt=”description_here” (which you would need to put in the template), but if you would like the user/author to upload his own pic(s) he should also be able to input the ALT text for it.
    An option would be to add an extra text field for the ALT text but it would be (c)leaner if it was on the pic.
    Any ideas?

  2. fango says:

    second question (sorry): can a visual editor (tinyMCE,…) be applied to a textarea like in the Write tab? A user could then use html in an extended ‘About Me’ for example.

  3. Marco Cimmino says:

    fango:
    1) well can pe possible, we will see in the future
    2) don’t know, never tried

  4. Gaurav says:

    I am getting this error
    i am using 5+ version of both mysql and php
    with wordpress 2.3

    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 393216 bytes) in C:\wamp\www\aol\wp-content\plugins\Cimy_User_Extra_Fields\cimy_uef_admin.php on line 432

  5. Marco Cimmino says:

    Gaurav:
    yes this is a problem with your php configuration and memory allowed for script is too low.

    To fix it edit php.ini and in the memory_limit key put at least 12M

  6. Giovanni says:

    How could I replace the default “Authors & Users” with your plugin?

    I don’t want both admin listage of users, I need your plugin replace the default WordPress Authors & Users, and user Profile.

    is it possible to do ?

  7. Marco Cimmino says:

    Giovanni:
    no it’s not possible and also I don’t recommend it, you cannot delete users with my page (for now) ;)

  8. Wes says:

    I am shavinag some difficulty with understanding show to include an image outside of the loop.

    <img src=”" alt=”Special offer” />

    The image has been uploaded into the wp-content/Cimy_User_Extra_Fields folder, and shows in the admin. I am using WP 2.3.1

    I am sure I am just not using the correct tag.

    Anyone know show to make this work. Thanks in advance.

  9. Wes says:

    Try again with the code…

    <img src="" alt="description" />

  10. Palms says:

    I am having trouble setting up a password in order to register, what are the exact values you have to enter in the fields to make a password work?

  11. Wes says:

    How do I post my code so that it show properly in these comments?

  12. Marco Cimmino says:

    Wes: drop me an email, but you are asking support for how to use WordPress+PHP that is not given here.
    However write me and I will see if I can help you.

    Palms: don’t send me an email AND a comment here, because I receive twice, if you think 2 is better than 1, for me is not like this.
    To put a password add a password field with equal to rule set to the password and can be empty turned off, that’s all.

    FOR BOTH:
    Please READ the FAQ for how to report correctly a bug/request for support, I’m bored for how many times I’ve to repeat this.

  13. Erik says:

    Really great piece of work! Really appreciate that you are sharing it.

    However i get an a permission-error when using the picture and picture-url fields.

    Taking a quick look at line #413 ff.

    So i replaced:

    mkdir($file_path);

    with:

    $old_umask = umask(0); // from php.net - mkdir. makes sure mkdir sets propper directory-permissions
    @mkdir($file_path,0777);
    @chmod($file_path,0777);
    umask($old_umask);

    and things run smoothly. :) i recommend to include this in a next release.

  14. Marco Cimmino says:

    Erik:
    thanx for the good BR and fix, but chmod also is really necessary? Can you test without it and report back?

    thanx

  15. Erik says:

    if it is really necessary to create a folder, and you want to place files in there, yes i am pretty sure that it is necessary. i didn’t test again for chmod but i had this kind of problems with another plugin lately.

    in fact: in that other plugins case i also added the ftp_mkdir-method/hack for users with a server that has safe-mode=on (where there is the wrong owner applied to that folder). you can simply test this using if(ini_get(safemode)).

    furthermore i recommend to do the slash/backslash conversion for windows fail-safe. again: great plugin. sorry: no time for big debugging. it runs for me im happy. just my two cents for a broader compatibility.

  16. coloradoan says:

    Great plugin overall! One question:

    Is there a way to export the data contained in the extra fields?

    Exporting directly from the database is a mess.

  17. Marco Cimmino says:

    coloradoan:

    do you mean exporting in some format like Excel or OpenDocument?

    Not yet… but it’s not the first time that this request reach us, like MU support, probably we can put a way to contribute in development in this way.

    What do you think?

  18. FanBoom says:

    I cant get the fields to show up in my profile, how do I pull the data. Can I see some sample code?

  19. Marco Cimmino says:

    FanBoom:
    see readme file

  20. Jon says:

    This plugin is working fine for me in a development site, but I’m hesitant to use it in production because it stores the extended user data in its own table. Have you thought about making a version that stores the extended user data in WordPress’ own usermeta table?

  21. Marco Cimmino says:

    Jon:
    there is another project that does this, personally I prefer to have different tables in the same database, if there are bugs in the SQL code then at least doesn’t destroy usermeta data, for other plugins could you be so sure?

    If you can explain better why it’s an issue for you I can reply better.

  22. jerdna says:

    Happy New Year!

    I offer translation into Russian сimy.uef

    Also change for convenience of use сimy_uef_admin.php.

    Links to My Blog We4You: http://wcam.free-web-hosting.biz/?p=42

    Links to translation ru_RU: http://wcam.free-web-hosting.biz/wp-content/uploads/2008/01/cimy_uef-ru_ru.zip

    Links to change сimy_uef_admin.php: http://wcam.free-web-hosting.biz/wp-content/uploads/2008/01/cimy_uef_admin.zip

  23. Neil Stead says:

    I’ve had problems getting the uploaded pictures to appear in the users’ profile pages.
    Looking at the Page source, it seemed to be looking for http://www.mysite.com/wp-content/Cimy_User_Extra_Fields//

    This works OK if the WordPress address is the same as the Blog address (on the General options page).

    However, in my case, my Blog address is the site root, but my WordPress installation is in the /wp directory. In this case, it breaks.

    The solution is to use

    get_bloginfo(“wpurl”) instead of
    get_bloginfo(“url”)

    in Line 142 of cimy_user_extra_fields.php

    Cheers for writing such a great plugin – I’ve been looking for something like this for months!

    Neil.

  24. Neil Stead says:

    I also notice that the plugin checks throughout for current_user_has(‘Level_10′).

    I thought use of Levels was deprecated since v2.0 of WordPress? Really, the cimy Options page should be displayed for users with the “Manage_options” capability, and the A&U Extended page should be displayed for users with the “Edit_users” capability.

    I’m trying to work out what changes are needed – will post another comment when I’ve worked it out.

  25. Jon says:

    In reply to Marco@220:

    Not using wp_usermeta is an issue for me strictly from a philosophical standpoint. My understanding is the wp_usermeta table is designed specifically to hold extended user data.

    After looking at the other project, I’ve decided not to let the philosophical difference be a show stopper and to forge ahead with CIMY since it does everything I need.

    Or so I thought. You see, one of the extended fields I have is numeric — decimal to be specific. CIMY does not appear to support numeric data. The field in question will be editable only by the admin but will be visible in the user profile. It will have a default value of 0.00.

    If I want to be able to update the field from a proprietary plugin, can I change the data type to decimal in PHPMyAdmin and then use the wpdb object in my plugin to do the update? In CIMY, I’d need to mod the functions in cimy_uef_profile.php, right? Anything else?

  26. Jon says:

    Adding to my comment @ 224:

    I’m thinking I could minimize or eliminate the need to mod CIMY if I required my admin to apply any necessary manual updates to the decimal field using PHPMyAdmin. That workflow would not be onerous.

  27. Marco Cimmino says:

    jerdna:
    thanx for the Russian translation, someone already provided one to me, but I have so few time to work on plugins now due to my computer science thesis.

    Neil Stead:
    thanx will be fixed in 1.0.2, someday, as said ^

    Jon:
    I don’t plan to move data in wp_usermeta, due to possible bugs in SQL code and then data loss, this is never happened fortunately, but I prefer to be safe.
    If you don’t like just change plug-in, but I will not patch it to use that table, sorry.

    Just remember that if you change my plug-in then new source should be available to the public as GPL too, this is GPL license, if you don’t like avoid to do it because illegal!

  28. Jon says:

    In reply to Marco@ 226:

    No problem! Once I sat down with my plugin code (I wasn’t at my development computer when I posted yesterday), it became obvious I can use PHP type conversion and sprintf in my plugin to work around CIMY’s current data type limitation. I’ll be leaving CIMY as is. Thanks again for the plugin.

  29. Mattz says:

    Hi,

    This plugin is really great but I have some small issues/things that might be solvable on the registration page.

    1. On the registration page, the formfiels + test are printed at the top of the username field and are not lined up very well.

    Can this be more generic to the original signup field or can I move them under the email-address ?

    2. When I leave a field empty or fill in less characters than I have set in the admin panel, I don’t get any error to see on the register page for WP.

    Is this a small bug/issue ?

    Keep up the good work ! thanks !

  30. Mattz says:

    I also see that the extra fields only are visible by the admin, not by the user himself in his admin panel.

  31. Marco Cimmino says:

    Mattz:
    pls _read_ FAQ before reporting a bug.

    Do you have some plugins installed? Are you using WPMU?

  32. Mattz says:

    Hi Marco,

    I read the FAQ but I can’t find where I need to add those “Themed Login Lines”.

    As far as I know, I don’t use a themed login.

    Indeed, I am on WPMU where the amdin sees the Extra fields in the user-profile, but the user doesn’t see them in his own profile when logged in.

  33. Marco Cimmino says:

    Mattz:
    WPMU is not supported, in fact it isn’t even mentioned in the readme file.

    It’s asked tons of time to support it, but none seems interested in paying for it, so for now is not planned.
    If some people want it then join together and buy some hours of code.

    thanx

  34. Mattz says:

    Hi Marco,

    Sorry to hear that, but it’s a great plugin.

    Because of the OpenSource thought I will nog buy coding hours, we better can make our own plugin in that case.

    I have seen a lot of requests about it on the WPMU forum as well, so there is a need by a lot of people :)

  35. Marco Cimmino says:

    Mattz:
    so because it’s “open-source” then you cannot pay but if it were closed then yes? Nice way of thinking…

    Anyway feel free to start adding MU support and send me patches.

  36. Mattz says:

    I don’t use closed source code that often actually so I don’t know.

    It depends on the needs. If I can manage to make it work with the MU version I will let you know, that is nice thinking I guess ;)

    I could also make a patch for source plugin and place it on a seperate site but that is not the best idea to keep stuff centralized.

    Opensource in my opinion is… help each other where you can both ways.

    So I will let you know if I changed the code to work with MU.

  37. Marco Cimmino says:

    Mattz:
    or your idea of opensource is never pay for things that you use?

    Keep in mind that a lof of opensource projects sometimes ask for money, for what I know in Linux for example they did the same:
    KDE, Amarok, K3B and a lot of others.

    So probably your idea of “opensource” should evolve a bit.
    Remains the fact that patches/translations are also welcome.

  38. Mattz says:

    I understand that hours need to be paid but when a developer of software says you can buy some hours of coding when a user is testing it and sees an option is not working or there might be missing something is not OpenSource also.

    Check the WP forums, everyone is hacking others plugins to help each other.

    I will see if I add some code to this project.

  39. Marco Cimmino says:

    Mattz:
    WPMU isn’t simply “an option”, is a big part of code and I never said that is supported so it’s not like a bug, but a missing support of another very different platform.

    Anyway you have a distorted way of thinking opensource, yes people help each other, I did also (I have also sent a patch against WordPress) however sometimes getting into the code of another person is not so simple, so sometimes it’s just easier pay the main developer.
    As I said very often happens, if you never did this doesn’t mean it’s NOT “opensource”.

    Anyway try it and let me review patches, I will wait for them.

  40. Jon says:

    Hi Marco,

    I have an extra field that is not displayed in the reg form but it does have a default value; the default value is “0.00″. The field can only be edited by the admin.

    Should a row get written to the CIMY data table for this field when the registration form is processed?

    Reason for Asking:
    When I first started to use CIMY, I believe I remember that a row for this field was written to the CIMY data table when the registration form is processed. This is the behavior I would expect.

    Currently a row is not written to the CIMY data table. If I change the field rules to make the field visible in the reg form, a row is written. This would be OK except that the field is editable in the reg form, which is definitely undesirable.

    CIMY v1.0.1 (but I started with v1.0.0 and it’s possible that the undesirable behavior didn’t happen until I upgraded)
    WP v2.3.1
    PHP v5.2.4
    MySQL v5.0.45

  41. Mattz says:

    I think I have good news.

    I see some MU code in v1.0.1 and also have seen that you have to enable the plugin for all users, when you do that the users have their own “extra fields” part too in their profile.

    OK, so that is working.

    I think the only problem can be signup, I will test that right away following your post here:

    http://www.spunpuppy.com/archives/2007/10/03/getting-cimy-extra-user-fields-working-in-wordpress-mu/

    I think we are on the good road :)

  42. Marco Cimmino says:

    Mattz:
    yes, fix the “only” problem of signup, ah and remember that WordPress MU doesn’t work as WordPress and have a “waiting room” for new registered users.

    So you have to put extra fields data in the waiting room too.
    So if you think that we are getting closer (personally I don’t) start to help each others and provide patches well written, that doesn’t produce new bugs and are only specific for MU platform.
    Then test them in your platform both in MU and then non-MU to avoid regressions, then send to me. If you will not do like this then I was right when I think that some people just want free works ;)

  43. Marco Cimmino says:

    jon:
    editable thing is related to edit not to new, this is why you can add new data even if you set do not edit, because registration is NOT editing, this is the way I think.

    Anyway yes, default behavior is applied only IF the field is present, so I have to think about this, it’s a very special case, thanx for reporting it.

  44. Mattz says:

    Marco,

    Sorry, I don’t really get you, I’m just trying to make you plugin work on MU too…

    Too bad, I have the idea you don’t like it at all.

  45. Marco Cimmino says:

    Mattz:
    I like people that works or help others working providing money, so if you provide patches you are welcome.
    If you are here just to waste my time saying me things that I already know and at the end the dirty work I will have to do myself just becuase you think opensource=no money then yes I don’t like at all.

    I repeat: provide patches, start coding now, don’t write any other comments.
    You said that you are closer right? Let me see.

  46. Jon says:

    In reply to Marco @ 242:

    I am able to work around this easily in my application.

    Just to make it clear, the special case you should consider is the case where the field
    * is editable by admin only
    * has a default value
    * is either hidden or displayed read-only in the reg form

    In my app I would have preferred CIMY to write a row to its data table for this field when processing the reg form submission.

  47. Mark says:

    Hello,

    Part of your readme appears to be truncated. Can you tell me how the section below should read? Thanks!

    ENABLE PICTURE UPLOAD:
    - to enable picture uplaod you must modify three WordPress files, there is no way to upload file without

  48. Marco Cimmino says:

    Mark:
    oh my god!

    Such a stupid bug and none said to me (and I also never noticed), so thanx.

    Anyway that line is obsolete (survived from deletion), there is no need to modify any WP file, just read “HOW TO USE PICTURE SUPPORT” section, in the second half of the file.

  49. Mark says:

    Thank Marco! I will read that. :)

  50. Nathaniel says:

    Is there any way to set/change an extra field outside of the profile?

    My particular application of extra fields is used to store user ID’s for various free traffic services. I want to change the way users enter this data. Or perhaps you might have tips for modifying the plugin such that I can display linked banners above each one, and a label before and after the text box.

    Also, do you have any advice for how to make a poppup link for people to view terms and conditions, in combination with extra fields? Currently, adding code in that label, results in the code being shown instead of executed.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>