openside("Colored Article Titles");
$limitleme = true; //limit varsa true , yoksa false yazin
$miktar = 18; //kaз tane gцzьkecekse onu yazýn , ----Amount Of Threads That Will Be Shown
$renkli=1; //renkli bulut olsun mu? kapamak iзin 0 yazýn---setting if the cloud will be colorful or not, to disable, set variable to 0
$size=array(10,12,14,16); //font size pixels
$sizefinal=count($size)-1;//dizinin son elemanýnýn deðeri --Last element of font size array
//renkli seзili ise renklerimiz bir dizi olsun
$renkler=array("1c4c8c", "8cbd57", "f25b17", "1c83c8", "e68810", "3168d6", "000000", "b53800", "9474b3");//renk kodlarý - hexademical color codes, you can add or edit any hexademical RGB color code, they will be automatically added
$renklerson=count($renkler)-1; //renklerin son dizi deðeri - last array element number of colors
if ($limitleme == true) {
$sorgulimit = "LIMIT $miktar";
} else {
$sorgulimit = "";
}
// ARTICLES //
echo "";
$result = dbquery(
"SELECT ta.article_id, ta.article_subject, tac.article_cat_id, tac.article_cat_access FROM ".DB_ARTICLES." ta
INNER JOIN ".DB_ARTICLE_CATS." tac ON ta.article_cat=tac.article_cat_id
".(iSUPERADMIN ? "" : "WHERE ".groupaccess('article_cat_access'))." AND article_draft='0' ORDER BY RAND() LIMIT $miktar");
while ($data = dbarray($result)) {
echo "<a style='font-size: ".$size[rand(0,$sizefinal)]."px;".($renkli?"color: #".$renkler[rand(0,$renklerson)].";":"")."' href='".BASEDIR."articles.php?article_id=".$data['article_id']."'>".$data['article_subject']."</a></font> ";
}
closeside();
Category Forum
Official releases [Themes]Labels
None yet
Statistics
0 participants
Notifications
You are not receiving notifications from this thread.
Related Questions