BBPress Tim Roberts : Replies Created

Forum Replies Created

Viewing 10 posts - 1 through 10 (of 24 total)
  • Author
    Posts
  • in reply to: Field labels not displaying #314683
    Tim Roberts
    Participant

    Hi Steve,

    I copied the code above onto a test page to see if it would work. I know it is pulling from the proper card file as I have made a couple of changes and have seen them work. The label is still not showing. It shows the title, but not the label. I want it to look like this:

    Title: My Title
    Organization: My Org
    Annual Income: $15 Million

    Where annual income is would normally be department. This is because I can order by department and I must be able to sort via income level. That is critical. Again, I have copied the code exactly on the sample page and I get the output from the image attachment. As you can see, no label visibility. Let me know how to resolve, please.

    Thanks,

    Tim

    Attachments:
    You must be logged in to view attached files.
    in reply to: Field labels not displaying #314592
    Tim Roberts
    Participant

    Hi Steve,

    I have followed the instructions exactly, but have no clue which lines to modify. Is this the area where I would change the display?

     * // START -- Set the default attributes array. \\
         */
        $defaults['terms'] = array();
    
        if ( in_array( 'family_name', $fields ) ) $defaults['fields']['entry'][]        = 'family_name';
        if ( in_array( 'first_name', $fields ) ) $defaults['fields']['entry'][]         = 'first_name';
        if ( in_array( 'middle_name', $fields ) ) $defaults['fields']['entry'][]        = 'middle_name';
        if ( in_array( 'last_name', $fields ) ) $defaults['fields']['entry'][]          = 'last_name';
        if ( in_array( 'title', $fields ) ) $defaults['fields']['entry'][]              = 'title';
        if ( in_array( 'organization', $fields ) ) $defaults['fields']['entry'][]       = 'organization';
        if ( in_array( 'department', $fields ) ) $defaults['fields']['entry'][]         = 'department';
        if ( in_array( 'contact_first_name', $fields ) ) $defaults['fields']['entry'][] = 'contact_first_name';
        if ( in_array( 'contact_last_name', $fields ) ) $defaults['fields']['entry'][]  = 'contact_last_name';
        if ( in_array( 'bio', $fields ) ) $defaults['fields']['entry'][]                = 'bio';
        if ( in_array( 'notes', $fields ) ) $defaults['fields']['entry'][]              = 'notes';
    
        if ( in_array( 'address_line_1', $fields ) ) $defaults['fields']['address'][]   = 'line_1';
        if ( in_array( 'address_line_2', $fields ) ) $defaults['fields']['address'][]   = 'line_2';
        if ( in_array( 'address_line_3', $fields ) ) $defaults['fields']['address'][]   = 'line_3';
        if ( in_array( 'address_city', $fields ) ) $defaults['fields']['address'][]     = 'city';
        if ( in_array( 'address_state', $fields ) ) $defaults['fields']['address'][]    = 'state';
        if ( in_array( 'address_zipcode', $fields ) ) $defaults['fields']['address'][]  = 'zipcode';
        if ( in_array( 'address_country', $fields ) ) $defaults['fields']['address'][]  = 'country';
    
        if ( in_array( 'phone_number', $fields ) ) $defaults['fields']['phone'][]       = 'number';
    
        $atts = wp_parse_args( $atts, apply_filters( 'cn_search_atts', $defaults ) );
    

    Also, if this is correct, where do I go to ensure the labels display on the front end. Let me know.

    Thanks,

    Tim

    in reply to: Field labels not displaying #314549
    Tim Roberts
    Participant

    Hi Steve,

    I wanted to be a bit more explicit on my message about field labels showing. What I specifically want is the ability to do the following:

    Display the field titles in the form type “individual”. Those I wish to display are:

    • Title
    • Organization
    • Department

    I can see the content of those fields, but cannot see their labels. This is very important for my directory and especially true for my sorting. These are the fields on which people will sort when viewing my directory. I know I can order_by with each of these. The problem is I cannot see the labels.

    The other problem is I want to change the name of the labels for display. I know I can change several with the str_target_label=’desired label’. However, I do not see a shortcode for the fields above. So need to both change their display names on the front end as the user views them and also change their display name. What’s the word on this?

    Thanks,

    Tim

    PS – If I can do this, I do not have to change things in the data base that will be overwritten on updates. Trying to avoid that.

    in reply to: Order By Sort #314143
    Tim Roberts
    Participant

    Hi Steve,

    I understand this concept, but do not know PHP. I tried copying this into the section you outlined, but it crashed my site, so I know I did not do it right. Can you give me an exact example of how this would look, with line 673 in the class.retrieve.php file? Sorry to bother, just need explicit help for this one. Thanks.

    in reply to: Illegal Strings #297676
    Tim Roberts
    Participant

    Hi Steve,

    Thank you so much. And yes, I will review the plugin immediately. On a final note, can you give me an idea of what could have overwritten this? was it manually done? Thanks.

    Tim

    in reply to: Illegal Strings #297670
    Tim Roberts
    Participant
    This reply has been marked as private.
    in reply to: Illegal Strings #297667
    Tim Roberts
    Participant

    Hi Steve,

    Also wanted to give you these lines:

    Warning: Illegal string offset ‘enable_bio_head’ in /home/massciti/public_html/wp-content/plugins/connections-market/card.php on line 125

    Warning: Illegal string offset ‘str_bio_head’ in /home/massciti/public_html/wp-content/plugins/connections-market/card.php on line 125
    H

    Warning: Illegal string offset ‘tray_image’ in /home/massciti/public_html/wp-content/plugins/connections-market/card.php on line 128

    Warning: Illegal string offset ‘tray_image_height’ in /home/massciti/public_html/wp-content/plugins/connections-market/card.php on line 129

    Warning: Illegal string offset ‘tray_image_width’ in /home/massciti/public_html/wp-content/plugins/connections-market/card.php on line 130

    Warning: Illegal string offset ‘tray_image_fallback’ in /home/massciti/public_html/wp-content/plugins/connections-market/card.php on line 132

    Warning: Illegal string offset ‘str_tray_image’ in /home/massciti/public_html/wp-content/plugins/connections-market/card.php on line 133

    in reply to: Magic Quotes #289926
    Tim Roberts
    Participant

    So here is the 64K question…

    If I use the latest version that allows for custom fields, do I need to worry about this? I see it this way:

    1. Back up the data
    2. Update the plugin to the latest version.
    3. Create the new custom fields using the latest version.
    4. Migrate the old info to the new version.
    5. Update normally thereafter.

    Does this seem like a feasible plan? If so, I can update everything on my dev server and move over the new clean files after the fact. Let me know if this makes sense. and whether or not it will work. Also, can you tell me how long it took you to fix this? Just an estimated time? I want to keep my developer honest. Thanks.

    in reply to: Magic Quotes #289919
    Tim Roberts
    Participant

    yes, please install and then let me know what the problem was. where did we go wrong? i greatly appreciate the help. i am also interested in knowing how to update the plugin safely in the future. thank you, Steve.

    in reply to: Magic Quotes #289916
    Tim Roberts
    Participant

    and I must correct the issue now, but when do you think you will have an update that eliminates this bug?

Viewing 10 posts - 1 through 10 (of 24 total)