Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-08-2011, 07:38 PM
Dennis Kaczor Dennis Kaczor is offline
 
Join Date: Oct 2005
Location: Toronto
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Help with BBCode

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

Here is what I get
^[/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
Reply With Quote
  #2  
Old 08-09-2011, 12:21 AM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you even allowed to use one of the built-in tags like "IMG"?
Reply With Quote
  #3  
Old 08-09-2011, 01:37 PM
Dennis Kaczor Dennis Kaczor is offline
 
Join Date: Oct 2005
Location: Toronto
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Videx View Post
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.
Reply With Quote
  #4  
Old 08-09-2011, 02:24 PM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 08-09-2011, 02:46 PM
Dennis Kaczor Dennis Kaczor is offline
 
Join Date: Oct 2005
Location: Toronto
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Videx View Post
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.
Reply With Quote
  #6  
Old 08-09-2011, 02:49 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #7  
Old 08-09-2011, 03:23 PM
Dennis Kaczor Dennis Kaczor is offline
 
Join Date: Oct 2005
Location: Toronto
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
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 [IMG=Hello World]^[/IMG]

Here is what I get
[IMG=Hello World]^[IMG]httx://www.image-source.com/image.jpg][/IMG]^[/IMG]

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:02 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05286 seconds
  • Memory Usage 2,222KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete