Fork me on GitHub
Current releases are 2.1.3 (9 Sept 2014) and 2.0.18.13 (5 Aug 2014)

Ready for 2.1? Find out if your plugins are compatible. 2.0 will no longer be updated after Dec 2014.

how to operate in vanilla LinkWithin

edited October 2011 in Vanilla 2.0 Help
I have seen used LinkWithin application on many websites, blogs, but recently I saw that could be placed in the plugin Vanilla "pocket" in addition to having seen this site: http://www.camosreptiles.com.au/forum

Now I've got the code on the page LInkwithin, hence I put in the pocket, but does not display related news, has a trick to put the linkwithin please a little help.

Answers

  • camocamo New
    edited October 2011
    Your linkwithin widget will not aggregate items immeadiately, it must crawl your site first. The documentation says to expect an hour.
    Note: You can use your forums rss feed when entering the field 'Blog Link', directly, rather than your forums url.

    If you do not have url rewrite on your installation, then your rss feed url will be (example)

    http://mydomain.com/index.php?p=/discussions/feed.rss

    If you DO have rewrite enabled on your installation, your rss feed url will be (example)

    http://mydomain.com/YOUR FORUM NAME/discussions/feed.rss

    At first your widget may display text links only depending on how many discussions contain images.

    You can test the output at http://www.draac.com/javatester.html

    before inserting in your forum (just paste your widget code in the box and hit 'test')

    p.s.

    Im not using pockets to display me linkwithin anymore, because i found that using some code in pockets (content areas) messed up my rss feed. I now have my link within code at..

    /themes/MY THEME/views/default.master.php (this is where its displaying now)

    If you dont have this you can create it by adding a 'veiws' folder to your theme (themes/My theme/)

    and copying the file /applications/dashboard/views/default.master.php to your new 'veiws' folder (above)

    If your not sure how to do that, you can add your linkwithin code in

    /applications/dashboard/views/default.master.php

    right under

    <?php $this->RenderAsset('Content'); ?>

    If you use your linkwithin code in 'pockets' (content area) check your Rss feed remains valid by pasting its url in a browser window. If its valid, you will see your XML layout, if not you'll see errors.

  • u sorry for the late response and thank you very much for answering this question that I have yet.

    I did everything you told me, that of using RSS is very interesting. despite having placed the RSS to date I get the script properly.

    For there I think it's because my forum is in the direction vanilla www.myweb.com / forum, being in a wordpress www.myweb.com is hidden.

    Even so I used the link www.myweb.com / forum / discussions / feed.rss but again to mention that until now I is visible, even tried them on and even http://www.draac.com/javatester.html I have written to their support but nothing, also continue to insist, Greetings and many thanks.
  • @RodrigoPX

    did you try /forum/index.php?p=/discussions/feed.rss ?

    If you just link your wordpress vanilla forum, I will try to create one for you to cut & Paste
  • if I put the rss discussions, although it did not work, I've also tried another similar script but still not recognized. Also thank you very much your help

    I think it may be because it is disabled wodpress and automatically redirects the problem, or the script should work just giving the information of rss?, If so something went wrong, but I will keep trying.
  • camocamo New
    edited October 2011
    @Rodrigo

    Just a question, when you made linkwithin using rss feed, did you select 'platform dropdown' ? There is one for WordPress (selfhosted) that may work better for you (even if not selfhosted).

    If no luck with linkwithin, here is similar widget https://www.outbrain.com/

    If that does not work, try this (code where shown //CODE STARTS/ENDS HERE))

    http://www.wprecipes.com/how-to-show-related-posts-without-a-plugin

    please see also

    http://buildinternet.com/2009/07/display-thumbnails-for-related-posts-in-wordpress/

    and..

    http://www.yarpp.org/

    <?php
    /**
    * The Template for displaying all single posts.
    *
    * @package WordPress
    * @subpackage Twenty_Eleven
    * @since Twenty Eleven 1.0
    */

    get_header(); ?>

    <div id="primary-post">
    <div id="content" role="main">

    <?php while ( have_posts() ) : the_post(); ?>

    <nav id="nav-single">

    <span class="nav-previous"><p><?php previous_post('%', '<< Previous Post - ', 'yes'); ?>&nbsp;&nbsp;&nbsp;&nbsp;<?php next_post('%', '>> Next Post - ', 'yes'); ?></p></span>
    <?php sharebar(); ?>
    </nav><!-- #nav-single -->

    <?php get_template_part( 'content', 'single' ); ?>

    //CODE STARTS HERE
    <?php
    //for use in the loop, list 5 post titles related to first tag on current post
    $tags = wp_get_post_tags($post->ID);
    if ($tags) {
    echo '<strong>Related Photos</strong><div style="clear:both;">';
    $first_tag = $tags[0]->term_id;
    $args=array(
    'tag__in' => array($first_tag),
    'post__not_in' => array($post->ID),
    'showposts'=>6,
    'caller_get_posts'=>1
    );
    $my_query = new WP_Query($args);
    if( $my_query->have_posts() ) {
    while ($my_query->have_posts()) : $my_query->the_post(); ?>
    <div style="float:left;width:120px;border:1px solid #d8d8d8;margin:0 6px 6px 0;padding:3px;"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title();

    echo yapb_get_thumbnail(
    '<div>', // HTML before image tag
    array(
    'alt' => 'Photo thumbnail', // image tag alt attribute
    'rel' => 'lightbox' // image tag rel attribute
    ),
    '</div>', // HTML after image tag
    array('w=120', 'q=90'), // phpThumb configuration parameters
    'thumbnail' // image tag custom css class
    );
    ?>
    </a></div>
    <?php
    endwhile;
    }

    }
    ?> //CODE ENDS HERE
    <div style="clear:both;">
    <?php comments_template( '', true ); ?>

    <?php endwhile; // end of the loop. ?>
    </b>
    </div><!-- #content -->
    </div><!-- #primary -->

    <?php get_footer(); ?>
Sign In or Register to comment.