Google

Wednesday, February 6, 2008

hack to add related news topics to

what would determine the related topics? if it's just stuff in the same category you can do that easily
im pretty sure you could just include headlines in the full news template - but just to be safe let's make an actual mod for it

find:
CODE if(!$found){
echo("
Can not find an article with id: ". @(int) htmlspecialchars($id)."
");
$CN_HALT = TRUE;
break 1;
}
add after:
CODEecho "";

obviously you can change the attributes of the iframe, or the show_news.php
if you need it to be certain colors or something make a file in the cute news folder called headlines.php (or something) and tell it to include show_news.php with those variables (see readme) then apply coloring and it'll show up

No comments: