Hallo! Selamat Datang di Marketplace produk digital, Freelancer terbaik di indonesia (62756 Members, 730 Products, 4822 Topic, 12377 Comments)

Butuh karyawan baru? atau seorang Web Developer (Part-time/Freelance/Full-time), cari disini : Members Area Jobs!

Mohon dijawab, Swarakalibata CI - Whatsapp tdk muncul thumbnail

Dibuat
Login Terakhir 1 Tahun lalu,
Telah Dilihat 1779 Kali
Ahmad Zubair Mengatakan : Premium
Assalamualaikum Warahmatullahi Wabarakatuh...
Di whatsapp tdk muncul thumbnail beritanya Mas, bagaimana agar muncul?

Mohon Jawabannya
1

Ada 13 Jawaban

Bukhori Muslim
commented on 19 Okt 2018 07:46:57
Assalam,.. Coba buka file "application/views/phpmu-one/template.php"
lalu cari kode berikut :
 
<?php if ($this->uri->segment(1)=='berita' AND $this->uri->segment(2)=='detail'){ 
  
$rows $this->db->query("SELECT * FROM berita where judul_seo='".$this->uri->segment(3)."'")->row_array();
   echo 
'<meta property="og:title" content="'.$title.'" />
     <meta property="og:type" content="article" />
     <meta property="og:url" content="'
.base_url().''.$this->uri->segment(3).'" />
     <meta property="og:image" content="'
.base_url().'asset/foto_berita/'.$rows['gambar'].'" />
     <meta property="og:description" content="'
.$description.'"/>';
?>

Ubah menjadi :
<?php if ($this->uri->segment(1)=='berita' AND $this->uri->segment(2)=='detail'){ 
  
$rows $this->db->query("SELECT * FROM berita where judul_seo='".$this->uri->segment(3)."'")->row_array();
   echo 
'<meta property="og:title" content="'.$title.'" />
     <meta property="og:type" content="article" />
     <meta property="og:url" content="'
.base_url().''.$this->uri->segment(3).'" />
     <meta property="og:image" content="'
.base_url().'asset/foto_berita/'.$rows['gambar'].'" />
     <meta content="'
.base_url().'asset/foto_berita/'.$rows['gambar'].'" itemprop="url"/>
     <div itemprop="image" itemscope="itemscope" itemtype="https://schema.org/ImageObject">
           <meta content="'
.base_url().'asset/foto_berita/'.$rows['gambar'].'" itemprop="url"/>
      </div>
     <meta property="og:description" content="'
.$description.'"/>';
?>

1
Ahmad Zubair
commented on 19 Okt 2018 14:12:05
Assalam,.. 

saya pakai phpmu-tigo Mas
1
Ahmad Zubair
commented on 19 Okt 2018 14:14:35
Assalam,.. 

belum bisa Mas
1
Bukhori Muslim
commented on 20 Okt 2018 06:23:58
Assalam,.. Saya bisa..  ^_^ 1
Terdapat 1 File dilampirkan :
1. IMG_20181020_062135.JPG (177 KB)
Ahmad Zubair
commented on 24 Okt 2018 07:22:09
Assalam,.. 
Saya pakai template phpmu tigo mas bukan one
Mohon dikoreksi
1
Bukhori Muslim
commented on 24 Okt 2018 19:16:54
Assalam,.. sama saja gan caranya, mau pake phpmu-tigo, phpmu-duo, atau phpmu-one,. ^_^
itu hanya masalah pada <meta property, pake CMS apapun caranya tetap seperti itu.
1
Nuli Nenggani
commented on 24 Okt 2018 21:34:35
Assalam,.. 
Ada koneksi di wa nya gk???
1
Saefullah11
commented on 20 Nov 2018 11:02:32
<?php
  error_reporting
(0);
?>
<!DOCTYPE HTML>
<html lang = "en">
    <head>
        <title><?php include "include/mu_title.php"?></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no" />
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="robots" content="index, follow">
        <meta name="description" content="<?php include "include/mu_description.php"?>">
        <meta name="keywords" content="<?php include "include/mu_keywords.php"?>">
        <meta name="author" content="phpmu.com">
        <meta http-equiv="imagetoolbar" content="no">
        <meta name="language" content="Indonesia">
        <meta name="revisit-after" content="7">
        <meta name="webcrawlers" content="all">
        <meta name="rating" content="general">
        <meta name="spiders" content="all">
        <?php
            $c 
mysqli_fetch_array(mysqli_query($koneksi"SELECT * FROM background")); 
            
$iden mysqli_fetch_array(mysqli_query($koneksi"SELECT * FROM identitas")); 
            if (
$_GET['module']=='detailberita') { 
              
$d mysqli_fetch_array(mysqli_query($koneksi"SELECT gambar FROM berita where judul_seo='".anti_injection($_GET[judul])."'"));
              echo 
"<meta property=\"og:url\" content=\"$iden[url]/berita-$_GET[judul].html\" >";
                 if (!empty(
$d[gambar])){
                      echo 
"<meta property=\"og:image\" content=\"$iden[url]/foto_berita/small_$d[gambar]\" >";
                 }
            }
        
?>
        <link rel="shortcut icon" href="favicon.png" />
        <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="rss.xml" />
        <link rel="stylesheet" href="<?php echo "$f[folder]/background/lightbox.css" ?>">
        <link type="text/css" rel="stylesheet" href="<?php echo "$f[folder]/background/$c[gambar]/reset.css" ?>" />
        <link type="text/css" rel="stylesheet" href="<?php echo "$f[folder]/background/$c[gambar]/main-stylesheet.css" ?>" />
        <link type="text/css" rel="stylesheet" href="<?php echo "$f[folder]/background/$c[gambar]/lightbox.css" ?>" />
        <link type="text/css" rel="stylesheet" href="<?php echo "$f[folder]/background/$c[gambar]/shortcode.css" ?>" />
        <link type="text/css" rel="stylesheet" href="<?php echo "$f[folder]/background/$c[gambar]/fonts.css" ?>" />
        <link type="text/css" rel="stylesheet" href="<?php echo "$f[folder]/background/$c[gambar]/gambars.css" ?>" />
        <link type="text/css" rel="stylesheet" href="<?php echo "$f[folder]/background/$c[gambar]/responsive.css" ?>" />
        <link rel="stylesheet" href="<?php echo "$f[folder]"?>/lightbox/lightbox.css">

    </head>

    <body>
    <div class='demo-settings'></div>
        <div class="boxed">        
            <div class="header">
                <?php include "header.php"?>
            </div>
            
            <div class="content">
                <div class="wrapper">                
                    <div class="breaking-news">
                        <span class="the-title">Breaking News</span>
                        <ul>
                            <?php
                              $terkini
=mysqli_query($koneksi"SELECT * FROM berita where status='Y' ORDER BY id_berita  DESC LIMIT 10");
                              while(
$te=mysqli_fetch_array($terkini)){
                                echo 
"<li><a href='berita-$te[judul_seo].html'>$te[judul]</a></li>";
                              }
                            
?>
                        </ul>
                    </div>

                    <div class="main-content">

                        <?php
                            
if ($_GET['module']=='home'){ 
                        
?>
                            <div class="main-page left">
                                <div class="double-block">

                                    <div class="content-block main right">
                                        <?php include "content.php"?>        
                                    </div>
                                    
                                    <div class="content-block left">
                                        <?php include "sidebar_kiri.php"?>
                                    </div>
                                </div>
                            </div>
                            <div class="main-sidebar right">
                                <?php include "sidebar_kanan.php"?>
                            </div>
                            
                        <?php
                            
}elseif ($_GET['module']=='detailberita'){
                                include 
"detailberita.php";
                                    echo 
"<div class='main-sidebar right'>";
                                        include 
"sidebar_kanan_berita.php"
                                    echo 
"</div>";
                            
                            }elseif (
$_GET['module']=='konsultasi'){
                                include 
"konsultasi.php";
                                    echo 
"<div class='main-sidebar right'>";
                                        include 
"sidebar_kanan_berita.php"
                                    echo 
"</div>";
                            
                            }elseif (
$_GET['module']=='detailkategori'){
                                include 
"detailkategori.php";
                                
                            }elseif (
$_GET['module']=='hasilcari'){
                                include 
"hasilcari.php";
                                
                            }elseif (
$_GET['module']=='semuaplaylist'){
                                include 
"semuaplaylist.php";
                                
                            }elseif (
$_GET['module']=='semuaagenda'){
                                include 
"semua-agenda.php";
                                
                            }elseif (
$_GET['module']=='detailagenda'){
                                include 
"semua-agenda-detail.php";
                                    echo 
"<div class='main-sidebar right'>";
                                        include 
"sidebar_kanan_statis.php"
                                    echo 
"</div>";
                                
                            }elseif (
$_GET['module']=='detailtag'){
                                include 
"detailtag.php";
                                
                            }elseif (
$_GET['module']=='detailmenu'){
                                include 
"detailmenu.php";
                                    echo 
"<div class='main-sidebar right'>";
                                        include 
"sidebar_kanan_statis.php"
                                    echo 
"</div>";
                                
                            }elseif (
$_GET['module']=='register'){
                                include 
"register.php";
                                    echo 
"<div class='main-sidebar right'>";
                                        include 
"sidebar_kanan_statis.php"
                                    echo 
"</div>";
                                
                            }elseif (
$_GET['module']=='siswa'){
                                include 
"siswa.php";
                                    echo 
"<div class='main-sidebar right'>";
                                        include 
"sidebar_kanan_statis.php"
                                    echo 
"</div>";
                                
                            }elseif (
$_GET['module']=='pegawai'){
                                include 
"pegawai.php";
                                    echo 
"<div class='main-sidebar right'>";
                                        include 
"sidebar_kanan_statis.php"
                                    echo 
"</div>";
                                
                            }elseif (
$_GET['module']=='hasilpoling'){
                                include 
"polling-hasil.php";
                                    echo 
"<div class='main-sidebar right'>";
                                        include 
"sidebar_kanan_statis.php"
                                    echo 
"</div>";
                                
                            }elseif (
$_GET['module']=='lihatpoling'){
                                include 
"polling-lihat.php";
                                    echo 
"<div class='main-sidebar right'>";
                                        include 
"sidebar_kanan_statis.php"
                                    echo 
"</div>";
                                
                            }elseif (
$_GET['module']=='detailalbum'){
                                include 
"berita-foto-detail.php";
                                    echo 
"<div class='main-sidebar right'>";
                                        include 
"sidebar_kanan_statis.php"
                                    echo 
"</div>";
                                
                            }elseif (
$_GET['module']=='hubungikami'){
                                include 
"hubungi.php";
                                
                            }elseif (
$_GET['module']=='hubungiaksi'){
                                include 
"hubungiaksi.php";
                                
                            }elseif (
$_GET['module']=='semuaalbum'){
                                include 
"berita-foto.php";
                                
                            }elseif (
$_GET['module']=='epaper'){
                                include 
"epaper-list.php";
                                
                            }elseif (
$_GET['module']=='detailepaper'){
                                include 
"epaper-detail.php";
                                
                            }elseif (
$_GET['module']=='play'){
                                include 
"play.php";
                                echo 
"<div class='main-sidebar right'>";
                                        include 
"sidebar_video.php"
                                echo 
"</div>";
                                
                            }elseif (
$_GET['module']=='hasilcari'){
                                include 
"hasilcari.php";
                                
                            }elseif (
$_GET['module']=='indeksberita'){
                                include 
"indexs-berita.php";
                                
                            }elseif (
$_GET['module']=='semuadownload'){
                                include 
"semua-download.php";
                                echo 
"<div class='main-sidebar right'>";
                                        include 
"sidebar_kanan_statis.php"
                                echo 
"</div>";
                            }
                        
?>
                        <div class="clear-float"></div>
                    </div>
                </div>
            </div>

            <footer>
                <div class="footer">
                    <?php include "footer.php"?>
                </div>
            </footer>
            <?php
              
// Statistik user
              
$ip      $_SERVER['REMOTE_ADDR']; // Mendapatkan IP komputer user
              
$tanggal date("Ymd"); // Mendapatkan tanggal sekarang
              
$waktu   time(); // 
              
$s mysqli_query($koneksi"SELECT * FROM statistik WHERE ip='$ip' AND tanggal='$tanggal'");
              if(
mysqli_num_rows($s) == 0){
                    
mysqli_query($koneksi"INSERT INTO statistik(ip, tanggal, hits, online) VALUES('$ip','$tanggal','1','$waktu')");
              }else{
                    
mysqli_query($koneksi"UPDATE statistik SET hits=hits+1, online='$waktu' WHERE ip='$ip' AND tanggal='$tanggal'");
              }
            
?>
        </div>

        <!-- Scripts -->
        <script type="text/javascript" src="<?php echo "$f[folder]/jscript/jquery-1.11.3.min.js" ?>"></script>
        <script type="text/javascript" src="<?php echo "$f[folder]/jscript/jquery-latest.min.js" ?>"></script>
        <script type="text/javascript" src="<?php echo "$f[folder]/jscript/theme-scripts.js" ?>"></script>
        <script type="text/javascript" src="<?php echo "$f[folder]/jscript/turn.js" ?>"></script>
        <script type="text/javascript" src="<?php echo "$f[folder]/jscript/validasi.js"?>"></script>
        
</body>
</html>



posisi peletakkannya dimana ya pak?
saya tidak menemukan posisi script yang akan digantikan.
1
sudirman saputra
commented on 04 Sep 2019 01:46:32
Assalamualaikum,.. mas @fitriani11 mungkin bisa di koreksi lagi untuk penempatan meta properti opengraph nya? untuk melakukan cek OG nya bisa menggunakan debugger objek dari facebook https://developers.facebook.com/tools/debug/og/object/ 1
Bukhori Muslim
commented on 05 Sep 2019 06:12:37
Assalamualaikum,.. Alhamdulillah sudah dibantu jawab oleh agan Sudirman Saputra. Jazakallahu Khoir,.. ^_^ 1
rabinsssss
commented on 17 Sep 2019 13:38:49
Assalamualaikum,.. iya mas php tigo tidak muncul thumbnailnya 1
PHPMU.COM Support
commented on 17 Sep 2019 13:59:10
Assalamualaikum,.. buka file "application/views/phpmu-tigo/template.php"
baris 18 cari kode ini :
<?php if ($this->uri->segment(1)=='berita' AND $this->uri->segment(2)=='detail'){ $rows $this->model_utama->view_where('berita',array('judul_seo' => $this->uri->segment(3)))->row_array();
echo 
'<meta property="og:title" content="'.$title.'" />
     <meta property="og:type" content="article" />
     <meta property="og:url" content="'
.base_url().''.$this->uri->segment(3).'" />
     <meta property="og:image" content="'
.base_url().'asset/foto_berita/'.$rows['gambar'].'" />
     <meta property="og:description" content="'
.$description.'"/>';
?>

ubah menjadi :
<?php 
$berita 
$this->model_utama->view_where('berita',array('judul_seo' => $this->uri->segment(1)));
if (
$berita->num_rows()>=1){
$rows $berita->row_array();
echo 
'<meta property="og:title" content="'.$title.'" />
     <meta property="og:type" content="article" />
     <meta property="og:url" content="http://'
.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'].'" />
     <meta property="og:image" content="'
.base_url().'asset/foto_berita/'.$rows['gambar'].'" />
     <meta property="og:description" content="'
.$description.'"/>';
}
?>
1
Dhyar Irdiansyah
commented on 30 Agu 2021 21:01:15
Assalamualaikum,.. maaf mas, nyambung.
Kalau misal mau bedain antara homepage dengan detail berita gimana caranya yah? Misalnya kalau di homepage type nya mau disetting "website", sedangkan di detail berita "content"
1
Maaf, Untuk Memberikan Komentar Anda Harus Login !!!