Hi Gamerz,
I'm developing a new "index_home" for my website and my plugin version is 1.63.
On my index.php I use the code below:
<?php if (function_exists('get_highest_rated_category')): ?>
<ul>
<?php get_highest_rated_category(CATEGORY_ID); ?>
</ul>
<?php endif; ?>Going to:
WP-Admin -> Ratings -> Rating Templates
I can edit the HTML code, add div etc...
I need to pass PHP functions, to display the my tooltip
I go to postratings-stats.php
Find (line 233 to 246):
if($highest_rated) {
foreach($highest_rated as $post) {
$output .= expand_ratings_template($temp, $post->ID, $post, $chars)."\n";
}
} else {
$output = '<li>'.__('N/A', 'wp-postratings').'</li>'."\n";
}
if($display) {
echo $output;
} else {
return $output;
}
}
}this refers to the output get_highest_rated_category? right?
how can I add this code in my tooltip?
<div class="tip_info">
<div class="tip_top">
<?php $values = get_post_custom_values("original_title");
if ( !empty($values) ) {
echo '' . $values[0]. ' ';
}
else {
echo '';
}
?>
</div>
<div class="tip_center">
<span><a href="<?php the_permalink() ?>"><?php if (has_post_thumbnail()) { the_post_thumbnail(('medium'), array('title' => $post->post_title, 'class' => 'tip_image', 'alt' => $post->post_title)); } else { echo '<img src="http://website.com/images/poster_missing.jpg" />';} ?></a></span>
<p>Genres:</p><br />
<?php echo get_the_term_list( $post->ID, 'year', '<p>Year: ', ', ', '' ); ?></p><br />
<p><?php $values = get_post_custom_values("duration");
if ( !empty($values) ) {
echo 'Duration: ' . $values[0]. ' ';
}
else {
echo '';
}
?></p><br />
<?php $video_code = get_post_meta($post->ID, "trailer", true); $video_code = get_youtubeid("$video_code");
if(isset($video_code[0])) {
echo '<p>Trailer: <a style="color:#d02525!important" href="http://youtube.googleapis.com/v/'.$video_code.'&fmt=22&autoplay=1&showsearch=0&rel=0&showinfo=0" target="_blank">YouTube</a></p><br />';
} else {
echo '';
}?>
<div class="tip_divider"></div>
<p style="color:#BBB!important"><?php echo substr(get_the_content(),0,150) ?>...</p>
<div class="clear"></div>
</div>
<div class="tip_bottom"></div>
</div>
Can you help me?

should be something very similar to the image:

waiting for your response
thanks