View Full Version : Help with BBCode
Dennis Kaczor
08-08-2011, 07:38 PM
BB Code Tag Name: img
Replacement Code
<img src="{param}" alt="{option}" border="0" />
Example
http://www.image-source.com/image.jpg]
Description
Alt image tag
Use {option} Yes
New Post and click on the button and get the following
Click on the image button and place between the tags https://vborg.vbsupport.ru/
Here is what I get
https://vborg.vbsupport.ru/^[/IMG]
As you can see it shows the [IMG] before the http and at the end, so the question I have is what can I do to get around this or is there a better way to do this
I run a photography forum and found that this would benefit SEO for finding members inline images. So I'm asking for help from someone to look at this code and see where I went wrong here with this bbcode, and tell me what I need to do to make this work.
Thanking you.
Dennis
Videx
08-09-2011, 12:21 AM
Are you even allowed to use one of the built-in tags like "IMG"?
Dennis Kaczor
08-09-2011, 01:37 PM
Are you even allowed to use one of the built-in tags like "IMG"?
Videx first of all thanks f or getting back to me on this.
When you say the built-in tags are you talking about the image one? Or is this something else that you are talking about, sorry this part is all new to me even after all these years sorry.
Videx
08-09-2011, 02:24 PM
I don't really know much about it myself. Have you checked out the manual: https://www.vbulletin.com/docs/html/ ? And of course try a title search at vb.com.
Dennis Kaczor
08-09-2011, 02:46 PM
I don't really know much about it myself. Have you checked out the manual: https://www.vbulletin.com/docs/html/ ? And of course try a title search at vb.com.
Thanks for your help just the same and I have the manual and will go throught that again. I can get it to work, but need to delete the double IMG and it will do what I want, but trying to see if there is a way that I'm missing in the code that removed that or if there was another way that I don't know about.
But will continue to search for this and again thanks.
What is it you're trying to do exactly? By default, there's already an image button that lets you insert an image url, are you trying to make it work differently?
Dennis Kaczor
08-09-2011, 03:23 PM
What is it you're trying to do exactly? By default, there's already an image button that lets you insert an image url, are you trying to make it work differently?
What I'm trying to do here is add a bbcode that will allow an alt tag for better SEO search for the images posted by my members. From what I could find was to make a bbcode with the Alt tag and found the information for this in the first post.
What I'm after here is to have an Alt Tag to the image url that was posted.
Click on the image button and place between the tags ^
Here is what I get
^httx://www.image-source.com/image.jpg]^
If I remove the ^[IMG] from the second line I can preview the image and see the Alt tag text Hello World.
But what I'm looking for is the proper way to get this to work without having to go into the mesage and remove those [IMG].
I think that I'm missing something in the code, or I'm going about this in the wrong way.
I know that one can edit the class_bbcode.php file and some templates to do this, but I have tried searching for the information and have come up blank thus far and decided to go this route. Any help to directing me in the right direction would be a great help.
Thanks very much
Dennis
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.