vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 5.x Products & Extensions (https://vborg.vbsupport.ru/forumdisplay.php?f=258)
-   -   New Posting Features - Title Tag Grabber AND Video Embedding by MDawg for VB5 (https://vborg.vbsupport.ru/showthread.php?t=325277)

mdawg 06-25-2017 09:00 PM

Title Tag Grabber AND Video Embedding by MDawg for VB5
 
1 Attachment(s)
All New Version 3.0.2

This mod can do two things:

1. It can automatically grab the title of a page you are linking to
2. It can embed video URLs automatically



For example it will turn:

http://www.vbulletin.org

to

vBulletin.org Forum - The Official vBulletin Resource!

This is working on both the simple and complex style URL BBcodes, and it will ignore existing links if you have specified a custom title.

It can also turn a link like: http://www.youtube.com/watch?v=gxEPV4kolz0 into an embedded video without use of the [video] BB Code.

In addition there is an option to auto embed old links that were previously embedded by the AME 2.x mod for vBulletin 3.x. If you still have [AME] BB Codes in your posts this mod can do its best to embed them like they used to be with AME.

Video Embedding is currently working with Youtube (both short and original URLs) and Vimeo.com videos.

The Mod should auto install, upload files as instructed in Readme (everything goes in the usual place.) Clear the system cache to see the mod work on existing posts.

If you wanted to undo the changes made by this mod simply delete the files/remove the mod/ and clear the cache. This mod does not alter the original posts, only the cached copies.

This is an update by Rhodium for the mod created by BirdOPrey5 - thanks to both!

The mod now works without the bugs mentioned in the prior version.

Please "Mark as Installed" if you use this. :)
Donations Always Appreciated. :up:
Consider nominating for MOTM if you like it! ;)

mdawg 06-25-2017 10:46 PM

Reserved.

mdawg 06-25-2017 10:49 PM

Works with vb 5.3.1 without bugs, let us know please.

BirdOPrey5 06-26-2017 08:08 AM

Great, good luck with the mod. :)

May want to consider disabling auto-install, it causes problems for people who want to remove it.

For example- for people who need to remove my mod (if they had the old version installed) first log into the Admin CP of your forum, go to Admin CP -> Products & Hooks -> Manage Products. Leave this screen up and got to step 2.

Step 2 - Use FTP or your host's File Manager, or whatever other means you have for deleting the folder bop5titletags from the /core/packages/ folder on vbulletin.

Step 3, as quickly as possible after completing step 2 go back to Manage Products in your Admin CP and choose Uninstall from the drop down box for Title Tag Grabber and Video Embed by BOP5.

This will remove my mod. At this point, also in the Admin CP, you should go to Admin CP -> Maintenance -> Clear Cache. This will remove all titles and videos previously edited by the mod. Don't worry, after installing the new mod, clear cache again and they will be rebuilt first time they are loaded.

Best of luck.

shimei 06-26-2017 06:26 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2587810)
Great, good luck with the mod. :)

May want to consider disabling auto-install, it causes problems for people who want to remove it.

For example- for people who need to remove my mod (if they had the old version installed) first log into the Admin CP of your forum, go to Admin CP -> Products & Hooks -> Manage Products. Leave this screen up and got to step 2.

Step 2 - Use FTP or your host's File Manager, or whatever other means you have for deleting the folder bop5titletags from the /core/packages/ folder on vbulletin.

Step 3, as quickly as possible after completing step 2 go back to Manage Products in your Admin CP and choose Uninstall from the drop down box for Title Tag Grabber and Video Embed by BOP5.

This will remove my mod. At this point, also in the Admin CP, you should go to Admin CP -> Maintenance -> Clear Cache. This will remove all titles and videos previously edited by the mod. Don't worry, after installing the new mod, clear cache again and they will be rebuilt first time they are loaded.

Best of luck.

I dealt with this already. After having removed the mod and deleting the folder from packages it reappeared as an installed package in admincp.

That auto install works but can be a real hassle! Though I didn't have any problems that I specifically ran into with your mod I installed the new one and do not see any problems thus far with this one either.

People might want to remember to copy your "BBCode Ignore Regex Extension" list before uninstalling though. Luckily I remembered :D

Thanks fellas,
William

mdawg 06-26-2017 09:09 PM

We did eliminate auto re-install on this 3.0.2 version.

public $AutoInstall = 0;

mdawg 06-27-2017 08:10 PM

As far as the BBCode Ignore Regex Extension, I always just left mine as
\[/link]|

maybe you could go over why you inputted so many exceptions, and what exactly they were. Thanks!

shimei 06-28-2017 04:40 AM

Quote:

Originally Posted by mdawg (Post 2587846)
As far as the BBCode Ignore Regex Extension, I always just left mine as
\[/link]|

maybe you could go over why you inputted so many exceptions, and what exactly they were. Thanks!

Take for example this iframe:

<iframe src="https://www.w3schools.com"></iframe>

You don't want the url to translate from the mod so you'd exclude the iframe tags in the bbcode ignore....

William

laebshade 11-10-2017 12:57 PM

I'm seeing the script running slow and ultimately causing HTTP 500 errors on certain pages. Excerpt from php5 fpm log:

Code:

[10-Nov-2017 14:49:52]  [pool www] pid 29142
script_filename = /var/www/html/index.php
[0x00007f0bcfc0f028] curl_exec() /var/www/html/core/vb/vurl/curl.php:342
[0x00007f0bcfc0ee98] execCurl() /var/www/html/core/vb/vurl/curl.php:279
[0x00007f0bcfc0ed38] exec() /var/www/html/core/vb/vurl.php:322
[0x00007f0bcfc0ebf8] exec2() /var/www/html/core/vb/vurl.php:236
[0x00007f0bcfc0eaa8] exec() /var/www/html/core/vb/api/content/link.php:91
[0x00007ffe30f2f200] parsePage() unknown:0
[0x00007f0bcfc0e8d8] call_user_func_array() /var/www/html/core/vb/api/wrapper.php:199
[0x00007ffe30f2f5b0] __call() unknown:0
[0x00007ffe30f2f8e0] parsePage() unknown:0
[0x00007f0bcfc0e710] call_user_func_array() /var/www/html/includes/api/interface/collapsed.php:91
[0x00007f0bcfc0e538] callApi() /var/www/html/core/packages/mdawgtitletagsvb5/api/content/text.php:174
[0x00007ffe30f2fe00] mdawg_title() unknown:0
[0x00007f0bcfc0e3e0] preg_replace_callback() /var/www/html/core/packages/mdawgtitletagsvb5/api/content/text.php:85
[0x00007f0bcfc0e2b8] mdawg_get_titles() /var/www/html/core/packages/mdawgtitletagsvb5/api/content/text.php:50
[0x00007ffe30f30670] getDataForParse() unknown:0
[0x00007f0bcfc0e0c0] call_user_func_array() /var/www/html/core/vb/api/wrapper.php:216
[0x00007ffe30f30a20] __call() unknown:0
[0x00007ffe30f30d50] getDataForParse() unknown:0
[0x00007f0bcfc0def8] call_user_func_array() /var/www/html/includes/api/interface/collapsed.php:91
[0x00007f0bcfc0dcc0] callApi() /var/www/html/includes/vb5/template/nodetext.php:560

The URL in question will not load with this mod enabled and triggers a MySQL "gone away" message email to be sent from vBulletin.

I disabled the script, and the page is able to load successfully.

mdawg 11-10-2017 04:57 PM

We haven't seen any such problems, with this or prior versions of this Mod.

MySQL gone away is typically a server error, often resolved with re-configuration and re-allocation of resources on the server. I myself have this Mod running on four different vb5 (currently 5.3.3) forums, one with heavy traffic, one with medium and two with low, and no problems.

When you say php5, does that mean you are running PhP5? I am running 7.1.11 at present on four of my forums, and 7.1 on the other.


All times are GMT. The time now is 10:05 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.01104 seconds
  • Memory Usage 1,752KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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