Problem inatalling and viewing

Download and support for PhpBB3 Prettyphoto Attachment Mod
Locked
jason102178
BBCoder I
BBCoder I
Posts: 3
Joined: 11 Dec 2012, 17:28
BBCodes: 23

Problem inatalling and viewing

Post by jason102178 »

Hi Stoker

I have a question.. is this mod compatible with phpBB SEO Ultimate SEO URL, because i seem to have a small issue, and cant seem to figure it out, i had installed the mod and when i click on an image to make it larger it only lets me do it once then it wont let me resize it again,,,

The reason i choose this mod is because the ReIMG Image Resizer doesnt let you click next for the next photo and this mod does, weather its an attachment or img tag,

when installing it tells me to find

Code: Select all

<dt><a href="{_file.U_DOWNLOAD_LINK}"><img src="{_file.THUMB_IMAGE}" alt="{_file.DOWNLOAD_NAME}" title="{_file.DOWNLOAD_NAME} ({_file.FILESIZE} {_file.SIZE_LANG}) {_file.L_DOWNLOAD_COUNT}" /></a></dt>


and replace with

Code: Select all

<dt><a href="{_file.U_DOWNLOAD_LINK}/{_file.DOWNLOAD_NAME}" rel="prettyPhoto[pp_gal{_file.THUMB_POST_ID}]"><img src="{_file.THUMB_IMAGE}" alt="{_file.DOWNLOAD_NAME}" title="{_file.DOWNLOAD_NAME} ({_file.FILESIZE} {_file.SIZE_LANG}) {_file.L_DOWNLOAD_COUNT}" /></a></dt>
so i went to look to find my code and its totally different I dont want to take something out of the code thats suppose to be their and could cause this issue not sure

Code: Select all

<dt><a href="{_file.U_DOWNLOAD_LINK}"><img src="{_file.THUMB_IMAGE}" alt="{_file.DOWNLOAD_NAME}" title="<!-- IF _file.COMMENT_CLEAN -->{_file.COMMENT_CLEAN} / {_file.DOWNLOAD_NAME}<!-- ELSE -->{_file.DOWNLOAD_NAME} ({_file.FILESIZE} {_file.SIZE_LANG}) {_file.L_DOWNLOAD_COUNT}<!-- ENDIF -->" /></a></dt>
mine has something called file comment clean in it
User avatar
Stoker
Site Admin
Site Admin
Posts: 3525
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Problem inatalling and viewing

Post by Stoker »

TRy replace this:

Code: Select all

<a href="{_file.U_DOWNLOAD_LINK}">
with this:

Code: Select all

<a href="{_file.U_DOWNLOAD_LINK}" rel="prettyPhoto[pp_gal{_file.THUMB_POST_ID}]">
instead of the edit in the install inhstructions.
Board rules! No PM support
jason102178
BBCoder I
BBCoder I
Posts: 3
Joined: 11 Dec 2012, 17:28
BBCodes: 23

Problem inatalling and viewing

Post by jason102178 »

that worked great, thanks a bunch....

I was reading articles in here on the best way to incorporate using the mod with img tags

and i didnt exactly want to create a new bbcode for images because then people would still try and use the that is already built in phpbb

and i found an article that said the best way to do it is by this code

open include/bbcode.php

and find

Code: Select all

'img'		=> '<img src="$1" alt="' . $user->lang['IMAGE'] . '" />',
and replace with

Code: Select all

'img'      => '<a href="$1" rel="prettyPhoto"><img src="$1" alt="' . $user->lang['IMAGE'] . '" style="max-width:400px; max-height:200px;" /></a>',

I tried it and it worked, the only problem i seen was that it doesnt allow you to click next if you have multiple images you have to close the image and open the next one...

I was wondering what your thoughts on this method is and if their is any known problems using that method

one person posted this
the code above works. the only things is that if you have text between two images it will automatically wrap them as a images and make the text linked to the images posted.
I wasnt quite sure what this meant, because when people use the img tag i didnt think they ever included text inbetween
User avatar
Stoker
Site Admin
Site Admin
Posts: 3525
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Problem inatalling and viewing

Post by Stoker »

Just use rel="prettyPhoto[pp_gal] for multiple image navigation.
Board rules! No PM support
Locked