• 26-08-2019, 14:40:14
    #1
    Merhabalar,
    Wordpress tabanlı web sitesini sadece mobile açmak için nasıl bir kod girmem gerekir.
    veya apk uygulamasından sadece açılmasını nasıl sağlarız. ?
  • 26-08-2019, 14:41:30
    #2
    takipdeyim
  • 26-08-2019, 14:43:17
    #3
    Benimde aklımda bir proje var bunu düşünüyordum. Takipteyim.
  • 26-08-2019, 14:49:16
    #4
    islamuner34 adlı üyeden alıntı: mesajı görüntüle
    Merhabalar,
    Wordpress tabanlı web sitesini sadece mobile açmak için nasıl bir kod girmem gerekir.
    veya apk uygulamasından sadece açılmasını nasıl sağlarız. ?
    Bu sınıfı kullanabilirsiniz.

    http://mobiledetect.net/

    wordpress index.php dosyanıza dahil edin bunu

    // Include and instantiate the class.
    require_once 'Mobile_Detect.php';
    $detect = new Mobile_Detect;

    // Any mobile device (phones or tablets).
    if ( $detect->isMobile() ) {
    BURAYA index.php DOSYASI İÇERİSİNDE YER ALAN KODLAR EKLENECEK
    }else{
    echo "Bilgisayardan giremezsin!";
    }
  • 26-08-2019, 14:54:17
    #5
    celalyesil adlı üyeden alıntı: mesajı görüntüle
    Bu sınıfı kullanabilirsiniz.

    http://mobiledetect.net/

    wordpress index.php dosyanıza dahil edin bunu

    // Include and instantiate the class.
    require_once 'Mobile_Detect.php';
    $detect = new Mobile_Detect;

    // Any mobile device (phones or tablets).
    if ( $detect->isMobile() ) {
    BURAYA index.php DOSYASI İÇERİSİNDE YER ALAN KODLAR EKLENECEK
    }else{
    echo "Bilgisayardan giremezsin!";
    }
    500 Hatası aldım.
    <?php
    /**
    * Front to the WordPress application. This file doesn't do anything, but loads
    * wp-blog-header.php which does and tells WordPress to load the theme.
    *
    * @package WordPress
    */
    
    /**
    * Tells WordPress to load the WordPress theme and output it.
    *
    * @var bool
    */
    define( 'WP_USE_THEMES', true );
    
    /** Loads the WordPress Environment and Template */
    require( dirname( __FILE__ ) . '/wp-blog-header.php' );
    şu kodlar php de var.
  • 26-08-2019, 14:58:10
    #6
    islamuner34 adlı üyeden alıntı: mesajı görüntüle
    500 Hatası aldım.
    <?php
    /**
    * Front to the WordPress application. This file doesn't do anything, but loads
    * wp-blog-header.php which does and tells WordPress to load the theme.
    *
    * @package WordPress
    */
    
    /**
    * Tells WordPress to load the WordPress theme and output it.
    *
    * @var bool
    */
    define( 'WP_USE_THEMES', true );
    
    /** Loads the WordPress Environment and Template */
    require( dirname( __FILE__ ) . '/wp-blog-header.php' );
    şu kodlar php de var.
    Bu dosyayı indirip ana dizine attınızmı?
    Mobile_Detect.php
  • 26-08-2019, 15:01:16
    #7
    celalyesil adlı üyeden alıntı: mesajı görüntüle
    Bu dosyayı indirip ana dizine attınızmı?
    Mobile_Detect.php
    Evet attım
  • 28-08-2019, 09:41:36
    #8
    islamuner34 adlı üyeden alıntı: mesajı görüntüle
    Evet attım
    dosyanın en başına

    <?php
    error_reporting(E_ALL);
    ini_set("display_errors", 1);
    ?>
    bunu yazarak hatayı görebiliriz. Sonucu yazarsanız yardımcı olmaya çalışayım.
  • 28-08-2019, 13:51:05
    #9
    celalyesil adlı üyeden alıntı: mesajı görüntüle
    dosyanın en başına

    <?php
    error_reporting(E_ALL);
    ini_set("display_errors", 1);
    ?>
    bunu yazarak hatayı görebiliriz. Sonucu yazarsanız yardımcı olmaya çalışayım.
    teşekkür ederim yaptım.