blok 1

$hangiforular = "749"; //misal 8,13,43 gibi degisik forum id'leri verebilirsiniz
$kackonu = "10"; //ayni anda kac konu goestersin
$aciklama = "300"; //aciklamada kac harf olsun
$baslik = "85"; //baslik kac harf olsun
$tarihformati = "m-d-Y";
$saatformati = "H:i";
ob_start();
$son_konu_cek= vB::$db->query_read("SElECT thread.forumid as forumid, thread.visible, thread.title as konu_basligi, thread.threadid as threadid, thread.postusername as username, thread.postuserid as userid, thread.dateline as tarih, forum.title as forum_title,post.postid, post.pagetext as konu_metni
FROM " . TABLE_PREFIX . "thread as thread
LEFT JOIN " . TABLE_PREFIX . "post as post on (thread.firstpostid = post.postid)
LEFT JOIN " . TABLE_PREFIX . "forum as forum on (thread.forumid = forum.forumid)
WHERE thread.visible = 1 AND thread.forumid IN (0,$hangiforular)
ORDER BY threadid DESC
LIMIT $kackonu");
$output_bits = '';
while ($konu = vB::$db->fetch_array($son_konu_cek))
{
$counter++;
$a = ++$a;

$konu['tarih'] = date($tarihformati, $konu['tarih']);
$konu['saat'] = date($saatformati, $konu['saat']);

preg_match('/\[(img|IMG)\]\s*(https?:\/\/([^*\r\n]+|[a-z0-9\/\\\._\- !]+))\[\/(img|IMG)\]/', $konu['konu_metni'], $matches);
$konu['resim'] = $matches[2];

$konu['konu_metni'] = substr($konu['konu_metni'], 0, $aciklama) . '..';
$konu['konu_basligi'] = substr($konu['konu_basligi'], 0, $baslik) . '..';
$output_bits .= '
'.$konu[konu_basligi].'
';

}
$output = "
";
$output .= $output_bits;
$output .= "
";
ob_end_clean();



blok 2

$flashWidth = 270;
$flashHeight = 330;
$flashPath = 'tagcloud.swf';
$flashBackgroundColor = 'ffffff';
$tagCount = 30;
$tagMaxSize = 16;
$tagMinSize = 8;

// Colors are in hex
$data['tcolor'] = '0x000000';
$data['tcolor2'] = '0x336699';
$data['hicolor'] = '0x000000';
$data['speed'] = 100;
$data['distr'] = 'true';
$data['mode'] = 'tags';

$contentTypes = array(2=>'tags.php?tag=',15=>'blog.php?tag=');

/* No Editing Below This Line*/

global $vbulletin;

// %d

$query = sprintf("SELECT Tag.tagid, Tag.tagtext, TagContent.contenttypeid, COUNT( TagContent.tagid ) AS count FROM ".TABLE_PREFIX."tag AS Tag LEFT JOIN ".TABLE_PREFIX."tagcontent AS TagContent ON ( Tag.tagid = TagContent.tagid ) GROUP BY TagContent.tagid ORDER BY count DESC LIMIT %d",$tagCount);

$qtags = vB::$db->query_read($query);

while($tag = vB::$db->fetch_array($qtags)) {
$tags[] = $tag;
$tagSize[$tag['tagtext']] = $tag['count'];
}

// largest and smallest array values
$maxQty = max(array_values($tagSize));
$minQty = min(array_values($tagSize));

$spread = $maxQty - $minQty;
if ($spread == 0) {
$spread = 1;
}

$step = ($tagMaxSize - $tagMinSize) / ($spread);

// make the tag cloud
$tagsHTML = "";
foreach ($tags as $tag)
{
$size = round($tagMinSize + (($tag['count'] - $minQty) * $step));
$text = $tag['tagtext'];

$url = $vbulletin->options['homeurl'].'/'.$contentTypes[$tag['contenttypeid']].urlencode($tag['tagtext']);
$tagsHTML .= "$text";
}

$data['tagcloud'] = ''.$tagsHTML.'';

$flashVars = "";

foreach($data as $var=>$val)
{
$flashVars .= (empty ($flashVars))?'':'&';
$flashVars .= "$var=".urlencode($val);
}

ob_start();
?>


$content = ob_get_contents();
ob_end_clean();

$output = $content;


bunları uyarlayıp bi arkadaşım gönderirmi dicem ama çokmu ayıp olur :) ben tüm xhtml hatalarımı düzelttim ama bunlarda tıkandım

vbulletin

teşekkürler