Hallo! Selamat Datang di Marketplace produk digital, Freelancer terbaik di indonesia (68540 Members, 790 Products, 5358 Topic, 13048 Comments)

Memunculkan Gambar member komentar di E-KONSELING?

Dibuat
Login Terakhir 1 Bulan lalu,
Telah Dilihat 887 Kali
Yohanes Kristanto wibowo Mengatakan : Free Account
  1. Assalamualaikum Warahmatullahi Wabarakatuh...
  2. Sore mas Robby dan Mas Bukhori.
  3. Sy pakai aplikasi Ekonselingnya, tp kalau boleh tanya, gimana caranya utk menampilkan foto yang berkomentar ya mas?
  4. Gambar terlampir.
  5. Makasih
Ada 1 File Kiriman :
1. 04C7873E-6BB5-4EFA-ABC6-25EEF6FAC808.jpeg (507 KB)

Ada 1 Jawaban

PHPMU.COM Support
commented on 12 Mei 2020 07:48:00
  1. Assalamualaikum,.. buka file : application\views\phpmu-ekonseling\detailberita.php
  2. pada baris 55 cari :
  3. if ($rows['email'] == ''){
  4. echo "<img style='width:60px; height:60px' class='media-object img-thumbnail img-circle' src='".base_url()."asset/foto_user/blank.png'/>";
  5. }else{
  6. echo "<img style='width:60px; height:60px' class='media-object img-thumbnail img-circle' src='http://www.gravatar.com/avatar/$test.jpg?s=100'/>";
  7. }
  8.  
  9. Kemudian ubah menjadi :
  10. if ($rows['email'] == ''){
  11. $usr = $this->db->query("SELECT foto FROM users where username='$rows[url]'")->row_array();
  12. if ($usr['foto']==''){ $foto = ""; }else{ $foto = $usr['foto']; }
  13. echo "<img style='width:60px; height:60px' class='media-object img-thumbnail img-circle' src='".base_url()."asset/foto_user/$foto'/>";
  14. }else{
  15. echo "<img style='width:60px; height:60px' class='media-object img-thumbnail img-circle' src='http://www.gravatar.com/avatar/$test.jpg?s=100'/>";
  16. }
Maaf, Untuk Memberikan Komentar Anda Harus Login !!!

Online