• Hi xnau webdesign.

    Firstly, thanks so much for an awsome plugin!!!
    Im building a members-section with signup up and this plugin is doing a great job!!!

    It has a list-members function which is great also…BUT… I just need a little twek to make this plugin 5star πŸ™‚

    My list is showing like this:

    A (*this is a surname with no name and city)
    Anders Anderson, Andesville
    A2name A2surname, A2city
    B (*this is a surname with no name and city)
    Benny Boomerang, Bangsville
    B2name B2surname, B2city
    C (*this is a surname with no name and city)
    D (*this is a surname with no name and city)
    E (*this is a surname with no name and city)
    etc.

    Can I target the *’s and style it eg: bigger, color etc.?

    Or are there any other way to list all my members according to a letter? (A,B,C,D etc.)

    Looking forward to any help or guidance.

    Thanks so much for a great plugin!

    Best regards,

    Nhat

    https://wordpress.org/plugins/participants-database/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter khanhduy

    (@khanhduy)

    My link to the test site is:

    http://nhat-kd.dk/alex.ch/komitee/

    I hope that you can see what i mean with ccs single/specific partipant

    Plugin Author xnau webdesign

    (@xnau)

    You have a couple of approaches to take. First, you can sort the list by the surname, set that up in the plugins settings under the “list display settings” tab. If you want to sort on multiple fields, you need to do that in the shortcode, like this:

    [pdb_list orderby="last_name,first_name,city" order="asc,asc,asc"]

    If you want to show only the records where the surname begins with a specific letter, to can use a filter like this:

    [pdb_list filter="last_name=a*"]

    More detail on using the list shortcode filter here.

    As to changing the style, yes you can do this, there is a “custom CSS” setting in the plugin where you can put your new rules. Take a look at the HTML, you’ll see how to target the elements and make your changes. The plugin doesn’t have settings for font sizes, colors, etc. that is left up to you to style as you wish.

    Thread Starter khanhduy

    (@khanhduy)

    Hi Xnau,

    Thanks for the reply.

    I did the list print just fine using this shortcode:
    [pdb_list filter=”approved=yes” filter=”first_letter!”]
    = the list only shows approved participants with a firstletter field.

    But how can I target 1 single/specific participant so I can style it?

    (All my firstletters A/B/C etc – i made by simple only writing in the A/B/C in lastname and leaving other fields blank)

    I need to target the A/B/C etc so that i can give it another color, size etc.

    I hope you understand me and can help me further…

    http://nhat-kd.dk/alex.ch/komitee/

    Thanks in advance

    Thread Starter khanhduy

    (@khanhduy)

    If I target: td.last_name-field
    All last_name will be styled…

    I only want to style specific participant like A/B/C etc πŸ™‚

    Plugin Author xnau webdesign

    (@xnau)

    To target a specific participant with a CSS rule, you will need to create a custom template so you can add a class to the elements that has information such as the ID of the record. Without that, there isn’t any way to make a CSS selector that targets a specific record.

    Using Custom Templates

    Also, when you add more than one filter to the list shortcode, you need to “chain” them, because there can be only one filter attribute in the shortcode. Take a look at documentation about using list shortcode filters where it explains how to chain filters together..

    Thread Starter khanhduy

    (@khanhduy)

    Hi Xanau,

    Thanks for the reply.

    Yeah, I have come across your advices regarding custom templates…

    Now I just need to figure it out by myself πŸ™ Im not very experienced with coding…

    But I will try and learn

    Thanks so much for a great plugin and for your time helping me!

    Best regards,

    Nhat

    Thread Starter khanhduy

    (@khanhduy)

    Hi Xanau,

    It is more complicated than I thought it would be…

    If you should implement my wishes, how much do you charge for that?

    What i need further of your awsome plugin:

    1) the ability to style specific partisipant
    – or a custon template that would list all participants after First letter.
    Eg. Ander Andersen should be listed under A
    And the A should be different (bold; larger, or another color)

    2) The listing shuld automatically show this:

    FIRSTLETTER (of surname)
    Name Surname, City
    =
    A
    Anders Andersen, Andescity


    D
    Dennis Donaldson, Dennesville
    E
    Erik Eriksson, Eriksville
    ETC

    3)
    Firstletter should only be shown if there are a participant connected to it.

    I hope you understand me.

    Best regards,

    Nhat

    Plugin Author xnau webdesign

    (@xnau)

    Nhat, please contact me with your proposal at support@xnau.com

    Thread Starter khanhduy

    (@khanhduy)

    ok will do thanks

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘CSS single/specific participant’ is closed to new replies.