Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Add Alt Text to Linked Images by BOP5 (VB 4.1.10+) Details »»
Add Alt Text to Linked Images by BOP5 (VB 4.1.10+)
Version: 1.5, by BirdOPrey5 (Senior Member) BirdOPrey5 is offline
Developer Last Online: Aug 2023 Show Printable Version Email this Page

Category: New Posting Features - Version: 4.1.10 Rating:
Released: 01-14-2012 Last Update: 03-15-2012 Installs: 97
Uses Plugins
Re-useable Code  
No support by the author.



Current Version: 1.5

This is the Standard Version. The GOLD Version is FREE but available only from:
Qapla.com - Add Alt Text GOLD VB4 by BOP5 Mod

The GOLD edition has 1 additional feature: Smart Tagging
Smart Tagging will check the filename of an image for useful information. If the mod believes the filename can be useful to describing the image it will use a cleaned and formatted version of the filename as the alt or title text. If the mod sees that the filename is all numeric, or a common digital camera format, or a vbulletin attachment filename it will instead use the thread title as the alt/title text for the image.

The Standard edition has only 3 options for alt or title text, each of which can be set independently. - Use Filename, Use Thread Title, or use both Filename AND Thread Title to create the tag.

The purpose of this mod is to automatically add "alt" and / or "title" tags to linked images in vBulletin forums.

By default vBulletin leaves the alt tag blank on all linked images. However image searches like Google scan for alt and/or title tags to determine what the image is and having these tags can increase your SEO in regards to images and perhaps regular SEO as well.

It can also benefit visually impaired users who may be using a screen reader.

Demo: http://www.qapla.com/mods/showthread...?p=325#post325

VB 4.1.10+ Preferred. No manual file edits necessary.
VB 4.0.0 - VB 4.1.9 - 1 manual file edit required. Directions in .zip.

Please Mark as Installed if you use this.
Donations always appreciated. :up:

Download Now

File Type: zip Add Alt Text to Linked Images VB4 by BOP5.zip (5.0 KB, 352 views)

Screenshots

File Type: jpg vb4_alt_text_demo.jpg (39.7 KB, 0 views)
File Type: jpg vb3_settings.jpg (112.2 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
RichieBoy67, rodriiverduguez

Comments
  #12  
Old 01-17-2012, 12:23 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool... The actual code of the function may vary from version to version, the important thing is to find the function:

function handle_bbcode_img_match

And then add the hook right before the return line...

Code:
($hook = vBulletinHook::fetch_hook('bbcode_img_match')) ? eval($hook) : false;
So actually I don't think the code you posted is right, the hook needs to be above the return line.
Reply With Quote
  #13  
Old 01-17-2012, 03:35 PM
puertoblack2003's Avatar
puertoblack2003 puertoblack2003 is offline
 
Join Date: Aug 2005
Location: Philadelphia
Posts: 1,073
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
Cool... The actual code of the function may vary from version to version, the important thing is to find the function:

function handle_bbcode_img_match

And then add the hook right before the return line...

Code:
($hook = vBulletinHook::fetch_hook('bbcode_img_match')) ? eval($hook) : false;
So actually I don't think the code you posted is right, the hook needs to be above the return line.
thanks :up: i made the adjustment....
Reply With Quote
Благодарность от:
BirdOPrey5
  #14  
Old 01-17-2012, 09:43 PM
strudinox's Avatar
strudinox strudinox is offline
 
Join Date: Mar 2010
Location: California
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this also work with linked images on the CMS?
Reply With Quote
  #15  
Old 01-18-2012, 12:07 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually it seems like it does work on linked images in the CMS as well. Just tried it...
Reply With Quote
  #16  
Old 01-23-2012, 04:12 PM
14DH01 14DH01 is offline
 
Join Date: Sep 2010
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,
Thank you for this mod 5 stars
it also aids to find our images as attachments (I needed to find broken images)
Reply With Quote
Благодарность от:
BirdOPrey5
  #17  
Old 01-24-2012, 06:27 PM
Dennis Kaczor Dennis Kaczor is offline
 
Join Date: Oct 2005
Location: Toronto
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have been looking for something like this for months and months and always came up blank with my searching. Yesterday I seen this plug-in and downloaded and installed this today and liked what I see with all the images on my site. It has potential with my users images now.

Adding an image from my server worked like a charm, PhotoBucket still shows the file name so that is a plus. I use Flickr for my images and it is a shame that they don't use the File Name when you upload your images on there site, you end up with their file name.

Looking at seeing if one can add an Alt and Title to the end of their code, means a bit of extra work but more of a curious thing for me.

As you mentioned this is better than nothing and I agree. Voted 5 STARS
Reply With Quote
Благодарность от:
BirdOPrey5
  #18  
Old 01-25-2012, 01:31 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you want users to enter their own "title" for images you could create a custom BB Code...

Admin CP -> BB Code Manager -> Add New BB Code

Call it: img
Make sure USE OPTION is set to YES
Make the replacement code:
Code:
<img src="{param}" alt="{option}" title="{option}" border="0" />
Save it...

now people can include images like:

Code:
Reply With Quote
  #19  
Old 01-27-2012, 01:52 PM
14DH01 14DH01 is offline
 
Join Date: Sep 2010
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hello,
Add Alt Text to Linked Images
no longer operate this mod:
https://vborg.vbsupport.ru/showthread.php?t=237650

resize image no longer works with your plugin

Thank you
Reply With Quote
  #20  
Old 01-27-2012, 03:08 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 14DH01 View Post
hello,
Add Alt Text to Linked Images
no longer operate this mod:
https://vborg.vbsupport.ru/showthread.php?t=237650

resize image no longer works with your plugin

Thank you
Sorry to hear that. I don't think I can do anything about it though.
Reply With Quote
  #21  
Old 01-31-2012, 05:23 AM
OldSchoolDSL OldSchoolDSL is offline
 
Join Date: Oct 2010
Posts: 1,196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and working

4.1.10
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 02:09 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
  • Page Generation 0.08485 seconds
  • Memory Usage 2,353KB
  • Queries Executed 26 (?)
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
  • (4)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (5)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete