Forum Replies Created

Viewing 15 replies - 76 through 90 (of 266 total)
  • Forum: Plugins
    In reply to: [LDD Directory Lite] error
    Mark

    (@delayedinsanity)

    Out of curiosity, do you know what version of PHP you’re running? I would be willing to bet it’s not 5.3 or above; I used a ternary shorthand that is only available in 5.3 and above:

    return ldl_get_meta($key) ?: false;

    That’s my fault and poor backwards compatibility. A fix will be available shortly!

    Mark

    (@delayedinsanity)

    The CSS has been dramatically updated in 0.7-beta, I’m hoping that should cure the small font issue you’re having.

    Before we start debugging the per page issue, please let me know if it’s still occurring with the 0.7 update!

    Mark

    (@delayedinsanity)

    There was a huge memory leak in one of my 0.5.5-beta functions. That function has been deprecated and removed, and this hopefully won’t be an issue any more in 0.7-beta.

    Sorry for the delayed response time, I took the weekend off for once. 😉

    Mark

    (@delayedinsanity)

    The first couple of versions didn’t parse shortcodes due to the template engine I had started to use. I’ve ported all views to pure PHP templates, using the same format as WordPress themes (what I should have done from day one).

    Shortcodes should start working once you update to 0.7-beta. Post back here after updating and let me know if you’re good to go or if there’s still issues occurring.

    Mark

    (@delayedinsanity)

    @chiangmai, you should see an update to 0.7-beta available on your dashboard any moment. This is a major update to the core functionality of the plugin, and may fix the issue.

    If for some reason it doesn’t, please feel free to post a new thread with specifics to your particular situation. I’ll do my best to help figure out what’s going wrong.

    Mark

    (@delayedinsanity)

    No widgets as of yet.

    I’m interested in hearing ideas, but I don’t want anyone to get their hopes up for the near future; my primary goal for the moment is getting to version 1.0 and releasing a stable copy of the plugin that works for the majority of people.

    With that being said, if you want to post more details as to what you would like to see in the way of widgets or other features, I read everything posted here and take it all into account. Post any and all ideas you have!

    Mark

    (@delayedinsanity)

    You have two options depending on what you want to do, and how you’re going about doing it.

    The less likely but still available first option is to filter the_shortlink; there are four arguments passed in total, including the formatted link, the shortlink itself, the text (for the formatted link) and the title of the page the shortlink references. You could easily hook into this and return just the $shortlink (the second argument).

    The other way is to call wpbitly_get_shortlink() directly. Argument one should be the current permalink (though you can pass this as empty so long as you get argument two correct), and the second argument is the post ID you want the shortlink for. For example;

    <?php
    /* this will return the shortlink for a post/page with the ID of 12 */
    echo wpbitly_get_shortlink('', 12);
    
    /* You can also pass it the permalink in case something fails retrieving or generating the shortlink */
    $post_id = get_the_ID();
    $permalink = get_permalink($post_id);
    $shortlink = wpbitly_get_shortlink($permalink, $post_id);
    ?>
    Mark

    (@delayedinsanity)

    I think you’re referring to the LDD Business Directory plugin? The new plugin doesn’t use javascript for any links whatsoever.

    There’s really no way to change that, not easily anyways. The original developer chose to go with a primarily javascript/ajax approach with the plugin, something I am not in full agreement with and have moved entirely away from doing with the new plugin.

    If you give me just a short amount of time… I know I keep saying this around here, but it’s true! I am very close to releasing a much more stable copy of the new plugin that should solve all kinds of issues people had with the old.

    Mark

    (@delayedinsanity)

    1) You’ll have to edit the .tpl files in the /ldd-directory-lite/templates directory. You’ll see a {$header} macro between an opening and closing html <header> set. Delete everything from the opening to closing tag.

    When the next version comes out, this will be much easier and possible by adding an add_filter('lddlite_filter_presentation_header', '__return_false'); – When it goes from x.5.x to x.6.x or above, this last piece of code will start working.

    2) Not yet, but you’re not the first person to request this. It’s on my list and will definitely be part of a future release.

    Mark

    (@delayedinsanity)

    No, not as of yet without simply editing those files.

    The next version (coming out soon) will drop the .tpl files in favor of a more standard PHP template structure. It will also allow the templates to be copied to your theme directory in order to make modifications without having them overwrriten.

    Once I have the release out I’ll address i18n for templates; whether it will make more sense to use WordPress core functions, or allow the files just to be directly edited.

    Mark

    (@delayedinsanity)

    By looping through the array when you’re saving the form submission, you’re overwriting exclude_page_from_cookies multiple times, depending on how many pages were selected. This results in exclude_page_from_cookies only ever containing the last page in the array.

    Save the array as it’s passed (short of any validation you want to run on it), then use in_array() to test selected().

    The form:

    <select id="exclude_pages_from_cookie" name="exclude_pages_from_cookie[]" multiple="multiple" accesskey="e">
        <?php
        $results = get_pages();
        $selected = get_option('exclude_pages_from_cookie', array());
    
        foreach ($results as $page):
            ?>
            <option value="<?php echo $page->post_name; ?>" <?php echo selected(in_array($page->post_name, $selected)); ?>>
                <?php echo $page->post_title; ?>
            </option>
            <?php
        endforeach;
        ?>
    </select>

    The save (without any error checking, don’t forget to validate your data):

    if (array_key_exists('exclude_pages_from_cookie', $_POST)) {
        update_option( 'exclude_pages_from_cookie', $_POST['exclude_pages_from_cookie']);
    }

    I just noticed how old this post was. Oh well, responding anyway!

    Mark

    (@delayedinsanity)

    The next release will fix this issue. I started down a path of formatting numbers internally, but to do so in a way that makes everyone in the international community happy would be a huge undertaking.

    Moving forward the plan is to simplify these fields and allow the site owner the control of determining how they are formatted. I will do my best to add utilities that aid in this process, where possible, but attempting to conform 100% to E.164 may be outside the realm of “near future features”.

    Thank you for the heads up!

    Mark

    (@delayedinsanity)

    It looks like the only thing restricting it to fifteen characters is the database schema. Do you have access to phpMyAdmin or another way of altering the wp_ldd_business_directory table (keeping in mind the wp_ prefix may be different for you)?

    I would recommend changing it to a varchar column of the length you require.

    Mark

    (@delayedinsanity)

    Good to hear, I definitely hope @skindy finds the issue resolved a well.

    A big thanks to everyone who helped track down the problem, in this thread and in others!

    Mark

    (@delayedinsanity)

    I don’t like to put the onus on you, but I think something in your browser is blocking it if it’s showing in one and not the other. I double checked the HTML and it’s properly formed, so I don’t believe the issue is there.

    Have you tried disabling your Chrome extensions (one at a time or all at once) and see if it appears that way?

Viewing 15 replies - 76 through 90 (of 266 total)