PDA

View Full Version : vbulletin.org's image resizing hack?


NeutralizeR
08-06-2007, 12:15 PM
Hello,

Which image resizing hack does vbulletin.org use?

Regards

Wayne Luke
08-06-2007, 03:18 PM
You can set attachment image resizing in the default vBulletin control panel in 3.6.4 and higher.

vBulletin Options -> Message Attachment Options.

Stickers
08-15-2007, 08:29 PM
Thanks Wayne Luke, i needed that also :)

NeutralizeR
08-21-2007, 02:49 AM
You can set attachment image resizing in the default vBulletin control panel in 3.6.4 and higher.

vBulletin Options -> Message Attachment Options.
No, i'm not talking about the attachment image resizing. Check this thread:
https://vborg.vbsupport.ru/showthread.php?t=107965

The images are automatically resized and have url to the original ones.

Wayne Luke
08-21-2007, 04:34 AM
Oh.. Don't know.. I hate that implementation because ctrl-click doesn't work and I am always losing my place because I close the tab by reflex when I am done looking at the image. Doesn't give me control over my browser and forces me to use the same tab which prevents comparing images or having images open while reading the thread.

NeutralizeR
08-23-2007, 12:03 AM
Oh.. Don't know.. I hate that implementation because ctrl-click doesn't work and I am always losing my place because I close the tab by reflex when I am done looking at the image. Doesn't give me control over my browser and forces me to use the same tab which prevents comparing images or having images open while reading the thread.
Can you please point somebody from the admins here? :)

Wayne Luke
08-23-2007, 05:25 PM
I am sure they read every thread. There are several resizing mods in the 3.6 section though.

Marco van Herwaarden
08-23-2007, 05:33 PM
I don't think we use any special modification for resizing.

Paul M
08-23-2007, 06:39 PM
Resizing of what exactly ?

Wayne Luke
08-23-2007, 07:35 PM
[img] tag in posts... Click on the link above and then look at the embedded images and click on them.

The code for the embedded images is:

<span class="aimgbox" onclick="window.location.href='http://img234.imageshack.us/img234/9625/snap17ub.gif';return false" title=""><img src="http://img234.imageshack.us/img234/9625/snap17ub.gif" border="0" alt="" class="aimg" /></span><br />
<br />
<span class="aimgbox" onclick="window.location.href='http://img234.imageshack.us/img234/2651/snap21my.gif';return false" title=""><img src="http://img234.imageshack.us/img234/2651/snap21my.gif" border="0" alt="" class="aimg" /></span><br />
<br />

RaceJunkie
08-23-2007, 07:51 PM
Here is another one (https://vborg.vbsupport.ru/showthread.php?t=118048)

Marco van Herwaarden
08-23-2007, 07:52 PM
You mean these onclick's?

Hmm never even noticed that we do that with external images. I agree that forcing the user with an onclick is very annoying.

Will have a look at this tomorrow.

Paul M
08-23-2007, 08:51 PM
Oh, I see what you are asking about now, that's a bit of CSS and a file edit (written by Joe).

Not sure what you think is annoying, it seems a clever idea to me - the question was how is it done, not a complaint. ;)

Wayne Luke
08-23-2007, 10:38 PM
I know what the question what.. I said I didn't know which mode and my post above explains why I find it annoying. Simply because it removes control of my browser from me. At least with regular links I can override them opening in the same tab or a new window.

NeutralizeR
08-23-2007, 11:04 PM
Hey guys, who does install the hacks to this forum? :)

I know there are many bbcode external image resizing hacks and i've tried many of them in the past. I'm currently using a very plain hack which is similar to the one Paul M. refferred above.

class_bb_code.php:
return '<img class="resize" src="' . $link . '" border="0" alt="" />';And CSS as:
.resize {
max-width: 728px; width: expression(this.width > 728 ? 728: true);
}vb.org's external image resizing method is better because it has the URL of the original image and i'm curious what happens to the image's URL if the image is both big and already linked.

Edit: I've found your CSS:
.aimgbox {position: relative;overflow:auto;height:auto;width:98%;paddi ng:5px}
img.aimg {max-width:96%;cursor:pointer}
<!--[if lte IE 6]>
.aimgbox {width:99%}
img.aimg{width: expression(this.width > 530 ? 510: true)}
<![endif]-->and now i'm asking for the file edit :)

Testing:

[IMG]http://img234.imageshack.us/img234/9625/snap17ub.gif (http://www.msxlabs.org)

Rollover the picture above, you'll see it's linked to msxlabs.org. But when you click on it, it displays the image. If you right click on the image and select "open in a new window or tab" it sends you to msxlabs.org.

This may be implemented:
http://www.irt.org/script/18.htm

Paul M
08-24-2007, 12:19 AM
I know what the question what.. I said I didn't know which mode and my post above explains why I find it annoying. Simply because it removes control of my browser from me. At least with regular links I can override them opening in the same tab or a new window.
Actually I was answering Marco, I hadn't even read your post. :)

Princeton
08-24-2007, 01:48 PM
- screenshots are available to emphasize the message - not to convey the message
- "resize" is to prevent large images from breaking the style
- the image is resized according to screenwidth - (you may not even have to click on it)

NeutralizeR
08-24-2007, 03:27 PM
Thanks for the useful infos but why does nobody want to tell me about the modification? :)

Gryphon
09-01-2007, 07:16 PM
Oh.. Don't know.. I hate that implementation because ctrl-click doesn't work and I am always losing my place because I close the tab by reflex when I am done looking at the image. Doesn't give me control over my browser and forces me to use the same tab which prevents comparing images or having images open while reading the thread.

Agreed, just discovered this myself. You can't make an image a link to something else either, they continue to link to themselves. Quite annoying.

Adam21
09-01-2007, 11:54 PM
The best resize large images mod in vb.org will be mr.gamesbay's Auto Resize large images in an IMG tag hack.Will reisize large images and link them back to the original one.Works for me from 3.60 to 3.68 now.

https://vborg.vbsupport.ru/showthread.php?t=125500

NeutralizeR
09-02-2007, 08:09 AM
The best resize large images mod in vb.org will be mr.gamesbay's Auto Resize large images in an IMG tag hack.Will reisize large images and link them back to the original one.Works for me from 3.60 to 3.68 now.

https://vborg.vbsupport.ru/showthread.php?t=125500
Thank you for your suggestion.

With this small hack, all large images in an IMG Tag will be resized after the site has loaded.Javascript solution is no good for me as i've lots of big images on a single page which can break the layout.

Paul M
09-02-2007, 09:06 AM
The best resize large images mod in vb.org will be mr.gamesbay's Auto Resize large images in an IMG tag hack.

Nope.

As I said in a previous post, its a bit of CSS and file edit (to class_bbcode).

NeutralizeR
09-02-2007, 10:27 AM
Nope.

As I said in a previous post, its a bit of CSS and file edit (to class_bbcode).
One missing thing is linking the image to it's original url if it's not already linked.

Would you mind sharing this info with me?

Princeton
09-03-2007, 03:01 PM
Sorry, if we wanted to share it - we would have offered it to you.

NeutralizeR
09-03-2007, 04:04 PM
Okay, this answer is also welcome :)

TECK
09-07-2007, 03:57 AM
Sorry, if we wanted to share it - we would have offered it to you.
I don't see what is the big secrecy for such a simple hack. A baby could do it with closed eyes.
NeutralizeR, it should take you 1 minute to complete those steps. Get the hack here (https://vborg.vbsupport.ru/showthread.php?t=157228).

Learn how to share things with other members. It will not hurt you on the long run.

Dean C
09-07-2007, 04:37 AM
I don't see what is the big secrecy for such a simple hack. A baby could do it with closed eyes.
NeutralizeR, it should take you 1 minute to complete those steps. Get the hack here (https://vborg.vbsupport.ru/showthread.php?t=157228).

Learn how to share things with other members. It will not hurt you on the long run.

Is that little TECK I see on your box ;)?

TECK
09-07-2007, 04:58 AM
No, is Lizard's little baby girl. :)

NeutralizeR
09-07-2007, 11:35 AM
Appreciated :)