หมวดไฟฟ้า/อิเล็กทรอนิกส์/คอมพิวเตอร์ => ห้อง SMF 2.0.X => Programming => ห้องคอมพิวเตอร์ => ห้อง MOD => ข้อความที่เริ่มโดย: Auto Man ที่ 14 สิงหาคม 2560, 16:06:36

หัวข้อ: >>> SMF Mod : แสดงรูปภาพแบบpopupเมื่อผู้ใช้คลิ้กที่ Thumbnail
เริ่มหัวข้อโดย: Auto Man ที่ 14 สิงหาคม 2560, 16:06:36
   SMF Mod : แสดงรูปภาพแบบpopupเมื่อผู้ใช้คลิ้กที่ Thumbnail 

ตรงนี้มีภาพ! แต่ท่านจะมองไม่เห็น , ท่านต้อง  สมัครสมาชิก หรือ ลงชื่อเข้าระบบ
 (http://upic.me/show/61392360)

ตัวอย่างภาพที่ใช้งานแล้ว

ตรงนี้มีภาพ! แต่ท่านจะมองไม่เห็น , ท่านต้อง  สมัครสมาชิก หรือ ลงชื่อเข้าระบบ
 (http://upic.me/show/61392345)

   Features: 

* Show full-size image like popup window when user click thumbnail
* Autoresize full-size image for browser window
* Slideshow for images on page
* Prev/Next with arrow keys
* Work for attached and linked images with thumbnails
* Also works for thumbnails from Imageshack.us, Photobucket.com, iPicture.ru, Radikal.ru, Keep4u.ru, Xs.to and Fotosik.pl. (Fixes for Imageshack.us & Photobucket ported from karlbenson's Integrate Lightbox mod)

http://pordoo.com/mod/popupthumbnail/

  สนใจไปดาวน์โหลดกันได้ที่  ที่นี่... (http://custom.simplemachines.org/mods/index.php?mod=1450)
หัวข้อ: >>> SMF Mod : แสดงรูปภาพแบบpopupเมื่อผู้ใช้คลิ้กที่ Thumbnail
เริ่มหัวข้อโดย: Auto Man ที่ 14 สิงหาคม 2560, 16:15:50
    ติดตั้งแล้วยังไม่สำเร็จ แจ้งว่า...

ตรงนี้มีภาพ! แต่ท่านจะมองไม่เห็น , ท่านต้อง  สมัครสมาชิก หรือ ลงชื่อเข้าระบบ
 (http://upic.me/show/61392380)

   เอาไว้มีเวลา ค่อยมาแกะกันอีกที มอดตัวนี้น่าสนใจดี...
หัวข้อ: >>> SMF Mod : แสดงรูปภาพแบบpopupเมื่อผู้ใช้คลิ้กที่ Thumbnail
เริ่มหัวข้อโดย: Auto Man ที่ 14 สิงหาคม 2560, 16:19:49
  ลองแพร์กับ SMF 2.0.11 ได้ผลประมาณนี้ที่

./Sources/Subs.php
Find: [Select]

   // Cache the output if it took some time...
   if (isset($cache_key, $cache_t) && array_sum(explode(' ', microtime())) - array_sum(explode(' ', $cache_t)) > 0.05)
      cache_put_data($cache_key, $message, 240);

Add Before: [Select]

  // * Highslide image viewer mod
  // Don't highslide signatures & stats page
  if((empty($cache_id) || substr($cache_id, 0, 3) != 'sig') && $context['current_action'] != 'stats') $message = highslide_images($message);
  // Highslide image viewer mod *

หาไม่พบว่างั้น
หัวข้อ: >>> SMF Mod : แสดงรูปภาพแบบpopupเมื่อผู้ใช้คลิ้กที่ Thumbnail
เริ่มหัวข้อโดย: Auto Man ที่ 02 กุมภาพันธ์ 2563, 07:15:51
- ติดตั้ง smf 2.0.17 ใหม่ ติดมอดเป็นตัวที่ 2 หลังจาก
ต้องแนบภาพเป็นไฟล์แนบในระบบ

ตรงนี้มีภาพ! แต่ท่านจะมองไม่เห็น , ท่านต้อง  สมัครสมาชิก หรือ ลงชื่อเข้าระบบ
 (http://upic.me/show/62586062)

ตรงนี้มีภาพ! แต่ท่านจะมองไม่เห็น , ท่านต้อง  สมัครสมาชิก หรือ ลงชื่อเข้าระบบ
 (http://upic.me/show/62586063)

   มีเออเรอร์ในธีมหลัก (Core Theme ไม่ใช่ธีมปัจจุบันนะ - Curve)

ตรงนี้มีภาพ! แต่ท่านจะมองไม่เห็น , ท่านต้อง  สมัครสมาชิก หรือ ลงชื่อเข้าระบบ
 (http://upic.me/show/62586102)

   เวลาถอนออก
- เบราอีกครั้ง

ตรงนี้มีภาพ! แต่ท่านจะมองไม่เห็น , ท่านต้อง  สมัครสมาชิก หรือ ลงชื่อเข้าระบบ
 (http://upic.me/show/62586103)

- เวลาเริ่มติดตั้งมีเออเรอร์ 1 ตัว แต่ไม่ใช่ธีมดีเฟลาด์

ตรงนี้มีภาพ! แต่ท่านจะมองไม่เห็น , ท่านต้อง  สมัครสมาชิก หรือ ลงชื่อเข้าระบบ
 (http://upic.me/show/62586159)
หัวข้อ: >>> SMF Mod : แสดงรูปภาพแบบpopupเมื่อผู้ใช้คลิ้กที่ Thumbnail
เริ่มหัวข้อโดย: Auto Man ที่ 02 กุมภาพันธ์ 2563, 07:40:49
// Highslide image viewer mod *

./Themes/default/Display.template.php

Find :
โค๊ด: [Select]
<a href="', $attachment['href'], ';image" id="link_', $attachment['id'], '" onclick="', $attachment['thumbnail']['javascript'], '"><img src="', $attachment['thumbnail']['href'], '" alt="" id="thumb_', $attachment['id'], '" /></a><br />';
Replace with :
โค๊ด: [Select]
<a href="', $attachment['href'], ';image" id="link_', $attachment['id'], '" class="highslide" rel="highslide"><img src="', $attachment['thumbnail']['href'], '" alt="' , $attachment['name'] , '" id="thumb_', $attachment['id'], '" border="0" /></a><br /><div class="highslide-heading">' , $context['subject'] , '</div>';