BBPress Steven Zahm : Replies Created

Forum Replies Created

Viewing 10 posts - 561 through 570 (of 15,332 total)
  • Author
    Posts
  • in reply to: Pbl display and more #483013
    Steven Zahm
    Keymaster

    @ sebastien

    Sorry, no, there is not an option to display it after the cards.

    in reply to: Directory Images not showing #483010
    Steven Zahm
    Keymaster

    @ Debra

    RE: I have looked in Chrome, Safari and Firefox and the images do not show on the initial page.

    Must be something to your local computer/network then. I see the images. Please see the attached screenshot.

    This does not seem to be a issue for the general public, like myself. Perhaps try your phone browser while not connected to your local wifi (in other words use your phone data).

    Attachments:
    You must be logged in to view attached files.
    in reply to: Directory Images not showing #483004
    Steven Zahm
    Keymaster

    @ Debra

    Took a look and the images seems to be displaying fine. Do you perhaps have some sort of browser addon for blocking ads. Unlikely, but possible, that it could be blocking them on your computer.

    Hope this helps!

    in reply to: Pbl display and more #482984
    Steven Zahm
    Keymaster

    @ sebastien

    RE: I have 2 time the website ?

    This is because you enabled the show_links shortcode option. To disable the link at the bottom add enable_website_link=false to the existing shortcode.

    RE: for public the form is perfect but if my customer connect in wordpress email adress appair in the card ?

    Sorry, no, this is not possible because one of the primary features in Contact is to hide the email addresses to keep them private.

    RE: is possible too alphanumerique et page arrow appair up and down page

    Sorry, I am not quite sure what you are asking. Can you give more details.

    in reply to: Template Customizer #482983
    Steven Zahm
    Keymaster

    @ HeatherG

    Good to hear this corrected the issue. I really need to add a check that the page was set and that it does contain the shortcode before activating the customizer button. And display a user message explaining what they need to do to fix it.

    in reply to: Template Customizer #482921
    Steven Zahm
    Keymaster

    @ HeatherG

    Have you setup a directory home page with the [connections] shortcode?

    Have you set that page as the homepage on the Connections : Settings admin page?

    in reply to: Custom Dates #482920
    Steven Zahm
    Keymaster

    @ Jamii

    Sorry, I had the page open already so I did not see your follow up up reply.

    In this case, I recommend hooking in the to cn_output_date filter. It passes four attributes.

    • $html :: This is the html of the date row. Return the HTML as you need with the altered date format. Refer to the ../wp-content/plugins/connections/templates/entry/dates/dates-hcard.php file for the HTML markup.
    • $date :: This is a cnEntry_Date object. Calling $date->getDate() returns a DateTime object. Calling $date->getType() will return the date type.
    • $entry :: This is the current entry.
    • $atts :: The current shortcode options.

    With a filter applied to cn_output_date you’ll be able to check for the date type and alter the format as needed.

    Hope this helps!

    in reply to: Custom Dates #482917
    Steven Zahm
    Keymaster

    @ Jamii

    Navigate to the Connections Settings admin page and click the Display tab. The date format can be adjusted to omit the year.

    Hope this helps!

    in reply to: How to display results of only families? #482854
    Steven Zahm
    Keymaster

    @ Wes

    Set the list type to family on your existing directory page.

    Create a second page. The name is not important, but I recommend giving it a page name of “Individual”. Set the Page Parent to the current directory page. In the page content use just the [connections] shortcode, no options. Take note of the page ID assigned by WordPress. This can be found in the browser address bar. The page ID will only be given after you save the page.

    Edit the original directory page and set the home_id shortcode option to the new page ID. Your shortcode should look like this:

    [connections list_type="family" home_id=X]

    X equals the page ID of the new page.

    After you save the change, take note of the page ID.

    Now edit the new page and update the shortcode so it looks like this:

    [connections home_id="Y"]

    Y equal the original directory page ID.

    On your sites menus/nav. Make sure to link to only the original directory page.

    Now when you click on a family member name, it resolve to the new page showing their details. And because the directory on the original page is limited to the family type, it will display only families and not the individual entries linked to a family.

    The one downside is that individuals (who are not part of a family) have to be added as a family so they show up in the directory.

    Hope this helps!

    in reply to: Question about wp_connections_address table. #482853
    Steven Zahm
    Keymaster

    @ Joshua

    RE: provide an example of adding a website link programmatically?

    It is much like adding an address. Here’s and expended example from my original reply.

    $entry = new cnEntry();
    $entry->setStatus( 'approved' );
    $entry->setEntryType( 'organization' );
    $entry->setOrganization( '~Test' );
    $entry->addresses->add(
        new cnAddress(
            array(
                'line_1'  => '1600 Pennsylvania Ave NW',
                'city'    => 'Washington',
                'state'   => 'DC',
                'zipcode' => '20500',
            )
        )
    );
    $entry->links->add(
        new cnLink(
            array(
                'title'  => 'Connections Business Directory Plugin for WordPress',
                'url'    => 'https://connections-pro.com',
            )
        )
    );
    
    $result = $entry->save();
    
    if ( FALSE !== $result ) {
    
        $default = get_option( 'cn_default_category' );
    
        Connections_Directory()->term->setTermRelationships( $entry->getId(), $default, 'category' );
    }
    

    Hope this helps!

Viewing 10 posts - 561 through 570 (of 15,332 total)