PrettyPhoto on [img] tags
PrettyPhoto on [img] tags
Hi stoker,
I was wondering if it would be possible to integrate your mod to work on tags in topics.
Thanks
I was wondering if it would be possible to integrate your mod to work on tags in topics.
Thanks
- Stoker
- Site Admin
- Posts: 3521
- Joined: 12 May 2008, 23:26
- BBCodes: 239
- Favourite BBCode: Anipro
- Favourite MOD: PrettyPhoto
- Location: Denmark
- Contact:
Re: PrettyPhoto on [img] tags
The only wau I can think of.
Open includes/bbcode.php
Find:
Replace with:
Open includes/bbcode.php
Find:
Code: Select all
'img' => '<img src="$1" alt="' . $user->lang['IMAGE'] . '" />',
Code: Select all
'img' => '<a href="$1" rel="prettyPhoto"><img src="$1" alt="' . $user->lang['IMAGE'] . '" style="max-width:200px; max-height:100px;" />',
Board rules! No PM support
Re: PrettyPhoto on [img] tags
I agree it would be nice to see it on images. I asked for it to be added to the ReImg Image Resizer but the author wasn't too keen on it
I'll have to try it your way Stoker![Smile :)](./images/smilies/icon_e_smile.gif)
![Sad :(](./images/smilies/icon_e_sad.gif)
I'll have to try it your way Stoker
![Smile :)](./images/smilies/icon_e_smile.gif)
Re: PrettyPhoto on [img] tags
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.
Re: PrettyPhoto on [img] tags
hmm OK thenneuropass wrote: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.
![Sad :(](./images/smilies/icon_e_sad.gif)
Re: PrettyPhoto on [img] tags
my fix
test
http://www.ciricadoforum.it/forum/viewt ... 59&t=17715
Code: Select all
'img' => '<a href="$1" rel="prettyPhoto"><img src="$1" alt="' . $user->lang['IMAGE'] . '" style="max-width:400px; max-height:200px;" /></a>',
http://www.ciricadoforum.it/forum/viewt ... 59&t=17715
Re: PrettyPhoto on [img] tags
hum I don't see any prettyPhoto mod working on the link you posted...
![Confused :?](./images/smilies/icon_e_confused.gif)
Re: PrettyPhoto on [img] tags
I have correctneuropass wrote:hum I don't see any prettyPhoto mod working on the link you posted...
![Rolling Eyes :roll:](./images/smilies/icon_rolleyes.gif)
- Dragosvr92
- BBCoder II
- Posts: 21
- Joined: 28 May 2011, 16:53
- BBCodes: 4
- Favourite MOD: Please Wait
- Location: Romania
- Contact:
Re: PrettyPhoto on [img] tags
I have tried to do that on Lightbox. But it made problems with the normal images... For example signature images etcStoker wrote:The only wau I can think of.
Open includes/bbcode.php
Find:Replace with:Code: Select all
'img' => '<img src="$1" alt="' . $user->lang['IMAGE'] . '" />',
Code: Select all
'img' => '<a href="$1" rel="prettyPhoto"><img src="$1" alt="' . $user->lang['IMAGE'] . '" style="max-width:200px; max-height:100px;" />',
![Smile :)](./images/smilies/icon_e_smile.gif)
Re: PrettyPhoto on [img] tags
that is because it replaces the img tag, ANYWHERE you use it on your forum!