Welcome to OzziesWorld.com. Click here to register

Mods Database - Mod Detail

Mod Title:
[Beta] HighSlide IMG BBCode Resizer 1.0
Author:
Ozzie
phpbb Version:
3.0.11
Website:

Description

Changes the BBCode [IMG] image to a thumbnail view (size determined by the board setting for Attachment Settings -> Image category settings - Maximum thumbnail width in pixels setting) which when clicked upon will open in the HighSlide JS viewer. Creates a new BBCode (ImgSig] that will allow signatures not to be affected by the HighSlide [IMG] tag changes.

Comments

OPEN: includes/bbcode.php]

FIND

Code: [Select all] [Expand/Collapse] [Download] (Untitled.txt)
         global;
GeSHi ©


REPLACE WITH

Code: [Select all] [Expand/Collapse] [Download] (Untitled.txt)
         global $user, $config;
         $slideshowgroup = "'IMG_Tag'";
GeSHi ©


FIND

Code: [Select all] [Expand/Collapse] [Download] (Untitled.txt)
            'img'      => '<img src="$1" alt="' . $user->lang['IMAGE'] . '" />',

GeSHi ©


REPLACE WITH

Code: [Select all] [Expand/Collapse] [Download] (Untitled.txt)
            'img'      => '<dd class="highslide-gallery"><a href="$1" class="highslide" onclick="return hs.expand(this, { slideshowGroup: ' . $slideshowgroup . ' })"><img src="$1"  alt="$1" title="$1" width="' . $config['img_max_thumb_width'] . '" /></a></dd>',
GeSHi ©


SAVE FILE

Goto the ACP -> Posting tab. Add a New BBCode with the following attributes:

BBCode usage: [ImgSig]{URL}[/ImgSig]

HTML replacement: "<img src="{URL}" alt="' . $user->lang['IMAGE'] . '" />" (without the quotes)

Help line: Signature image: "[imgsig]http:// image_url[/imgsig]" (without the quotes & removing the space between http:// & image_url)

Display on posting page (your choice) - I check Yes.