• 26-11-2016, 14:39:58
    #1
    Merhaba arkadaşlar bir wordpress sitem var. Videoların olduğu bir kategori var ben bu videoları sub domain açıp oraya ya bi html sayfası olabilir yada başka aklınıza ne gelirse sub domaine çekmek istiyorum ( Her eklenen yeni konuyu da yapabilirsem otomatik çekicek.) Sonra da bu sub domaıne ait webview uygulama yapacağım. Nasıl yapabilirim ?
  • 26-11-2016, 14:50:33
    #2
    EEM
    Üyeliği durduruldu
    Euphrates adlı üyeden alıntı: mesajı görüntüle
    Merhaba arkadaşlar bir wordpress sitem var. Videoların olduğu bir kategori var ben bu videoları sub domain açıp oraya ya bi html sayfası olabilir yada başka aklınıza ne gelirse sub domaine çekmek istiyorum ( Her eklenen yeni konuyu da yapabilirsem otomatik çekicek.) Sonra da bu sub domaıne ait webview uygulama yapacağım. Nasıl yapabilirim ?

    hocam videomobil.php adında bir dosya oluşturup şu kodu kendine göre düzenleyerek kaydedip ana dizine gönder.

    <?php
    include "/home/kullanıcıadınız/public_html/wp-config.php"; 
    mysql_query("SET NAMES 'utf-8'"); 
    mysql_query("SET CHARACTER SET utf-8"); 
    mysql_query("SET COLLATION_CONNECTION = 'latin5_turkish_ci'"); 
    $my_query = new WP_Query('showposts=10&cat=1'); 
    while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID; ?> 
    <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><font face="Tahoma"><?php the_title(); ?></font></a>
    <?php endwhile; ?>
    showposts=10 - gösterilecek yazı sayısı
    cat=1 - kategori id'si

    ardından subdomainde bu yazıları göstereceğin dosyaya şu kodu ekle;

    <?php
    $adres = @file_get_contents("http://www.adres.com/videomobil.php");
    echo $adres;
    ?>
  • 26-11-2016, 14:55:49
    #3
    EEM adlı üyeden alıntı: mesajı görüntüle
    hocam videomobil.php adında bir dosya oluşturup şu kodu kendine göre düzenleyerek kaydedip ana dizine gönder.

    <?php
    include "/home/kullanıcıadınız/public_html/wp-config.php"; 
    mysql_query("SET NAMES 'utf-8'"); 
    mysql_query("SET CHARACTER SET utf-8"); 
    mysql_query("SET COLLATION_CONNECTION = 'latin5_turkish_ci'"); 
    $my_query = new WP_Query('showposts=10&cat=1'); 
    while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID; ?> 
    <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><font face="Tahoma"><?php the_title(); ?></font></a>
    <?php endwhile; ?>
    showposts=10 - gösterilecek yazı sayısı
    cat=1 - kategori id'si

    ardından subdomainde bu yazıları göstereceğin dosyaya şu kodu ekle;

    <?php
    $adres = @file_get_contents("http://www.adres.com/videomobil.php");
    echo $adres;
    ?>

    Hemen deniyorum, sen varya cansın (:
  • 26-11-2016, 18:51:36
    #4
    EEM adlı üyeden alıntı: mesajı görüntüle
    hocam videomobil.php adında bir dosya oluşturup şu kodu kendine göre düzenleyerek kaydedip ana dizine gönder.

    <?php
    include "/home/kullanıcıadınız/public_html/wp-config.php"; 
    mysql_query("SET NAMES 'utf-8'"); 
    mysql_query("SET CHARACTER SET utf-8"); 
    mysql_query("SET COLLATION_CONNECTION = 'latin5_turkish_ci'"); 
    $my_query = new WP_Query('showposts=10&cat=1'); 
    while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID; ?> 
    <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><font face="Tahoma"><?php the_title(); ?></font></a>
    <?php endwhile; ?>
    showposts=10 - gösterilecek yazı sayısı
    cat=1 - kategori id'si

    ardından subdomainde bu yazıları göstereceğin dosyaya şu kodu ekle;

    <?php
    $adres = @file_get_contents("http://www.adres.com/videomobil.php");
    echo $adres;
    ?>
    Malesef yapamadım :S
  • 26-11-2016, 19:42:05
    #5
    EEM
    Üyeliği durduruldu
    hocam sonuç sayfasını pm olarak iletebilir misin.

    kusura bakma ben de bir temanın ortasında kaybolmuş durumdayım şuan.
  • 26-11-2016, 20:19:14
    #6
    EEM adlı üyeden alıntı: mesajı görüntüle
    hocam sonuç sayfasını pm olarak iletebilir misin.

    kusura bakma ben de bir temanın ortasında kaybolmuş durumdayım şuan.
    Öncelikle Wordpadd e videomobil.php dosyalaını ekledim. Kullanıcı adını düzenledim. kaydettiim ana dizine attım. Sonra sub domain olarak video.xxxx.xxx oluşturdum. Sonrasında o atıgın altakı kodları aldım index.php dosyasının içine yükledim site adını güncelledim.
    video.xx.xx in içine gönderdim.
    video.xxx.xxx i açınca bana bu hatayı veriyor

    Warning: mysql_query(): Access denied for user ''@'localhost' (using password: NO) in /home/xxxxx/public_html/videomobil.php on line 3
    
    Warning: mysql_query(): A link to the server could not be established in /home/xxxxxxxx/public_html/videomobil.php on line 3
    
    Warning: mysql_query(): Access denied for user ''@'localhost' (using password: NO) in /home/xxxxxx/public_html/videomobil.php on line 4
    
    Warning: mysql_query(): A link to the server could not be established in /home/xxxxxxx/public_html/videomobil.php on line 4
    
    Warning: mysql_query(): Access denied for user ''@'localhost' (using password: NO) in /home/xxxxxx/public_html/videomobil.php on line 5
    
    Warning: mysql_query(): A link to the server could not be established in /home/xxxxxx/public_html/videomobil.php on line 5
    Biryerde hata mı yapıyorum acaba ?