
I i'm trying to call a function in another folder/file.php which prints star rating system on my website. this works fine with the below code. but the problem is I can't make it print on the exact place I want to. I need to print my star rating just after the "print | email" option like so "print | email | star rating". how can this be done? below code gives me the 3rd result in the image above.
my code:
Code: Select all
function rating(){
require ("plugins/p161_category_ratings/ratings.php");
}
// display date?
if($article['settings'] & $p2_articlebitfield['displaycreateddate'])
{
echo '<div><font size="2">'. $p2_language['published'] . ': ' . ($article['datestart'] > 0 ? DisplayDate($article['datestart']) : DisplayDate($article['datecreated'])).' | '.$article['views'] . ' ' . $p2_language['views'].' | '."<a href=\"" . $sdurl . 'plugins/p'.$p2_pluginid.'_news/printarticle.php?p'.$p2_pluginid.'_articleid=' . $article['articleid'] . '" target="_blank">' . $p2_language['print'] . '</a>'. ' | '."<a href=\"". RewriteLink('index.php?categoryid=' . $categoryid . '&p'.$p2_pluginid.'_aid=' .
$article['articleid'] . '&p'.$p2_pluginid.'_action=emailarticle') . '">' . $p2_language['email'] ."</a>".'</font></div>';
rating();
$displaylinebreaks = true;
}