WordPress.org

Ready to get started?Download WordPress

Forums

WP-Members
[resolved] Request Seperate Message Box CSS Classes (7 posts)

  1. JamesAndersonJr
    Member
    Posted 1 year ago #

    Hi Chad,

    I have just installed wp-members on my WP blog. It was in a really rough form when I got it, but I have since added some polish (though I couldn't fix everything wrong with it).

    My Request is this: Could you please separate the messages by CSS class, such as informative messages, error messages, and success messages? I would like to make my success messages green, my info either blue or grey, and my error messages red (Yes I'm a UI Design freak, and want things to look their best). Here is a screenshot of how all my messages look now: http://goo.gl/k9F1r

    ...and, incase it matters, here is my home-brewed theme (though you have to view advertisement to download it, to give me credit for my work.): http://ow.ly/fz5Dc

    I want to know why [by default] there is SO much space around the messages. Is it something I've done wrong in the CSS?

    Also, where is the "English" language files that I can change the registration form title from "New Users Registration" to "New User Registration" (which makes a lot more sense).

    Please, message me back soon and let me know if my inquiries will be addressed in a later version of the plugin.

    Thanks,
    -James A.

    http://wordpress.org/extend/plugins/wp-members/

  2. Chad Butler
    Member
    Plugin Author

    Posted 1 year ago #

    It was in a really rough form when I got it, but I have since added some polish (though I couldn't fix everything wrong with it).

    Really? That's how you start off your request - by insulting my work? You are making a subjective statement as if it were something objective, which it is not.

    Could you please separate the messages by CSS class

    If I do end up doing something in this area, it will probably be adding a filter hook for the class. There is currently a filter hook for the dialog message, but this filters the content of the message only and not the full html string. (BTW, there is a filter hook for the login failed message dialog that does include the string, so you could filter the class for that. See: http://rocketgeek.com/plugins/wp-members/users-guide/filter-hooks/wpmem_login_failed/)

    I want to know why [by default] there is SO much space around the messages.

    The original (default) was developed when TwentyTen was the default theme, so it probably looked good to me in that theme. But again, you are making a statement about something subjective.

    Also, where is the "English" language files that I can change the registration form title from "New Users Registration" to "New User Registration" (which makes a lot more sense).

    It's ironic that you make a grammatical error in your statement regarding grammar ("where is... the files"). You can filter this with the wpmem_register_heading filter (see: http://rocketgeek.com/plugins/wp-members/users-guide/filter-hooks/wpmem_register_heading/).

    Please, message me back soon and let me know if my inquiries will be addressed in a later version of the plugin.

    You set the tone for this post with an insulting statement, did not even one single time mention anything good about the plugin (which you received free of charge), and then you ask for a quick response? Consider yourself lucky to get any response.

  3. JamesAndersonJr
    Member
    Posted 1 year ago #

    Really? That's how you start off your request - by insulting my work? You are making a subjective statement as if it were something objective, which it is not.

    I'm very sorry chad for that statement. But please understand, many people that know me well say that I sometimes speak before thinking twice, so please know that that was my fault, and not yours (*puts foot in mouth).

    Also what I meant was that I had to make some styling adjustments to fit well with my theme (Neuro Pro -by Cyberchimps). The design as it was looked good especially for the default WP theme, but did not match the theme I was using. I think you did a good job on the plugin mechanics as well.

    You set the tone for this post with an insulting statement, did not even one single time mention anything good about the plugin (which you received free of charge), and then you ask for a quick response? Consider yourself lucky to get any response.

    Again I apologize Chad. I'm beginning to understand why many wise people say the tough can set things ablaze! Please, accept my sincere apologies. :-(

  4. JamesAndersonJr
    Member
    Posted 1 year ago #

    If I do end up doing something in this area, it will probably be adding a filter hook for the class. There is currently a filter hook for the dialog message, but this filters the content of the message only and not the full html string. (BTW, there is a filter hook for the login failed message dialog that does include the string, so you could filter the class for that. See: http://rocketgeek.com/plugins/wp-members/users-guide/filter-hooks/wpmem_login_failed/)

    Please, excuse my ignorance, but I don't know WP lingo yet, as I'm just now becoming a WP developer. All I know, and am well-versed in, is CSS, HTML,DHTML, JavaScript, PHP and a little bit of JQuery. As such I don't know what the "filter hook" is. What I do now to style is use my Firebug to isolate and target an element (whatever it may be), and put in the needed style into either the external style sheet as "!important" or use my WP themes means to edited in inline style in all or only some of my pages.

  5. JamesAndersonJr
    Member
    Posted 1 year ago #

    Hey Chad,

    Please tell me what you think of this theme (Please, note it has been updated with new css, if you've visited it at the above link before, and there still will be brief advertisement to give credit for my work meant not really for you but for curious onlookers): [ redacted, we don't do ad links here ]
    And I hope you're still not upset with me, because I have a new request:

    Could you provide a textbox field in WP-Admin -> Settings -> WP-members -> Options where you can customize a page where users are first taken when they first login, because right now there is no way to set that in options (if there is please let me know how).

  6. Chad Butler
    Member
    Plugin Author

    Posted 1 year ago #

    No problem - I'm over it...

    A good place to start is with hooks. Hooks are places in the code that you can "hook in to" with your customization. Some are filters, which allow you to filter or change something programmatically, and some are actions, which allow you to do some action. This is what makes WordPress itself so extensible.

    WP-Members uses the same API as WordPress so that you can customize your use of it without making changes to the plugin code. Making changes to the code is bad because you would have to do that anytime you upgrade.

    If you want to customize where the user is directed when they first login, you would do that by hooking into wpmem_login_redirect (see: http://rocketgeek.com/plugins/wp-members/users-guide/filter-hooks/wpmem_login_redirect/). That could be something as simple as redirecting users to a specific page when they login, or something more complicated like redirecting first time users to the change password dialog so the change their password right away (see: http://rocketgeek.com/filter-hooks/redirect-a-user-on-first-login/). What you do with that is only really limited by your knowledge of PHP.
    There is a list of hooks for the WP-Members plugin here:
    http://rocketgeek.com/plugins/wp-members/users-guide/filter-hooks/

    As I mentioned originally, there is not filter hook for the message class, except in the case of the login failed message. But I will probably be adding on there as I think that's a good idea. I'm always looking for places that new hooks make sense.

    As far as customizing the CSS, this is probably a good place to start:
    http://rocketgeek.com/plugins/wp-members/users-guide/customizing-forms/

  7. JamesAndersonJr
    Member
    Posted 1 year ago #

    Thanks for the tips Chad! I'll look into all the suggested info.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic