vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=277033

Add Alt Text to Linked Images by BOP5 (VB 4.1.10+)
by BirdOPrey5
15 Jan 2012 21:48

3 Attachment(s)


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:

BirdOPrey5 15 Jan 2012 21:49

Reserved.

Merjawy 15 Jan 2012 23:52

Nice,...

Will check it out. Thanks

fizzow 16 Jan 2012 00:51

Will this mod work if members upload images via 3rd party image hosting like Photobucket?

datoneer 16 Jan 2012 01:08

Why only 4.1.10 i want this mod, can you make it work for 4.1.8 please. Thanks

OldSchoolDSL 16 Jan 2012 03:22

Quote:

Originally Posted by datoneer (Post 2288365)
Why only 4.1.10 i want this mod, can you make it work for 4.1.8 please. Thanks

4.1.8 was very troublesome for many modifications (buggy as all hell).

4.1.10 re-does alot of the style vars.

You're best to upgrade (my option)

BirdOPrey5 16 Jan 2012 11:59

Quote:

Originally Posted by fizzow (Post 2288358)
Will this mod work if members upload images via 3rd party image hosting like Photobucket?

Looking at this example URL from Photobucket:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

It appears Photobucket does keep the original file name *Bunny" in this case, so yes it should work with Photobucket uploaded images.

Quote:

Originally Posted by datoneer (Post 2288365)
Why only 4.1.10 i want this mod, can you make it work for 4.1.8 please. Thanks

Because the hook used by this mod was introduced in version 4.1.10, the only way it would work on older versions is with a manual file edit.

If you want to try in 4.1.8 you will need to edit your file /includes/class_bbcode.php

Find the function:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and add the hook manually so it becomes:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

You would also need to edit the xml file in the zip and change the min version near the top to 4.1.0 or any number less than or equal to your version.

Be warned though there were over 30 new hooks added to 4.1.10- there will be a lot of new mods coming that will only work with 4.1.10 and above- you should upgrade.

dacho 16 Jan 2012 17:05

nice mate... I will check it on my forum

datoneer 16 Jan 2012 18:40

Thanks man i'm waitin response from ry215 to ugrade my style...

puertoblack2003 17 Jan 2012 03:28

Quote:

Originally Posted by BirdOPrey5 (Post 2288511)
Looking at this example URL from Photobucket:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

It appears Photobucket does keep the original file name *Bunny" in this case, so yes it should work with Photobucket uploaded images.



Because the hook used by this mod was introduced in version 4.1.10, the only way it would work on older versions is with a manual file edit.

If you want to try in 4.1.8 you will need to edit your file /includes/class_bbcode.php

Find the function:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and add the hook manually so it becomes:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

You would also need to edit the xml file in the zip and change the min version near the top to 4.1.0 or any number less than or equal to your version.

Be warned though there were over 30 new hooks added to 4.1.10- there will be a lot of new mods coming that will only work with 4.1.10 and above- you should upgrade.

in 4.1.9 is different

from this


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

to this


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and it worked thanks buddy:up:

BirdOPrey5 17 Jan 2012 12:23

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...


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

So actually I don't think the code you posted is right, the hook needs to be above the return line.

puertoblack2003 17 Jan 2012 15:35

Quote:

Originally Posted by BirdOPrey5 (Post 2288966)
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...


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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....

strudinox 17 Jan 2012 21:43

Does this also work with linked images on the CMS?

BirdOPrey5 18 Jan 2012 12:07

Actually it seems like it does work on linked images in the CMS as well. Just tried it...

14DH01 23 Jan 2012 16:12

Hello,
Thank you for this mod 5 stars
it also aids to find our images as attachments (I needed to find broken images) ;)


All times are GMT. The time now is 02:30.

Powered by vBulletin® Version 3.8.12
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.