Şimdi Ara

php bilen varmı yardım lütfen w3c

Bu Konudaki Kullanıcılar:
2 Misafir (1 Mobil) - 1 Masaüstü1 Mobil
5 sn
36
Cevap
0
Favori
772
Tıklama
Daha Fazla
İstatistik
  • Konu İstatistikleri Yükleniyor
Öne Çıkar
0 oy
Sayfa: 12
Sayfaya Git
Git
sonraki
Giriş
Mesaj
  • 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 ?



    _____________________________




  • ?
    _____________________________
  • ?
    _____________________________
  • ?
    _____________________________
  • ?
    _____________________________
  • ?
    _____________________________
  • ?
    _____________________________
  • Yapay Zeka’dan İlgili Konular
    Daha Fazla Göster
  • ?
    _____________________________
  • ?
    _____________________________
  • ?
    _____________________________
  • ?
    _____________________________
  • ?
    _____________________________
  • ?
    _____________________________
  • ?
    _____________________________
  • ?
    _____________________________
  • ?
    _____________________________
  • ?
    _____________________________
  • ?
    _____________________________
  • ?
    _____________________________
  • ?
    _____________________________
  • 
Sayfa: 12
Sayfaya Git
Git
sonraki
- x
Bildirim
mesajınız kopyalandı (ctrl+v) yapıştırmak istediğiniz yere yapıştırabilirsiniz.