Hallo! Selamat Datang di Marketplace produk digital, Freelancer terbaik di indonesia (65346 Members, 764 Products, 5083 Topic, 12753 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 2 Tahun lalu,
Telah Dilihat 2664 Kali
Ahmad Zubair Mengatakan : Sultan Account
  1. Assalamualaikum Warahmatullahi Wabarakatuh...
  2. Di whatsapp tdk muncul thumbnail beritanya Mas, bagaimana agar muncul?
  3.  
  4. Mohon Jawabannya

Ada 13 Jawaban

Bukhori Muslim
commented on 19 Okt 2018 07:46:57
  1. Assalam,.. Coba buka file "application/views/phpmu-one/template.php"
  2. lalu cari kode berikut :
  3.  
  4. <?php if ($this->uri->segment(1)=='berita' AND $this->uri->segment(2)=='detail'){
  5. $rows = $this->db->query("SELECT * FROM berita where judul_seo='".$this->uri->segment(3)."'")->row_array();
  6. echo '<meta property="og:title" content="'.$title.'" />
  7. <meta property="og:type" content="article" />
  8. <meta property="og:url" content="'.base_url().''.$this->uri->segment(3).'" />
  9. <meta property="og:image" content="'.base_url().'asset/foto_berita/'.$rows['gambar'].'" />
  10. <meta property="og:description" content="'.$description.'"/>';
  11. } ?>
  12.  
  13. Ubah menjadi :
  14. <?php if ($this->uri->segment(1)=='berita' AND $this->uri->segment(2)=='detail'){
  15. $rows = $this->db->query("SELECT * FROM berita where judul_seo='".$this->uri->segment(3)."'")->row_array();
  16. echo '<meta property="og:title" content="'.$title.'" />
  17. <meta property="og:type" content="article" />
  18. <meta property="og:url" content="'.base_url().''.$this->uri->segment(3).'" />
  19. <meta property="og:image" content="'.base_url().'asset/foto_berita/'.$rows['gambar'].'" />
  20. <meta content="'.base_url().'asset/foto_berita/'.$rows['gambar'].'" itemprop="url"/>
  21. <div itemprop="image" itemscope="itemscope" itemtype="https://schema.org/ImageObject">
  22. <meta content="'.base_url().'asset/foto_berita/'.$rows['gambar'].'" itemprop="url"/>
  23. </div>
  24. <meta property="og:description" content="'.$description.'"/>';
  25. } ?>
  26.  
  27.  
Ahmad Zubair
commented on 19 Okt 2018 14:12:05
  1. Assalam,..
  2.  
  3. saya pakai phpmu-tigo Mas
Ahmad Zubair
commented on 19 Okt 2018 14:14:35
  1. Assalam,..
  2.  
  3. belum bisa Mas
Bukhori Muslim
commented on 20 Okt 2018 06:23:58
  1. Assalam,.. Saya bisa.. ^_^
Terdapat 1 File dilampirkan :
1. IMG_20181020_062135.JPG (177 KB)
Ahmad Zubair
commented on 24 Okt 2018 07:22:09
  1. Assalam,..
  2. Saya pakai template phpmu tigo mas bukan one
  3. Mohon dikoreksi
Bukhori Muslim
commented on 24 Okt 2018 19:16:54
  1. Assalam,.. sama saja gan caranya, mau pake phpmu-tigo, phpmu-duo, atau phpmu-one,. ^_^
  2. itu hanya masalah pada <meta property, pake CMS apapun caranya tetap seperti itu.
Nuli Nenggani
commented on 24 Okt 2018 21:34:35
  1. Assalam,..
  2. Ada koneksi di wa nya gk???
Saefullah11
commented on 20 Nov 2018 11:02:32
  1. <?php
  2. ?>
  3. <!DOCTYPE HTML>
  4. <html lang = "en">
  5. <head>
  6. <title><?php include "include/mu_title.php"; ?></title>
  7. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  8. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
  9. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no" />
  10. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  11. <meta name="robots" content="index, follow">
  12. <meta name="description" content="<?php include "include/mu_description.php"; ?>">
  13. <meta name="keywords" content="<?php include "include/mu_keywords.php"; ?>">
  14. <meta name="author" content="phpmu.com">
  15. <meta http-equiv="imagetoolbar" content="no">
  16. <meta name="language" content="Indonesia">
  17. <meta name="revisit-after" content="7">
  18. <meta name="webcrawlers" content="all">
  19. <meta name="rating" content="general">
  20. <meta name="spiders" content="all">
  21. <?php
  22. $c = mysqli_fetch_array(mysqli_query($koneksi, "SELECT * FROM background"));
  23. $iden = mysqli_fetch_array(mysqli_query($koneksi, "SELECT * FROM identitas"));
  24. if ($_GET['module']=='detailberita') {
  25. $d = mysqli_fetch_array(mysqli_query($koneksi, "SELECT gambar FROM berita where judul_seo='".anti_injection($_GET[judul])."'"));
  26. echo "<meta property=\"og:url\" content=\"$iden[url]/berita-$_GET[judul].html\" >";
  27. if (!empty($d[gambar])){
  28. echo "<meta property=\"og:image\" content=\"$iden[url]/foto_berita/small_$d[gambar]\" >";
  29. }
  30. }
  31. ?>
  32. <link rel="shortcut icon" href="favicon.png" />
  33. <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="rss.xml" />
  34. <link rel="stylesheet" href="<?php echo "$f[folder]/background/lightbox.css" ?>">
  35. <link type="text/css" rel="stylesheet" href="<?php echo "$f[folder]/background/$c[gambar]/reset.css" ?>" />
  36. <link type="text/css" rel="stylesheet" href="<?php echo "$f[folder]/background/$c[gambar]/main-stylesheet.css" ?>" />
  37. <link type="text/css" rel="stylesheet" href="<?php echo "$f[folder]/background/$c[gambar]/lightbox.css" ?>" />
  38. <link type="text/css" rel="stylesheet" href="<?php echo "$f[folder]/background/$c[gambar]/shortcode.css" ?>" />
  39. <link type="text/css" rel="stylesheet" href="<?php echo "$f[folder]/background/$c[gambar]/fonts.css" ?>" />
  40. <link type="text/css" rel="stylesheet" href="<?php echo "$f[folder]/background/$c[gambar]/gambars.css" ?>" />
  41. <link type="text/css" rel="stylesheet" href="<?php echo "$f[folder]/background/$c[gambar]/responsive.css" ?>" />
  42. <link rel="stylesheet" href="<?php echo "$f[folder]"; ?>/lightbox/lightbox.css">
  43.  
  44. </head>
  45.  
  46. <body>
  47. <div class='demo-settings'></div>
  48. <div class="boxed">
  49. <div class="header">
  50. <?php include "header.php"; ?>
  51. </div>
  52.  
  53. <div class="content">
  54. <div class="wrapper">
  55. <div class="breaking-news">
  56. <span class="the-title">Breaking News</span>
  57. <ul>
  58. <?php
  59. $terkini=mysqli_query($koneksi, "SELECT * FROM berita where status='Y' ORDER BY id_berita DESC LIMIT 10");
  60. while($te=mysqli_fetch_array($terkini)){
  61. echo "<li><a href='berita-$te[judul_seo].html'>$te[judul]</a></li>";
  62. }
  63. ?>
  64. </ul>
  65. </div>
  66.  
  67. <div class="main-content">
  68.  
  69. <?php
  70. if ($_GET['module']=='home'){
  71. ?>
  72. <div class="main-page left">
  73. <div class="double-block">
  74.  
  75. <div class="content-block main right">
  76. <?php include "content.php"; ?>
  77. </div>
  78.  
  79. <div class="content-block left">
  80. <?php include "sidebar_kiri.php"; ?>
  81. </div>
  82. </div>
  83. </div>
  84. <div class="main-sidebar right">
  85. <?php include "sidebar_kanan.php"; ?>
  86. </div>
  87.  
  88. <?php
  89. }elseif ($_GET['module']=='detailberita'){
  90. include "detailberita.php";
  91. echo "<div class='main-sidebar right'>";
  92. include "sidebar_kanan_berita.php";
  93. echo "</div>";
  94.  
  95. }elseif ($_GET['module']=='konsultasi'){
  96. include "konsultasi.php";
  97. echo "<div class='main-sidebar right'>";
  98. include "sidebar_kanan_berita.php";
  99. echo "</div>";
  100.  
  101. }elseif ($_GET['module']=='detailkategori'){
  102. include "detailkategori.php";
  103.  
  104. }elseif ($_GET['module']=='hasilcari'){
  105. include "hasilcari.php";
  106.  
  107. }elseif ($_GET['module']=='semuaplaylist'){
  108. include "semuaplaylist.php";
  109.  
  110. }elseif ($_GET['module']=='semuaagenda'){
  111. include "semua-agenda.php";
  112.  
  113. }elseif ($_GET['module']=='detailagenda'){
  114. include "semua-agenda-detail.php";
  115. echo "<div class='main-sidebar right'>";
  116. include "sidebar_kanan_statis.php";
  117. echo "</div>";
  118.  
  119. }elseif ($_GET['module']=='detailtag'){
  120. include "detailtag.php";
  121.  
  122. }elseif ($_GET['module']=='detailmenu'){
  123. include "detailmenu.php";
  124. echo "<div class='main-sidebar right'>";
  125. include "sidebar_kanan_statis.php";
  126. echo "</div>";
  127.  
  128. }elseif ($_GET['module']=='register'){
  129. include "register.php";
  130. echo "<div class='main-sidebar right'>";
  131. include "sidebar_kanan_statis.php";
  132. echo "</div>";
  133.  
  134. }elseif ($_GET['module']=='siswa'){
  135. include "siswa.php";
  136. echo "<div class='main-sidebar right'>";
  137. include "sidebar_kanan_statis.php";
  138. echo "</div>";
  139.  
  140. }elseif ($_GET['module']=='pegawai'){
  141. include "pegawai.php";
  142. echo "<div class='main-sidebar right'>";
  143. include "sidebar_kanan_statis.php";
  144. echo "</div>";
  145.  
  146. }elseif ($_GET['module']=='hasilpoling'){
  147. include "polling-hasil.php";
  148. echo "<div class='main-sidebar right'>";
  149. include "sidebar_kanan_statis.php";
  150. echo "</div>";
  151.  
  152. }elseif ($_GET['module']=='lihatpoling'){
  153. include "polling-lihat.php";
  154. echo "<div class='main-sidebar right'>";
  155. include "sidebar_kanan_statis.php";
  156. echo "</div>";
  157.  
  158. }elseif ($_GET['module']=='detailalbum'){
  159. include "berita-foto-detail.php";
  160. echo "<div class='main-sidebar right'>";
  161. include "sidebar_kanan_statis.php";
  162. echo "</div>";
  163.  
  164. }elseif ($_GET['module']=='hubungikami'){
  165. include "hubungi.php";
  166.  
  167. }elseif ($_GET['module']=='hubungiaksi'){
  168. include "hubungiaksi.php";
  169.  
  170. }elseif ($_GET['module']=='semuaalbum'){
  171. include "berita-foto.php";
  172.  
  173. }elseif ($_GET['module']=='epaper'){
  174. include "epaper-list.php";
  175.  
  176. }elseif ($_GET['module']=='detailepaper'){
  177. include "epaper-detail.php";
  178.  
  179. }elseif ($_GET['module']=='play'){
  180. include "play.php";
  181. echo "<div class='main-sidebar right'>";
  182. include "sidebar_video.php";
  183. echo "</div>";
  184.  
  185. }elseif ($_GET['module']=='hasilcari'){
  186. include "hasilcari.php";
  187.  
  188. }elseif ($_GET['module']=='indeksberita'){
  189. include "indexs-berita.php";
  190.  
  191. }elseif ($_GET['module']=='semuadownload'){
  192. include "semua-download.php";
  193. echo "<div class='main-sidebar right'>";
  194. include "sidebar_kanan_statis.php";
  195. echo "</div>";
  196. }
  197. ?>
  198. <div class="clear-float"></div>
  199. </div>
  200. </div>
  201. </div>
  202.  
  203. <footer>
  204. <div class="footer">
  205. <?php include "footer.php"; ?>
  206. </div>
  207. </footer>
  208. <?php
  209. // Statistik user
  210. $ip = $_SERVER['REMOTE_ADDR']; // Mendapatkan IP komputer user
  211. $tanggal = date("Ymd"); // Mendapatkan tanggal sekarang
  212. $waktu = time(); //
  213. $s = mysqli_query($koneksi, "SELECT * FROM statistik WHERE ip='$ip' AND tanggal='$tanggal'");
  214. if(mysqli_num_rows($s) == 0){
  215. mysqli_query($koneksi, "INSERT INTO statistik(ip, tanggal, hits, online) VALUES('$ip','$tanggal','1','$waktu')");
  216. }else{
  217. mysqli_query($koneksi, "UPDATE statistik SET hits=hits+1, online='$waktu' WHERE ip='$ip' AND tanggal='$tanggal'");
  218. }
  219. ?>
  220. </div>
  221.  
  222. <!-- Scripts -->
  223. <script type="text/javascript" src="<?php echo "$f[folder]/jscript/jquery-1.11.3.min.js" ?>"></script>
  224. <script type="text/javascript" src="<?php echo "$f[folder]/jscript/jquery-latest.min.js" ?>"></script>
  225. <script type="text/javascript" src="<?php echo "$f[folder]/jscript/theme-scripts.js" ?>"></script>
  226. <script type="text/javascript" src="<?php echo "$f[folder]/jscript/turn.js" ?>"></script>
  227. <script type="text/javascript" src="<?php echo "$f[folder]/jscript/validasi.js"; ?>"></script>
  228.  
  229. </body>
  230. </html>
  231.  
  232.  
  233.  
  234. posisi peletakkannya dimana ya pak?
  235. saya tidak menemukan posisi script yang akan digantikan.
sudirman saputra
commented on 04 Sep 2019 01:46:32
  1. 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/
Bukhori Muslim
commented on 05 Sep 2019 06:12:37
  1. Assalamualaikum,.. Alhamdulillah sudah dibantu jawab oleh agan Sudirman Saputra. Jazakallahu Khoir,.. ^_^
rabinsssss
commented on 17 Sep 2019 13:38:49
  1. Assalamualaikum,.. iya mas php tigo tidak muncul thumbnailnya
PHPMU.COM Support
commented on 17 Sep 2019 13:59:10
  1. Assalamualaikum,.. buka file "application/views/phpmu-tigo/template.php"
  2. baris 18 cari kode ini :
  3. <?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();
  4. echo '<meta property="og:title" content="'.$title.'" />
  5. <meta property="og:type" content="article" />
  6. <meta property="og:url" content="'.base_url().''.$this->uri->segment(3).'" />
  7. <meta property="og:image" content="'.base_url().'asset/foto_berita/'.$rows['gambar'].'" />
  8. <meta property="og:description" content="'.$description.'"/>';
  9. } ?>
  10.  
  11. ubah menjadi :
  12. <?php
  13. $berita = $this->model_utama->view_where('berita',array('judul_seo' => $this->uri->segment(1)));
  14. if ($berita->num_rows()>=1){
  15. $rows = $berita->row_array();
  16. echo '<meta property="og:title" content="'.$title.'" />
  17. <meta property="og:type" content="article" />
  18. <meta property="og:url" content="http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'].'" />
  19. <meta property="og:image" content="'.base_url().'asset/foto_berita/'.$rows['gambar'].'" />
  20. <meta property="og:description" content="'.$description.'"/>';
  21. }
  22. ?>
Dhyar Irdiansyah
commented on 30 Agu 2021 21:01:15
  1. Assalamualaikum,.. maaf mas, nyambung.
  2. 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"
Maaf, Untuk Memberikan Komentar Anda Harus Login !!!