PDA

View Full Version : Custom BCCODE Image Resize


richardevans123
12-26-2012, 06:53 PM
Hi All,

I'm trying to add my own Custom BBCODE so that I can make my website more Retina Display Friendly. I've done a lot of editing of the style already, but my signatures don't have the retina graphics. What I'd like to have is something like;

"enter your url here"

Currently, I've got it set up, but it doesn't actually show the image. The HTML replacement is as following:

<img src="{URL}" height="{NUMBER1}px" width="{NUMBER2}px" alt="{L_IMAGE}" title="{L_IMAGE}" />
Any ideas?

Thanks

kh99
12-26-2012, 07:01 PM
How did you come up with that replacement html? As far as I know, the only variables you can use in the replacement are {param} and {option}.

richardevans123
12-26-2012, 07:07 PM
I just did some research in HTML, and found that

kh99
12-26-2012, 07:48 PM
OK, well, I wanted to make sure you weren't using a mod or something. But I guess while other software might inplement bbcode differently, in vbulletin you can only use option and parameter (the part inside the opening tag and the part between the tags), so I don't think there's any way to do what you're trying to do without some php code. (While you *can* do something like <img style="{option}" to allow any CSS to be entered, that's not a good idea because a user could include CSS that could mess up the page layout).

richardevans123
12-26-2012, 08:04 PM
Okay. No worries, thank you anyway