BBPress CRAIG HALLER : Replies Created

Forum Replies Created

Viewing 10 posts - 11 through 20 (of 22 total)
  • Author
    Posts
  • in reply to: Links, Cache, home page, 'Radius' … #484360
    CRAIG HALLER
    Participant

    You can tell @Melanie (an hour ago she posted) to look at my site
    (if you don’t care that I am using you with the Map plugin).
    She is welcome to contact me.

    RE: You have a way to change the zip placeholder, but not that label.
    Do I have another option?

    Hmmm… not sure I follow. There are no labels. Can you attach a
    screenshot showing what you mean?

    Sorry, the “that label” refers to “Radius” … all set on that issue.

    RE: When someone comes to the site I have the multi-category-search
    showing and [connections]. I would like there to be only one
    organization showing (I have a category of “Sample” with one entry)
    sort of as a default. I can put a screen shot of it under your
    shortcode as a workaround but that’s not ideal. Suggestion?

    You could try using this shortcode:

    [connections category=X]

    I tried various permutations. Since I use the multi category search I believe
    I need to disabable category select and enable search (see commented out line
    which is what I have been using). Tied your suggestion, still not working.
    I cleared the cache (in WP and my browser) and removed my cache plugin.

    <!-- wp:html -->
    
    [cn_multi_category_search category="15||Choose an organization type|
    

    Search Results: %s” enable_zipcode=true radius_options=”5:5 Miles|10:10 Miles|15:15 Miles|20:20 Miles|30:30 Miles|45:45 Miles” placeholder_zip=”Your zipcode”]

    <!-- [connections enable_category_select='FALSE' enable_search='FALSE' category="Sample"]-->

    [connections category="sample"]

    <!-- /wp:html -->

    I will try the snippet you sent a little later today.

    As for Link, I may remove the email address from additional entries for the same person.
    Link will set them up with one, and I can then manually add the others to that person,
    correct?

    Great support!

    in reply to: Links, Cache, home page, 'Radius' … #484322
    CRAIG HALLER
    Participant

    And connections-initial-search-results is not working for me. It is installed and the box is checked to suppress results.

    in reply to: Raw entry data from database #483821
    CRAIG HALLER
    Participant

    We are sort of on the same page.

    Last week I followed this:
    https://connections-pro.com/quicktip-custom-field-adding-a-text-field/

    and added a text field and then two checkbox fields. I did not use the “Custom Fields” in the back end since they were not mentioned in the article.

    Now today I added a Custom Field in the back end.

    I assume these are all the same things, handled the same way.

    I will make sure I register and can import today’s field as well, and with that I will try to leave you alone today. I think I have a good handle on the system at this point.

    But then, ya never know …

    in reply to: Raw entry data from database #483813
    CRAIG HALLER
    Participant

    If I were to be offended by light hearted tongue in cheek (which I easily recognize) I would be in great trouble! Anything short of outright F-bombs is fine! :)

    Ok, that seems to be working, the custom meta does it. I am guessing that I need to do a snippet like I did for my other textbox to be able to import the value from a csv file but I don’t have to register it?

    Do I just use these two routines?

    // Register the custom fields CSV Import mapping options and processing callback.
    add_filter( 'cncsv_map_import_fields', 'cncsv_header_name' );
    add_action( 'cncsv_import_fields', 'cncsv_process_import', 10, 3 );
     
    function cncsv_header_name( $fields ) {
        // The field_id should match exactly the field id used when registering the custom field.
        $fields['schl_field_id_1'] = 'Grades';
        return $fields;
    }
    
    function cncsv_process_import( $id, $row, $entry ) {
        // The field_id should match exactly the field id used when registering the 
                  custom field.
        $data = $entry->arrayPull( $row, 'schl_field_id_1', '' );
            $data = cnFormatting::maybeJSONdecode( stripslashes( $data ) );
        cnEntry_Action::meta(
            'update',
            $id,
            array(
                array(
                    'key'   => 'schl_field_id_1', // 
                    'value' => $data
                ),
            )
        );
    }
    

    Where do I send the Starbucks card?

    in reply to: Raw entry data from database #483808
    CRAIG HALLER
    Participant

    I guess I am going to push the limits of that great support … :)

    I want to add a code number I have for each school and use that if I can in the Connections_Directory()->retrieve->entries call. I don’t want it typically seen so I thought of putting it in an IM set for unlisted.

    I see it in a var_dump of an entry:

    [“im”]=> string(165) “a:1:{i:0;a:7:{s:2:”id”;s:8:”12345678″;
    s:4:”type”;s:3:”aim”;s:4:”name”;
    s:3:”AIM”;s:10:”visibility”;
    s:8:”unlisted”;s:5:”order”;i:0;s:9:”preferred”;b:0;s:3:”uid”;i:1;}}”

    yet

    $im =  $entry->getIm();

    returns

    array(0) { }

    Is there a way I can do this? Other suggestions? Just need that code, 12345678 for example, to be not displayed but used to search for a specific entry. Should I be using a custom field?

    Also, how do I access the textbox and checkboxes I added?

    Thank you.

    in reply to: Raw entry data from database #483694
    CRAIG HALLER
    Participant

    Great support … Thank you.

    -Craig

    in reply to: Raw entry data from database #483670
    CRAIG HALLER
    Participant

    I will work with that and see how it goes, THANKS.

    Off hand, is there a place in your code where I can see you using this so I can glean a few hints if needed?

    in reply to: Raw entry data from database #483647
    CRAIG HALLER
    Participant

    In another part of the site I have the need to use some of the information in “your” database. For instance, I want to display just the school name and phone number. I would like to be able to retrieve just that information, again only having the school name.

    Right now, I made a shortcode that includes:

    $data = do_shortcode([connections organization='". $org_to_show . "']);

    $data contains all the information you display about the organization and all the header and footer stuff for rendering the page.

    If I want the phone number I search $data for the first part of this:

    < span class="phone-name">Phone< /span>< span class="cn-separator">:< /span> < a class="value" href="tel:508-854-8400" value="5088548400">508-854-8400< /a>

    and can then extract just the number. I can do this for the address, etc. Then my shortcode can put out just the info I need in the format I need without all the overhead of the header, footer, etc.

    So I am looking for a way to get all the strings in the database for a particular organization in a simpler way.

    Live example: I am considering having people search by both your radius search and by a full map with markers. If you look at this page and click on the Haller Academy marker (by the water, over Boston), you will see a popup. It takes a while to populate with “your” data because I am dynamically creating a page with your connections shortcode and then bringing that in as an iframe. It is cool, but slow. I would rather just write out the html myself.

    https://schoolorg.directory/map-testing/

    Yes, I know I am being a pain in the butt, and I apologize. You have a great system and I may be pushing it a bit!

    THANK YOU

    • This reply was modified 7 years, 6 months ago by CRAIG HALLER.
    • This reply was modified 7 years, 6 months ago by CRAIG HALLER.
    • This reply was modified 7 years, 6 months ago by CRAIG HALLER.
    • This reply was modified 7 years, 6 months ago by CRAIG HALLER.
    • This reply was modified 7 years, 6 months ago by CRAIG HALLER.
    • This reply was modified 7 years, 6 months ago by CRAIG HALLER.
    in reply to: Raw entry data from database #483640
    CRAIG HALLER
    Participant

    My organizations are all unique, over 1,000 schools in my state. I am loading the database from an excel file that has all the information for basic entries (organization name, phone, etc.). There are places on the site where I want to display information about the school and all I have is the organization name and I need to do this dynamically, I don’t know the id.

    https://schoolorg.directory/

    Does that make sense?

    • This reply was modified 7 years, 6 months ago by CRAIG HALLER.
    in reply to: Add Title to Organization entry type #483218
    CRAIG HALLER
    Participant

    I thought of that but was not clear on how to then change the template to output the last name , department (so it would look like “Craig Haller, Director”
    I might just have it that way where the title is input into the last name field.

    You can see my results here: https://schoolorg.directory/

    I am going to work on allowing people to claim their listing (my database is about 1100 entries) and hopefully I can show that their title should be in the last name field.

    Thank you for your great support.

    Have you thought of a forum for users to put up modifications or things they think others can use? I am playing with tooltips in the entry for instance and would share that.

Viewing 10 posts - 11 through 20 (of 22 total)