Morten Ross
Forum Replies Created
-
Yes it does.
Check now – I have renamed the file, so the plugin refers to a non-existing file.
I haven’t removed or changed anything. I have tested only on offline local testbed.
I have uploaded your revised code to live site now, so you can check it.
I tried your revised code and added the styles in .css, but still only one column…..
I don’t see where your example fit into the above code…?
I would like to continue to use the above template/code, but I’m not a coder, so my question is how to tweak/code so that it displays in 2 columns?
I am using a YARP template (yarp-template-post-thumbnail.php), but it does not give such an option and I need help to code a two-column layout.
This is the content of the template:
<h3> Related Posts</h3> <?php if ($related_query->have_posts()):?> <ul class="related-posts"> <?php while ($related_query->have_posts()) : $related_query->the_post(); ?> <li> <?php $postimageurl = get_post_meta($post->ID, 'image', true); if ($postimageurl) { ?> <a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/thumb.php?src=<?php echo $postimageurl; ?>&h=150&w=300&zc=1&q=100" alt="<?php the_title(); ?>" width="300" height="150"/><br /></a> <?php } else { ?> <a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/thumb.php?src=<?php bloginfo('stylesheet_directory'); ?>/default.jpg&h=100&w=100&zc=1&q=100" alt="<?php the_title(); ?>" width="200" height="100"/></a> <?php } ?> <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></li> <p class="post_meta"><span class="details"><?php _e('Archived in ', 'woothemes' ); ?> <?php the_category(', ') ?></span></p> <?php endwhile; ?> </ul> <?php else: ?> <p>No related posts.</p> <?php endif; ?>Please see the first paragraph:
Final Update: WordThumb has now been merged into TimThumb and has become TimThumb 2.0. Please head over to the TimThumb site now for updates and to get the code.
This version has fixed the vulnerability and is downloadable here: http://code.google.com/p/timthumb/
I can hardly see this as being an active discouragement. It’s just a normal vulnerability warning with a fix for it. Just like Microsoft does every second Tuesday of the month for Windows, Office, etc.. That doesn’t mean that one should not use those products.
Hi Esmi,
Could you please link to these discouragements!
Google returns 38 700 000 hits on ‘timthumb’, so I extremely widespread it is.
Morten
Yeah – that’s the problem – timthumb is the de-facto standard (add-on) for dynamic image resizing for WordPress, so it’s actually the other way around 🙂
Hopefully LinkWithin-Inspired YARPP Template is maturing fast 🙂
I’m looking into your partner LinkWithin-Inspired YARPP Template, but like many others I have no luck in getting any image on thumbnails yet. Despite using timthumb – in fact Woothemes use it by default on the Aperture theme I use. They only change the file name to thumb.php.
Frustrating, as yarpp is a really excellent initiative, but that little extra with thumbnails is really hard to make work….
I’m using Woothemes’ Aperture 2.6, and they use timthumb, so by default I will not get any image using yarpp-template-thumbnail.
Will you make a timthumb-template?
Hi,
That is contrary to all other plugins, and WordPress logistics. Plugins go to directory..\plugins, themes go to directory ..\themes. This making certain that plugins are not theme dependant, so that when changing a theme the plugin will not change version/loose files.
Why cannot these files be utilized in their default location when plugin is installed automatically?
That said – when I copied these files to theme directory, I had the following result:
yarpp-template-example: “Related posts” in bold otherwise same posts without using it (no additiopnal info)
yarpp-template-list: “Related posts” in bold, otherwise same posts listed.
yarpp-template-photoblog: “Related posts” in bold, no posts listed.
yarpp-template-random: “Related posts” in bold, otherwise same posts listed.
yarpp-template-thumbnail: “Related photos” in bold, but no posts listed.
yarpp-template-wpml: “Related Posts B” in bold, otherwise same posts listed.Common to all is that no additional information to the post title is displayed. In addition no score is displayed when logged in as Admin.
What’s most important for me is the ability to either display photo, and/or the categories of the related posts.
Morten
Hi Mitcho,
I installed plugin using automatic method.
The template files are in subdirectory ../plugins/yet-another-related-posts-plugin/yarpp-templates. They are not also in active theme subdirectory. Why should they…?
I do not use child theme.
Morten
Forum: Fixing WordPress
In reply to: WP 3.2: Assigning the return value of new by reference is deprecatedThis is WP version 3.2, and the other is WP 3.2.1 and none are documented to be version specific or not yet. Also neither threads were opened by me.
Forum: Fixing WordPress
In reply to: WP 3.2: Assigning the return value of new by reference is deprecatedEverything you suggested here:
http://wordpress.org/support/topic/deprecated-error-in-wp-321-dashboard?replies=10#post-2254160Zero plugins active=same errors
Tventy Eleven theme=same errors
Resetting plugins folder=same errorsMorten