• 13-03-2013, 21:42:13
    #1
    resimdi goruldugu uzere cok denedim ama bir kutuya alamadım sizin için kucuk benım için buyuk bir kode yardımcı olursanız senrim




    game.php

    Alıntı
    <?php
    include('wp-config.php');
    $wtb=$_GET['id'];
    ?>
    <?php query_posts('p='.$wtb.''); global $more; $more = 0; while (have_posts()) : the_post(); ?>
    <?php get_header(); ?>
    <div class="sagblok1">
    <div align="center"><div class="ureklam"><span>Reklam</span>Reklam</div></div>
    <div class="nerdesiniz">
    <a href="<?php bloginfo('url'); ?>">Anasayfa</a> <span>&raquo;</span> <?php the_category(', '); ?> <span>&raquo;</span> <h1><?php the_title(); ?> Oyunu</h1></div>
    <div class="indexic">
    <!-- Oyunla ilgili alan basliyor -->
    <div class="oyuncak" style="text-align:center; padding:10px 0px;">
    <?php if( get_post_meta($post->ID, "swf", true) ): ?>
    <?php
    $oyunum= get_post_meta($post->ID, "swf", true);
    if(stristr($oyunum,".dcr")) {
    echo <<< HTML
    <object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=11,0,0,0" width=640 height=480 name="oyun" >
    <param name="src" value="$oyunum" />
    <param name="playerVersion" value="11" />
    <param name="swRemote" value="swSaveEnabled='false' swVolume='true' swRestart='false' swPausePlay='false' swFastForward='false' swContextMenu='true' " />
    <param name="swStretchStyle" value="stage" />
    <param name="swLiveConnect" value="true"/>
    <param name="bgColor" value="#000000" />
    <param name="swStretchHAlign" value="Left" />
    <param name="swStretchVAlign" value="Top" />
    <embed src="$oyunum" playerVersion=11 name="swf" bgColor=#000000 swLiveConnect=TRUE swStretchHAlign=Left swStretchVAlign=Top width=640 height=480 swRemote="swSaveEnabled='false' swVolume='true' swRestart='false' swPausePlay='false' swFastForward='false' swContextMenu='true' " swStretchStyle=stage type="application/x-director" pluginspage="http://www.macromedia.com/shockwave/download/"> </embed>
    </object>
    HTML;
    } else {
    echo <<< HTML
    <embed src="$oyunum" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="770" height="560"></embed>
    HTML;
    }
    ?>
    <?php else: ?>
    <?php $values = get_post_custom_values("iframe"); echo $values[0]; ?>
    <?php endif; ?>
    </div>
    <!-- <div class="reklamuzun"> Reklamlar </div> -->
    <div class="bilgisar">
    <div class="bunedir">Oyun Açıklaması</div>
    <?php the_content(); ?>
    <div class="bunedir">Oyun Destek</div>
    Sitemizde yayınladığımız bütün oyunlar şuan kullanılmakta olan Explorer,Firefox,Chrome ve Opera gibi tarayıcılarda çalışmaktatır. Daha düzenli çalışması için aşağıdaki paylaştığımız dosyarlara ihtiyaç duyabilmektedir. Bazı 3D oyunları <a title="Shockwave İndir" href="http://get.adobe.com/shockwave" target="_blank">Shockwave</a> ihtiyaç duyarken bağzılarıda <a title="Flash İndir" href="http://get.adobe.com/flash" target="_blank">Adobe Flash</a> gerektirir. Küçük bir kısmı ise <a title="Unity Web Player İndir" href="http://unity3d.com/webplayer" target="_blank">Unity Web Player</a> gerektirmektedir. Grafik yönünden ağır oyunlar ise güncel olan <a title="DirectX İndir" href="http://download.microsoft.com/download/1/7/1/1718CCC4-6315-4D8E-9543-8E28A4E18C4C/dxwebsetup.exe" target="_blank">Windows DirectX</a> yazılımını yüklemeniz gerektirebilir.Eğer yeni yayınlanmış bir oyunda sorun yaşıyorsanız verdiğimiz dosyaların en son sürümünü yükleyin.
    </div>
    <div class="onluk"></div>
    <div class="onluk"></div>
    <div class="bilgisar">
    <div class="toplamyorum">
    <?php comments_template(); ?>
    </div>
    <div class="paylas">
    <div class="fpaylas"><a name="fb_share" type="button_count" href="http://www.facebook.com/sharer.php">Paylaş</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script></div>
    <div class="fbegen">
    <iframe src="//www.facebook.com/plugins/like.php?href=<?php the_permalink() ?>&amp;send=false&amp;layout=button_count&amp;show _faces=false&amp;action=like&amp;colorscheme=light &amp;font=segoe+ui&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:21px;" allowTransparency="true"></iframe>
    </div>
    <div class="tyolla"><a href="https://twitter.com/share" class="twitter-share-button" data-lang="en">Tweet</a><script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);j s.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}} (document,"script","twitter-wjs");</script></div>
    <div class="plusarti"><glusone size="small"></glusone><script type="text/javascript">
    window.___gcfg = {lang: 'tr'};

    (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
    })();
    </script>
    </div>
    </div>
    </div>
    <!-- Oyunla ilgili alan bitiyor -->
    </div>
    </div>
    <?php get_footer(); ?>
    <?php endwhile; ?>
    style.css

    Alıntı
    html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, form { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; } textarea:focus, input:focus { outline: none; }
    body { margin:0 auto; text-align:center; background-image:url(images/body.png); background-position:center top; background-repeat:repeat-y; background-color:#7E37D5; }
    .sarmal { width:980px; margin:0 auto; text-align:left; font-size: 13px; font-family: Tahoma;}
    .beslik { clear:both; height:5px; }
    .onluk { clear:both; height:10px; }
    .temizle { clear:both; height:1px; }
    .tavan { width:980px; float:left;}
    .logo { width:250px; float:left; margin-top:12px; }
    .reklam1 { width:728px; float:left; text-align:center; margin-left:2px; line-height:90px; height:90px; }
    .ustmenu { width:980px; float:left; background-image:url(images/header-bg.png); height:91px; }
    .anasayfayagit { width:56px; float:left; }
    .tavanmenu { width:720px; float:left; margin-top:2px; }
    .tavanmenu ul { list-style:none; margin:0px; padding:0px; margin-left:13px; }
    .tavanmenu ul li{ float:left; line-height:39px; height:39px; background-image:url(images/header-menu-shadow.png); background-repeat:no-repeat; background-position:right center; padding-right:14px; margin-right:5px; }
    .tavanmenu ul li a{ margin-right:13px; text-decoration:none; font-size:16px; color:#272727;}
    .tavanmenu ul li a:hover{ color:#5F2579; }
    .tavanmenu ul li:last-child { background:none; }
    .arama { width:195px; float:left; margin-right:5px; margin-left:4px; }
    .nearayalim { width:125px; padding-left:25px; float:left; border:0px; height:34px; line-height:34px; margin-top:3px; background:none; font-size:10px; font-family:tahoma; color:#999999; }
    .aragitsin { border:none; width:32px; height:20px; float:left; text-align:center; margin-left:6px; margin-top:11px; background:none; cursorointer; text-indent: -9000px; text-transform: capitalize; }
    .nevarneyok { width:770px; float:left; margin-right:20px; margin-left:190px; line-height:34px; height:34px; overflow:hidden; font-family:tahoma; font-size:11px; color:#6b6b6b; }
    .nevarneyok strong {color:#5D2577; }
    .solblok { width:180px; float:left; }
    .solkategoribas { width:180px; float:left; background-image:url(images/sidebar-kategoriler-bas.png); height:43px; }
    .sidebaric { width:180px; float:left; background-color:#F9F2F8; }
    .sidebaric ul { list-style:none; margin:0px; padding:0px; }
    .sidebaric ul li{ width:150px; padding-left:30px; float:left; background-image:url(images/sidebar-li-bg.png); background-repeat:no-repeat; height:30px; line-height:30px; background-position:bottom center; overflow:hidden; }
    .sidebaric ul li a{ text-decoration:none; color:#7d4198;}
    .sidebaric ul li a:hover{ text-decoration:underline; }
    .sidebaralt { width:180px; float:left; background-image:url(images/sidebar-alt.png); height:19px; }
    .dostsiteler { width:180px; float:left; background-image:url(images/dost-siteler-bas.png); height:43px; }
    .sosyalmedya { width:180px; float:left; background-image:url(images/sosyal-medya-bas.png); height:43px; }
    .sagblok { width:780px; float:left; margin-left:20px; }
    .sagblok1 { width:870px; float:left; margin-left:10px; }
    .yenioyunlarbas { width:780px; float:left; background-image:url(images/yeni-oyunlar-bas.png); height:43px;}
    .indexic { width:775px; padding-left:5px; padding-top:5px; float:left;background-color:#F9F2F8; }
    .indexic ul { list-style:none; margin:0px; padding:0px; }
    .indexic ul li{ float:left; background-image:url(images/oyun-saydir-bg.png); width:134px; height:144px; margin:0px 10px 15px 10px; text-align:center;}
    .indexic ul li:hover { background-image:url(images/oyun-saydir-hover-bg.png); cursorointer; }
    .indexic ul li img { margin-top:1px; width:132px; height:92px; margin-bottom:8px; }
    .indexic ul li a{ color:#f1f1f1; font-family:tahoma; font-size:11px; text-decoration:none; font-weight:bold;}
    .indexic ul li a:hover{ }
    .oyunadinedir { width:132px; float:left; margin-left:1px; height:30px; line-height:15px; overflow:hidden; }
    .bilgikutusubas { width:780px; float:left; background-image:url(images/kategori-aciklama.png); height:43px;}
    .bilgikutusu { width:775px; padding-left:5px; padding-top:5px; float:left;background-color:#F9F2F8; }
    .bilgikutusu p { margin-bottom:10px; line-height:18px; color:#676767;}
    .bilgikutusu h5 { font-size:18px; font-weight:bold; font-family:"Trebuchet MS"; color:#676767; margin:0px; padding:0px;}
    .bilgikutusu a { text-decoration:none; color:#272727; font-weight:bold; }
    .bilgikutusu a:hover { text-decoration:underline; color:#7E37D5; }
    .indexalt { width:780px; float:left; background-image:url(images/index-alt--bg.png); height:21px; }
    .cokoynabas { width:780px; float:left; background-image:url(images/cok-oyna-bas.png); height:43px;}
    .nerdesiniz { width:620px; float:left; color:#F9F2F8; font-size:12px; font-weight:bold; background-image:url(images/kategori-bas.png); height:43px; line-height:43px; padding-left:160px; overflow:hidden;}
    .nerdesiniz a { text-decoration:none; color:#F9F2F8; float:left; }
    .nerdesiniz a:hover { text-decoration:none; color:#232323; }
    .nerdesiniz h1 { margin:0px; padding:0px; font-size:12px; float:left; }
    .nerdesiniz span { float:left; margin:0px 6px; }
    .kategorireklam { width:300px; margin-right:0px; margin-left:10px; float:left; text-align:center; }
    .kategorireklam span { font-weight:bold; color:#232323; width:300px; float:left; margin-top:5px;}
    .sayfada { margin:10px; }
    .sayfada p { margin-bottom:10px; line-height:18px; }
    .sayfada a { text-decoration:none; font-weight:bold; color:#4E5AD1}
    .oyunsolblok { width:420px; float:left; margin-right:13px; }
    .oyunaciklamasi { width:420px; float:left; }
    .oyunaciklamasi img { float:left; margin-right:5px; border:1px solid #272727; }
    .oyunaciklamasi p { margin:0px; padding:0px; font-size:12px; line-height:18px; text-align:justify; font-family:Arial, Helvetica, sans-serif; }
    .birreklam { width:410px; float:left; padding:5px; background-color:#E4E4E4; }
    .birreklam span { width:410px; float:left; margin-bottom:3px; padding:2px 0px; text-align:center; border-bottom:1px solid #272727; background-color:#D4D4D4; color:#212121; }
    .ureklam { width:480px; float:center; padding:2px; background-color:#E4E4E4; }
    .ureklam span { width:480px; float:center; margin-bottom:2px; padding:2px 0px; text-align:center; border-bottom:1px solid #272727; background-color:#D4D4D4; color:#212121; }
    .3reklam { width:170px; float:right; padding:2px; background-color:#E4E4E4; }
    .ikireklam { width:420px; text-align:center; float:left; }
    .oyunetiketleri { width:420px; float:left; line-height:18px; color:#7C7C7C;}
    .oyunetiketleri a { text-decoration:none; color:#7C7C7C; }
    .oyunetiketleri a:hover { text-decoration:underline; }
    .oyunsagblok { width:338px; float:left; margin-right:4px; }
    .oyunabasla { width:338px; float:left; background-image:url(images/basla-bg.png); height:100px; }
    .baslarken { margin-top:10px; margin-left:12px; margin-right:10px; float:left; width:110px; }
    .start { font-size:20px; margin-top:40px; }
    .start a { color:#ffffff; }
    .start a:hover { color:#0F6; }
    .paylas { width:320px; background-color:#E5E5E5; float:left; padding:7px; border:1px solid #939393;}
    .fpaylas { float:left; width:80px; }
    .fbegen {float:left; width:100px;}
    .tyolla {float:left; width:92px; }
    .plusarti {float:left; width:40px; }
    .benzeroyunlar { width:338px; padding-left:0px; float:left; background-image:url(images/benzer-oyunlar-bas.png); background-repeat:no-repeat; padding-top:43px; height:388px; }
    .benzeroyunlar ul { list-style:none; margin:0px; padding:0px; }
    .benzeroyunlar ul li{ float:left; background-image:url(images/benzerler-li-bg.png); width:100px; height:100px; margin:0px 6px 15px 6px; text-align:center; overflow:hidden;}
    .benzeroyunlar ul li:hover { background-image:url(images/benzerler-li-bg-hover.png); cursorointer; color:#FFFFFF; }
    .benzeroyunlar ul li img { width:98px; height:63px; margin:1px 1px 6px 1px; float:left; clear:both; }
    .benzeroyunlar ul li a{ color:#232323; font-family:tahoma; font-size:11px; text-decoration:none; font-weight:bold;}
    .taban { width:980px; float:left; height:112px; background-image:url(images/taban-bg.png); }
    .populerkategilermenusu { width:770px; padding-left:210px; height:40px; overflow:hidden; }
    .populerkategilermenusu ul { list-style:none; margin:0px; padding:0px; width:680px; float:left; overflow:hidden;}
    .populerkategilermenusu ul li{ float:left; font-size:11px; font-family:tahoma; margin-right:15px; margin-top:15px; }
    .populerkategilermenusu ul li a{ text-decoration:none; color:#7d4198;text-shadow: 1px 1px 1px #FFFFFF; }
    .populerkategilermenusu ul li a:hover{ color:#2F2F2F;text-shadow: 1px 1px 1px #FFFFFF; }
    .tabanbilgi { width:820px; padding-left:150px ;background-image:url(images/footer-logo.png); background-repeat:no-repeat; margin:6px 5px; height:60px; overflow:hidden; }
    .populerkategilermenusu a{ text-decoration:none; color:#7d4198;text-shadow: 1px 1px 1px #FFFFFF;font-size:11px; font-family:tahoma; margin-top:15px; }
    .bitir { width:820px; float:left; font-size:11px; color:#252525; line-height:20px; height:60px; overflow:hidden; }
    .bitir a { text-decoration:none; color:#252525; }
    .navigation {margin: 10px 0px 20px 0px; float:left; width: 780px; }
    .pagenavi { float:left; width: 780px; }
    .pagenavi a { background-image:url(images/sayfa-a.png); height:32px; line-height:32px; width:32px; text-align:center; float:left; text-decoration: none; color: #ffffff; margin-right:5px;}
    .pagenavi a:hover { color: #444;background-image:url(images/sayfa-a-hover.png);}
    .pagenavi span.pages {color: #825a2d;height:32px; line-height:32px; width:32px; text-align:center; float:left;font-weight:bold;background-color: inherit;}
    .pagenavi span.current { background-image:url(images/sayfa-a-aktif.png); height:32px; line-height:32px; width:32px; text-align:center; float:left; text-decoration: none;color: #ffffff; margin-right:5px;}
    .pagenavi span.expand {background-image:url(images/sayfa-a.png); height:32px; line-height:32px; width:32px; text-align:center; float:left;text-decoration: none; color: #ffffff; margin-right:5px;}
    .onsayfayorumlar {width:97%; float:left; margin-top:15px; background-image:url(images/yorum-bas.png); padding-top:43px; background-repeat:no-repeat; }
    .yorumnedir { width:97%; padding:4px; border:1px solid #F7941D; color:#6b6b6b;background-color:#F8BB49; float:left; margin-bottom:10px; }
    .yorumnedir strong {color:#5D2577; }
    .yorumnedir p { margin:0px; padding:0px; line-height:16px; margin-top:3px; color:#6b6b6b; font-size:11px;}
    .yorumsayfala { width:97%; float:left;}
    .eskiler { width:50%; float:left; text-align:left; } .yeniler { width:50%; float:right; text-align:right; }
    .yorumsayfala a { text-decoration:none; font-size:11px; font-weight:bold; color:#303030; }
    .yorumsayfala a:hover { text-decoration:underline; }
    #respond input { width: 50%; margin: 7px 3px 0px 0px; padding: 4px; font-size: 1.1em; border: 1px solid #ddd; }
    #respond .author, #commentform .email, #commentform .url { padding: 5px; background: #fff; color: #000;}
    #respond textarea { width:97%; height: 100px;margin:7px 0px 0px 0px; padding: 4px; font-family: Arial, Helvetica, sans-serif; font-size: 1.1em; line-height: 16px; border: 1px solid #ddd; }
    #respond .submit { background: #900A50; width: auto; color: #fff; padding: 5px 10px; text-align: center; font-size: 13px; font-family:tahoma; font-weight: bold; cursor: pointer; margin-bottom:10px; }
    .oyuncak { width:770px; float:left; text-align:center; background-color:#4A4A4A; }
    .reklamuzun { width:770px; float:left; text-align:center; height:90px; line-height:90px; }
    .bilgisar { width:770px; float:left; margin-bottom:10px; text-align:justify;}
    .bilgisar p { margin:0px; padding:0px; line-height:18px; }
    .bunedir { display:block; border-bottom: 3px double #8F0A50; color:#8F0A50; font-size:16px; margin:10px 0px 3px 0px; padding-bottom:3px; font-family:"Trebuchet MS", Arial, Helvetica, sans-serif; font-weight:bold; }
    .toplamyorum { width:370px; float:left; margin-right:10px; }
  • 14-03-2013, 10:56:56
    #2
    yok mu yardm edecek vallahhi helal olsun okadar kişi bakmış
  • 14-03-2013, 16:29:26
    #3
    .sagblok1 { width:870px; float:left; margin-left:10px; }

    değiştir:

    .sagblok1 { float:left; margin-left:10px; }
  • 15-03-2013, 01:21:39
    #4
    masumm adlı üyeden alıntı: mesajı görüntüle
    .sagblok1 { width:870px; float:left; margin-left:10px; }

    değiştir:

    .sagblok1 { float:left; margin-left:10px; }
    sağolsun masumm kardeşim yardımcı oldu teşekkür ederim.