Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 5 Years, 7 Months, 4 Weeks ago Image zoom not for [img] posted pics
#1
Solved: 5 Years, 7 Months, 4 Weeks ago
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
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;
}


Forum Jump:


Users browsing this thread: 1 Guest(s)