المشاركة الأصلية كتبت بواسطة: Soliman تفضل شرح طريقة تركيب مكبر الصور highslide في المواضيعشوف كيف صور تظهر :
مثال لمكبر الصور
http://highslide.com/examples/gallery-white.html
طريقة التركيب
- ارفع مجلد highslide الموجود بالمرفقات بداخل مجلد منتداك
- حرر ملف : includes/pbboardCodeparse.class.php
وابحث عن :
CODE$img = '<img src="'.$img.'" border="0" alt="" onload="ResizeIt(this)" />';
واستبدله بـ :
CODE$img = '<a href="'.$img.'" class="highslide" onclick="return hs.expand(this)"><img src="'.$img.'" alt="'.$img.'" width="'.$PowerBB->_CONF['info_row']['default_imagesW'].'" height="'.$PowerBB->_CONF['info_row']['default_imagesH'].'" title="انقر للتكبير" /></a>';
- افتح قالب : imgs_resize
واستبدل جميع محتواه بهذا :
CODE<?php if($PowerBB->_CONF['info_row']['resize_imagesAllow'] == 1){?> <script type="text/javascript" src="{$ForumAdress}highslide/highslide-with-gallery.js"></script> <link rel="stylesheet" type="text/css" href="{$ForumAdress}highslide/highslide.css" /> <script type="text/javascript"> hs.graphicsDir = '{$ForumAdress}highslide/graphics/'; hs.align = 'center'; hs.transitions = ['expand', 'crossfade']; hs.outlineType = 'rounded-white'; hs.fadeInOut = true; //hs.dimmingOpacity = 0.75; // Add the controlbar hs.addSlideshow({ //slideshowGroup: 'group1', interval: 5000, repeat: false, useControls: true, fixedControls: 'fit', overlayOptions: { opacity: 0.75, position: 'bottom center', hideOnMouseOut: true } }); </script> <?php } ?>
http://www.expert-x.com/index.php?page=topic&show=1&id=168