Forum Replies Created

Viewing 15 replies - 1 through 15 (of 36 total)
  • My pleasure! I hope it works for you.

    I really love this plugin, Travis – and believe me, I completely understand the lack of spare time. If the code above helps in the future, please feel free to use it. Keep up the great work!

    I had the same problem on a site after migrating from one hosting company to another. The values have been mangled by the migration. You will need to fix this directly in the database.

    I wrote a code snippet you can use in your functions.php file if you are not comfortable access your database directly. No guarantees on this, but it should work. It is listed below these instructions for accessing your database directly.

    INSTRUCTIONS FOR CHANGING VALUE IN DATABASE
    ——–
    Open your database as you normally would (such as using phpMyAdmin via cPanel or Plesk).

    In the wp_options table (may have a different prefix than “wp_”), search for the row with the option_name of “tbt_templates” (without the quotation marks).

    Change the option_value of this row to:

    a:3:{s:6:"widget";O:27:"Testimonial_Output_Template":3:{s:8:"*_name";s:6:"widget";s:10:"*_syntax";s:468:"<li class="testimonial">
        <div class="testimonial-gravatar">{{ gravatar }}</div>
        <div class="testimonial-data">
            <p class="testimonial-content">{{ testimonial_excerpt }}</p>
            <p class="testimonial-author">{{ author_prefix }}{{ author }}</p>
            {% if  company_url %}
                <p class="testimonial-company"><a href="{{ company_url }}">{{ company_name }}</a></p>
           {% endif %}
        </div>
        <div class="tbtclear"></div>
    </li>";s:15:"*_description";s:21:"Default widget syntax";}s:9:"shortcode";O:27:"Testimonial_Output_Template":3:{s:8:"*_name";s:9:"shortcode";s:10:"*_syntax";s:475:"<div class="in-content-testimonial">
        <div class="testimonial-gravatar">{{ gravatar }}</div>
        <div class="testimonial-data">
            <p class="testimonial-content">{{ testimonial }}</p>
            <p class="testimonial-author">{{ author_prefix }}{{ author }}</p>
            {% if  company_url %}
                <p class="testimonial-company"><a href="{{ company_url }}">{{ company_name }}</a></p>
           {% endif %}
        </div>
        <div class="tbtclear"></div>
    </div>
    ";s:15:"*_description";s:24:"Default shortcode syntax";}s:7:"listing";O:27:"Testimonial_Output_Template":3:{s:8:"*_name";s:7:"listing";s:10:"*_syntax";s:475:"<div class="in-listing-testimonial">
        <div class="testimonial-gravatar">{{ gravatar }}</div>
        <div class="testimonial-data">
            <p class="testimonial-content">{{ testimonial }}</p>
            <p class="testimonial-author">{{ author_prefix }}{{ author }}</p>
            {% if  company_url %}
                <p class="testimonial-company"><a href="{{ company_url }}">{{ company_name }}</a></p>
           {% endif %}
        </div>
        <div class="tbtclear"></div>
    </div>
    ";s:15:"*_description";s:22:"Default listing syntax";}}

    Save this change. The default output templates should now appear in your admin area.

    CODE SNIPPET for those who cannot or do not wish to access the database directly
    ———
    IMPORTANT: delete this snippet after you restore the defaults, or it will rewrite every time you load a page.

    In your theme’s functions.php file, add the following code snippet. You may need to add opening and closing php tags, but they will most likely already be in the file.

    Once the snippet is in your functions.php file, browse any page of your site. Then delete the snippet from your functions.php file. The default output templates should now appear in your admin area.

    // BEGIN Revert TB Testimonials output templates to default values (remove code snippet after repair)
    add_action( 'wp_loaded', 'mip_reverttbttemplates' );
    function mip_reverttbttemplates(){
    	global $wpdb;
    
    	$defaulttemplatevalue = 'a:3:{s:6:"widget";O:27:"Testimonial_Output_Template":3:{s:8:"*_name";s:6:"widget";s:10:"*_syntax";s:468:"<li class="testimonial">
        <div class="testimonial-gravatar">{{ gravatar }}</div>
        <div class="testimonial-data">
            <p class="testimonial-content">{{ testimonial_excerpt }}</p>
            <p class="testimonial-author">{{ author_prefix }}{{ author }}</p>
            {% if  company_url %}
                <p class="testimonial-company"><a href="{{ company_url }}">{{ company_name }}</a></p>
           {% endif %}
        </div>
        <div class="tbtclear"></div>
    </li>";s:15:"*_description";s:21:"Default widget syntax";}s:9:"shortcode";O:27:"Testimonial_Output_Template":3:{s:8:"*_name";s:9:"shortcode";s:10:"*_syntax";s:475:"<div class="in-content-testimonial">
        <div class="testimonial-gravatar">{{ gravatar }}</div>
        <div class="testimonial-data">
            <p class="testimonial-content">{{ testimonial }}</p>
            <p class="testimonial-author">{{ author_prefix }}{{ author }}</p>
            {% if  company_url %}
                <p class="testimonial-company"><a href="{{ company_url }}">{{ company_name }}</a></p>
           {% endif %}
        </div>
        <div class="tbtclear"></div>
    </div>
    ";s:15:"*_description";s:24:"Default shortcode syntax";}s:7:"listing";O:27:"Testimonial_Output_Template":3:{s:8:"*_name";s:7:"listing";s:10:"*_syntax";s:475:"<div class="in-listing-testimonial">
        <div class="testimonial-gravatar">{{ gravatar }}</div>
        <div class="testimonial-data">
            <p class="testimonial-content">{{ testimonial }}</p>
            <p class="testimonial-author">{{ author_prefix }}{{ author }}</p>
            {% if  company_url %}
                <p class="testimonial-company"><a href="{{ company_url }}">{{ company_name }}</a></p>
           {% endif %}
        </div>
        <div class="tbtclear"></div>
    </div>
    ";s:15:"*_description";s:22:"Default listing syntax";}}';
    
    	$revertquery = "UPDATE {$wpdb->options} SET option_value = {$defaulttemplatevalue} WHERE option_name = 'tbt_templates'";
    
    	$wpdb->query($revertquery);
    }
    // END Revert TB Testimonials output templates to default values
    Thread Starter Michelle Panulla

    (@mpanulla)

    Happy to help!

    I had the same thought when I did it, but yep – it worked. =)

    I needed to import a single post and found this plugin:
    https://www.ads-software.com/plugins/advanced-export-for-wp-wpmu/

    No need to manually recreate it if you use the plugin.

    BUT, if you want to do it manually, you can find the tags and categories under the wp_terms/wp_term_taxonomy/wp_term_relationships tables. Viewing them will make it clearer how the tags/categories are associated with your post. (The post ID is listed as the object_id in the wp_term_relationships table.)

    Hope that helps!

    souleye – I was having the same problem when using a Genesis theme. Even though it was not my home page, I had to use is_home() to make the the widget show up on my blog page. Nothing else would work (I tried the page ID, the page template and the page slug). Perhaps is_home() will work for you as well.

    Good luck!

    Are you using a shortcode in a page? If so, add random=”1″ within it.

    Example:
    [randomtext category=”testimonials” random=”1″]

    Otherwise, it will rotate through all of them in ID order, as you suspected.

    @rawdolphe It is safe until the next plugin update, which hopefully fixes the issue.

    I was wondering if anyone has an update to this. I’d love to use the plugin on multisite. Thanks!

    Thread Starter Michelle Panulla

    (@mpanulla)

    Again, thank you for such a fast response! I will see if my client likes that idea. I know I do. =)

    Thread Starter Michelle Panulla

    (@mpanulla)

    Oh, and I forgot to follow up: is there any way to skip that slider and go directly to the first photo in the gallery slideshow?

    Thread Starter Michelle Panulla

    (@mpanulla)

    The JQuery Tooltip option didn’t work, but forcing the height in the stylesheet did. Thank you for your fast response! =)

    I had the same question today. From what I could glean from my search, it is a deprecated field. However, it seems the BuddyPress plugin has utilized it to distinguish between active (with a value of 0) and inactive (with a value of 2) users.

    Same problem here. Event location fields are not saving. Anyone know a workaround?

Viewing 15 replies - 1 through 15 (of 36 total)