DonanımHaber Mini sürüm 2 Ocak 2026 tarihi itibariyle kullanımdan kalkacaktır. Bunun yerine daha hızlı bir deneyim için DH Android veya DH iOS uygulamalarını kullanabilirsiniz.
Arama butonu
Bu konudaki kullanıcılar: 1 misafir, 1 mobil kullanıcı
35
Cevap
772
Tıklama
0
Öne Çıkarma
php bilen varmı yardım lütfen w3c
V
14 yıl (4663 mesaj)
Yarbay
Konu Sahibi

vbulletin de blok olarak eklediğim 1 tanesi kayan resim diğ-
eride yine o tarz bişey ama bir çok hata buluyor w3c bu 2 kodlamayı uyarlamak istiyorum w3c ye yardım lütfen


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 .= '<a data-test="test" rel="nofollow" style="word-wrap: break-word; text-decoration: underline;" target="_blank" onclick="return dhExternalLinkRedirect(this)" href="/ExternalLinkRedirect?module=pgdcode&messageId=60351357&url=showthread.php?t='.$konu[threadid].'" data-href="showthread.php?t='.$konu[threadid].'"><center><img src="'.$konu['resim'].'" width="150" height="150" border="0" style="padding:5px" alt="'.$konu[konu_basligi].'" /></a></center>';

}
$output = "<div style=\"background-image:url();\"><marquee height=\"600\" direction=\"up\" scrollamount=\"10\" onmouseover=\"this.stop()\" onmouseout=\"this.start()\"> ";
$output .= $output_bits;
$output .= "</marquee></div>";
ob_end_clean();


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 .= "<a href='$url' style='$size'>$text</a>";
}

$data['tagcloud'] = '<tags>'.$tagsHTML.'</tags>';

$flashVars = "";

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

ob_start();
?>
<embed width="<?php echo $flashWidth;?>" height="<?php echo $flashHeight;?>" flashvars="<?php echo $flashVars;?>" wmode="transparent" allowscriptaccess="always" quality="high" bgcolor="#<?php echo $flashBackgroundColor;?>" name="vbCloudFlash" id="vbCloudFlash" style="" src="<?php echo $vbulletin->options['homeurl'].'/'.$flashPath;?>" type="application/x-shockwave-flash"/>
<?php

$content = ob_get_contents();
ob_end_clean();

$output = $content;


alınan w3c hataları aşağıdaki gibi

Line 5153, Column 57: there is no attribute "height"
…kground-image:url();"><marquee height="600" direction="up" scrollamount="10" o…

yani bu sekil bu koda ait 10 a yakın hata var bu tarz ?

DH forumlarında vakit geçirmekten keyif alıyor gibisin ancak giriş yapmadığını görüyoruz.

Üye olduğunda özel mesaj gönderebilir, beğendiğin konuları favorilerine ekleyip takibe alabilir ve daha önce gezdiğin konulara hızlıca erişebilirsin.

Üye Ol Şimdi Değil



V
14 yıl (4663 mesaj)
Yarbay
Konu Sahibi

V
14 yıl (4663 mesaj)
Yarbay
Konu Sahibi

V
14 yıl (4663 mesaj)
Yarbay
Konu Sahibi

V
14 yıl (4663 mesaj)
Yarbay
Konu Sahibi

V
14 yıl (4663 mesaj)
Yarbay
Konu Sahibi

V
14 yıl (4663 mesaj)
Yarbay
Konu Sahibi

V
14 yıl (4663 mesaj)
Yarbay
Konu Sahibi

V
14 yıl (4663 mesaj)
Yarbay
Konu Sahibi

V
14 yıl (4663 mesaj)
Yarbay
Konu Sahibi

V
14 yıl (4663 mesaj)
Yarbay
Konu Sahibi

V
14 yıl (4663 mesaj)
Yarbay
Konu Sahibi

V
14 yıl (4663 mesaj)
Yarbay
Konu Sahibi

V
14 yıl (4663 mesaj)
Yarbay
Konu Sahibi

V
14 yıl (4663 mesaj)
Yarbay
Konu Sahibi

V
14 yıl (4663 mesaj)
Yarbay
Konu Sahibi

V
14 yıl (4663 mesaj)
Yarbay
Konu Sahibi

V
14 yıl (4663 mesaj)
Yarbay
Konu Sahibi

V
14 yıl (4663 mesaj)
Yarbay
Konu Sahibi

V
14 yıl (4663 mesaj)
Yarbay
Konu Sahibi