Likely a simple answer to this question... I hope. :)


#1

I am a page 1 newbie to PHP, so I need help with this little problem I am having with my blog. :slight_smile:
Admin Edit: Added PHP code tags Please review http://www.phphelp.com/guidelines.php


#2

This question is fairly specific to the blog application you are using. My guess is that t() is only a string translation function, so replacing t(“Recommended”) with “” will do the trick. But again, that’s not simple PHP.


#3

Thankyou for your help. I tried that, thought it would work, but the banner didn’t show up. Below is what I entered…

[php] case ‘recommended_nodes’:
$result = db_query_range(db_rewrite_sql(‘SELECT r.nid, n.title FROM {recommended_nodes_node} r LEFT JOIN {node} n ON n.nid = r.nid ORDER BY r.score DESC’), 0, variable_get(‘recommended_nodes_count’, ‘10’));
$list = array();
while ($node = db_fetch_object($result)) {
$list[] = l($node->title, ‘node/’. $node->nid);
}
return array(
”,
‘content’ => theme(‘item_list’, $list),
);
}
[/php]
Admin Edit: Changed the QUOTE tag to PHP tag for readability. Please read http://phphelp.com/guidelines.php for posting guidelines


#4

I got it! :D

Merci beaucoup Bane!