vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   New Posting Features - Add Alt Text to Linked Images by BOP5 (VB 4.1.10+) (https://vborg.vbsupport.ru/showthread.php?t=277033)

BirdOPrey5 01-17-2012 12:23 PM

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.

puertoblack2003 01-17-2012 03:35 PM

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

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

strudinox 01-17-2012 09:43 PM

Does this also work with linked images on the CMS?

BirdOPrey5 01-18-2012 12:07 PM

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

14DH01 01-23-2012 04:12 PM

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

Dennis Kaczor 01-24-2012 06:27 PM

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

BirdOPrey5 01-25-2012 01:31 AM

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:


14DH01 01-27-2012 01:52 PM

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

BirdOPrey5 01-27-2012 03:08 PM

Quote:

Originally Posted by 14DH01 (Post 2293043)
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.

OldSchoolDSL 01-31-2012 05:23 AM

Installed and working

4.1.10 :)


All times are GMT. The time now is 08:13 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01205 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete