2014-02-15, 01:07 PM
Hey
'I got MyBB 1.6.12 running. Whe I post an external picture via "insert image" icon. It creates [img]htto://xxxx.jpg[/img]. This image is not resized and my forum got crashed in size.
I used kind of resizer but than the image is not opening in FancyZoo, ShadowBox, Lightbox or whatever I all tried.
When I edit the .css with a mx width: the image is no more clickable.
Can anyone tell me what would be the best way to resize also these kind of images (not only attachment images). And also a way that this can still be used with a kind of zoom plugin (fancy, shado, lightbox...)
Thanks
Amokossi
I tried it here in teh forum. its the same if you post an external pic in 2800x1200 px it blows the page.
I got the zoom for external images working and also for attachments.
This way:
Theme Style /Global.css/Advanced mode
Add MyCode:
Title: maximage
Short Description: Mybb Max İmage No Plugin
Regular Expression:
Replacement:
Enabled? : Yes
The last issue is now to get the picture resized. as it still blows the forum but click and open in Fancybox is working. Just install fancybox (set compatibility of fancybox from 14* to 16*)
issue solved by:
also add to global.css
.maximage {
max-width: 255px;
}
'I got MyBB 1.6.12 running. Whe I post an external picture via "insert image" icon. It creates [img]htto://xxxx.jpg[/img]. This image is not resized and my forum got crashed in size.
I used kind of resizer but than the image is not opening in FancyZoo, ShadowBox, Lightbox or whatever I all tried.
When I edit the .css with a mx width: the image is no more clickable.
Can anyone tell me what would be the best way to resize also these kind of images (not only attachment images). And also a way that this can still be used with a kind of zoom plugin (fancy, shado, lightbox...)
Thanks
Amokossi
I tried it here in teh forum. its the same if you post an external pic in 2800x1200 px it blows the page.
I got the zoom for external images working and also for attachments.
This way:
Theme Style /Global.css/Advanced mode
Quote:Code:
#maximage
{
max-width: 255px;
}
Add MyCode:
Title: maximage
Short Description: Mybb Max İmage No Plugin
Regular Expression:
Quote:\[img\](.*?)\[/img\]
Replacement:
Quote:<img onclick="javascript:window.location='$1';" src="$1" alt="İmage" id="maximage" title="Click Photo To Enlarge">
Enabled? : Yes
The last issue is now to get the picture resized. as it still blows the forum but click and open in Fancybox is working. Just install fancybox (set compatibility of fancybox from 14* to 16*)
issue solved by:
also add to global.css
.maximage {
max-width: 255px;
}