New Image Tag to reduce Imagesize
I had this done with Deaths with version 3.0.7 but it applies here as well of course.
This is not really professional but ey, it works for me :) To post an image you usually use [IMG]. You can create another tag, let's say [IMGO] for oversized images. Go to your admincp Admincp => Custom BB Codes => Add New BB Code Title : Whatever you want Tag : imgo Replacement : <a href="{param}" target="_blank"><img border="0" width="400" alt="Thumb resize." src="{param}" /></a> Example : [imgo]http://img96.imageshack.us/img96/7499/gibraltar12804sx.jpg[/imgo] (you need an example otherwise it will displays only the link) Description : Whatever you want Use {option} : No Button Image (Optional) : Well, optional As I said, it is not the best, professional one, but usefull. The dark side of that one is when using with picture smaller than 400 pixel width :) It'll be resized also .... Original Post / Version 3.0.7 |
Uh.... the height remains, so the image will be disorted. 'cause it's client-side, they'll still download the full filesize of the full image, which defeats the purpose of thumbnails in many applications. What's the point?
|
The point is to avoid the forum being disorted (optic wise) ...
|
Quote:
HTML Code:
<a href="{param}" target="_blank"><img src="{param}" width="640" border="4" alt="Click the image to view the full version" /></a><div align="center"><b>Click the image to view the full version.</b></div> |
It's "Dimensions"... Not filesize. Get it right.
|
Quote:
|
Quote:
|
Quote:
|
Cool! Thanks for sharing.
|
Thanks you for sharing :)
|
Quote:
|
So what's the right way to do this step by step? I can't get this to work. When I do it, all I see is broken code and red X.
|
anyone?
|
I put all the details in the first post which are running since vb3.5 RC1 on ut2007world.com ...
Be sure you have also insert an example, otherwise it won't work .. |
How can I just replace the standard IMG tags with this?
|
that would require file edits afaik ...
|
utw-Mephisto can you tell us what file edits and how?
|
Good question, like out of my belly I would say <forum-root>/includes/class_bbcode.php
But I haven't checked the functions in there tbh .... I try to find something more specific, but until then, just take a look yourself, you might be faster finding what you need ;) edit I was close :) There you go : https://vborg.vbsupport.ru/showthread.php?t=92882 |
hey Utw- Not sure if thats the same thing that link pust scroll bars on the screen. I would like to use this new custom BBCODE in place of the IMG tag or modify the IMG tag to do what this custome BBCOD does. Can this be done if so how!?
|
The only way to change the [img] is in that file (class_bbcode.php) - I don't know another way ...
|
Quote:
|
How do we specify that this new image tag (mine's called "sized") created can't be used in signatures? I've had someone find the loophole.
|
There is "Allow [IMG] Code in Signatures" in vBulletin Options. Is there a loop hole to get around this?
Quote:
In the file: /includes/class_bbcode.php Find: PHP Code:
PHP Code:
|
Quote:
In the Add New BB Code field for Button Image put in the path for your insert image button. eg. Button Image: images/editor/insertimage.gif Then your editor toolbars will have the same button using the new bbcode. |
Worked a trick for me. Certainly not foolproof, but what is!?!? Fools are so ingenius afterall. ;)
Thanks |
anyone here? lol
sorry for bringing back and old thread but I need some help. I installed the new tags and they work great. Now... how can i get the tag image to show up in quick replies? It only shows up when ever I "Go Advanced". Please reply asap, thanks ! |
All times are GMT. The time now is 01:26 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|