Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author kirilln

    (@kirilln)

    Hello,
    Sorry it took forever to get back to you.

    There are a few ways to add “Tweet Blender for Tags”:

    1) you can go to WP Admin > Appearance > Widgets and simply drag and drop that widget to your sidebar. Once you’ve done it, the widget will automatically appear in the sidebar of your posts that have tags. For other pages or posts without tags the widget will not be shown.

    2) you can use the PHP template function call and insert it directly into your theme’s post template. Sounds like that’s the method you tried and it failed – can you post the URL of your site or the code you used? I’ll check it out and help.

    Thread Starter redleafnetwork

    (@redleafnetwork)

    Hi kirilln – thank you for responding.

    This is the code I used:

    tweet_blender_widget_for_tags(array(
    ‘unique_div_id’ => ‘tweetblender-tt1’,
    ‘refresh_rate’ => 60,
    ‘tweets_num’ => 5
    ));

    I inserted it into the theme’s single.php file.

    I am in the process of building the site behind ‘theme test drive’. However I have opened up the url for you so you can help me.

    I installed Twitter’s search code from Twitter itself on this page as part of the post itself. Obviously this is a headache to do everytime I post:
    http://redleafsports.com/2010/08/17/hello-world/

    This post has no search code within the post:
    http://redleafsports.com/2010/08/28/test-post-2/

    The blender does not show up on either page therefore I must be missing something.

    I am hoping to have it work like the Searchles plugin (which I don’t like because of lack of support).

    This is an example of what I am trying to do.
    http://www.huffingtonpost.com/2010/09/07/bp-to-accept-some-blame-f_n_708029.html
    If you scroll down to below the post on this page you will see a twitter widget like I think yours would work.

    I thank you for your efforts on my part. Please contact me if you need anything more πŸ™‚

    Karim

    Thread Starter redleafnetwork

    (@redleafnetwork)

    I have now removed the code from the single.php because the site was not loading with it. I still need help. I can install the sidebar widget easily of course but I want it below the post using the code you suggested. Please help. Thank you:)

    Plugin Author kirilln

    (@kirilln)

    Karim,
    Just looked at your site. All the needed libraries seem to be loading fine. Can you put the code back into single.php until tomorrow so I have a chance to look at it?

    Also, if you have access to logs, please see if any PHP errors are there when the code is part of the single.php

    Thanks! I’m sure we’ll get it to work.

    Thread Starter redleafnetwork

    (@redleafnetwork)

    Ok I made some headway and got it into the right spot, I think. The reason it was not loading the page was because I included this tag before the code: And I was in the wrong file.

    <?php tweet_blender_widget(); ?>

    I removed that and just put this in:

    tweet_blender_widget_for_tags(array(
    ‘unique_div_id’ => ‘tweetblender-tt1’,
    ‘refresh_rate’ => 60,
    ‘tweets_num’ => 5
    ));

    BUT it just shows as text that you can see here:

    http://redleafsports.com/2010/08/28/test-post-2/

    Obviously I am missing something.

    I am sorry for the stupid questions. I really don’t know much about php.

    Here is the entire php file:

    <?php
    get_header();
    ?>
    <div id=”main-col”>
    <div id=”content”>
    <?php
    if (have_posts()) {
    while (have_posts()) {
    the_post();
    if (suffusion_post_count() > 1) {
    ?>
    <div class=’post-nav’>
    <table>
    <tr>
    <td class=’previous’><?php previous_post_link(‘%link’, ‘%title’) ?></td>
    <td class=’next’><?php next_post_link(‘%link’, ‘%title’) ?></td>
    </tr>
    </table>
    </div>
    <?php
    }
    $custom_class = “”;
    if ($post->post_type != ‘post’ && $post->post_type != ‘page’) {
    // Custom post type. See if there is style inheritance
    $suffusion_post_types = get_option(‘suffusion_post_types’);
    if (is_array($suffusion_post_types)) {
    foreach ($suffusion_post_types as $suffusion_post_type) {
    if ($suffusion_post_type[‘style_inherit’] != ‘custom’) {
    $custom_class = $suffusion_post_type[‘style_inherit’];
    }
    }
    }
    if ($custom_class == “”) {
    $custom_class = “post”;
    }
    }
    ?>
    <div <?php post_class($custom_class);?> id=”post-<?php the_ID(); ?>”>
    <?php suffusion_after_begin_post(); ?>
    <div class=”entry fix”>
    <?php
    suffusion_content();
    ?>
    </div><!–/entry –>
    <?php suffusion_before_end_post(); ?>

    tweet_blender_widget_for_tags(array(
    ‘unique_div_id’ => ‘tweetblender-tt1’,
    ‘refresh_rate’ => 60,
    ‘tweets_num’ => 5
    ));

    <?php comments_template(); ?>
    </div><!–/post –>
    <?php
    }
    }
    else {
    ?>
    <div class=”post fix”>
    <p><?php _e(‘Sorry, no posts matched your criteria.’, ‘suf_theme’); ?></p>
    </div><!–post –>

    <?php
    }
    ?>
    </div><!– content –>
    </div><!– main col –>
    <?php
    get_footer();
    ?>

    Thread Starter redleafnetwork

    (@redleafnetwork)

    Thank you by the way. You have been very supportive.

    Plugin Author kirilln

    (@kirilln)

    If you change

    <?php suffusion_before_end_post(); ?>

    tweet_blender_widget_for_tags(array(
    'unique_div_id' => 'tweetblender-tt1',
    'refresh_rate' => 60,
    'tweets_num' => 5
    ));
    <?php comments_template(); ?>

    to


    <?php

    suffusion_before_end_post();

    tweet_blender_widget_for_tags(array(
    'unique_div_id' => 'tweetblender-tt1',
    'refresh_rate' => 60,
    'tweets_num' => 5
    ));

    comments_template();

    ?>

    you should be in good shape. Basically, the function call should be inside the <php ?> tags

    Thread Starter redleafnetwork

    (@redleafnetwork)

    What I did was enclose only your code with the <?php> tags and WOW!!!! This is an awesome plugin and add to it the great support! Thank you so much!

    Will there be more options in the future? For example –

    Back end options for:
    Related by category
    Related by context
    Ajax type smooth auto scrolling (slide up/down)
    Scroll bar
    Built in search form

    Those would be great additions but right now I am very happy. Thank you and good luck with Kickstart.

    See how it looks on a 15 second delay.
    http://redleafsports.com/2010/08/28/test-post-2/

    Plugin Author kirilln

    (@kirilln)

    Thanks for great suggestions! I’ll definitely add these features on the roadmap for future releases

    Outstanding plugin.

    Any news on – Ajax type smooth auto scrolling (slide up/down)

    Plugin Author kirilln

    (@kirilln)

    Haven’t gotten to it yet but still planning to. Busy with bug fixes and small incremental tweaks at the moment – planning a big design/layout feature development push in June.

    Great news. Wonderful plug-in.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘[Plugin: Tweet Blender] For the related tweets widget that uses post's tags.’ is closed to new replies.