The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Custom BCCODE Image Resize
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; HTML Code:
"[imgr 686x126]enter your url here[/imgr]" HTML Code:
<img src="{URL}" height="{NUMBER1}px" width="{NUMBER2}px" alt="{L_IMAGE}" title="{L_IMAGE}" />
Thanks |
#2
|
|||
|
|||
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}.
|
#3
|
|||
|
|||
I just did some research in HTML, and found that
|
#4
|
|||
|
|||
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).
|
#5
|
|||
|
|||
Okay. No worries, thank you anyway
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|