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)
-   -   Mini Mods - Auto Youtube Link-Converter (https://vborg.vbsupport.ru/showthread.php?t=261296)

Disasterpiece 04-08-2011 06:09 PM

hm, try this one, altough it doesn't make any sense:

PHP Code:

$ytpreg "/\[youtube\]([a-zA-Z0-9_\-]+)\[\/youtube\]/i"

Quote:

Would be great if this also worked in blogs and not just forums
I'd love to, but sadly I don't know which hooks to use. I have no vbcms :(

If anyone offers me admin access to a test installation, I'm able to create a plugin for vbcms too.

BadgerDog 04-08-2011 08:30 PM

Quote:

Originally Posted by Disasterpiece (Post 2182379)
hm, try this one, altough it doesn't make any sense:

PHP Code:

$ytpreg "/\[youtube\]([a-zA-Z0-9_\-]+)\[\/youtube\]/i"


Nope?. thanks for trying .... :)

Not sure why it doesn't work, as it's opening the database now and processing it ... :confused:

Just seems to process 150,000+ posts and skips every one of them ?

Quote:

150588: Skipping...
150589: Skipping...
150590: Skipping...
150591: Skipping...
150592: Skipping...
150593: Skipping...
150594: Skipping...
150595: Skipping...
150596: Skipping...
150597: Skipping...
150598: Skipping...
150599: Skipping...
150600: Skipping...
150601: Skipping...
150602: Skipping...


FINISHED 588 runs with 0 queries

Click Here to continue?.
Imbedded BBCodes look like this ..

[youtube]FM6wHknkAPk[/youtube]
[youtube]XTGuRgcGujs[/youtube]
[youtube]Ie88A51IxY4[/youtube]

Regards,
Doug

Randomm 04-08-2011 11:25 PM

tagged
BTW can you make one with images?

Disasterpiece 04-09-2011 11:06 PM

Quote:

Originally Posted by BadgerDog (Post 2182418)
Nope…. thanks for trying .... :)

Not sure why it doesn't work, as it's opening the database now and processing it ... :confused:

Just seems to process 150,000+ posts and skips every one of them …



Imbedded BBCodes look like this ..

[youtube]FM6wHknkAPk[/youtube]
[youtube]XTGuRgcGujs[/youtube]
[youtube]Ie88A51IxY4[/youtube]

Regards,
Doug

And you clicked the link everytime until it has no queries left to run? The link is at the bottom of each page.

Otherwise I'm out of ideas.
What could help immensly is: Export only your vb posts table, put it into an archive and send it to me via PM so I can run the script myself and test out why it doesn't replace the tags.

Quote:

Originally Posted by Randomm (Post 2182469)
tagged
BTW can you make one with images?

Sure

BadgerDog 04-10-2011 09:36 AM

Quote:

Originally Posted by Disasterpiece (Post 2182798)
And you clicked the link everytime until it has no queries left to run? The link is at the bottom of each page.

Otherwise I'm out of ideas.
What could help immensly is: Export only your vb posts table, put it into an archive and send it to me via PM so I can run the script myself and test out why it doesn't replace the tags.

Yes Sir ... clicked it each time at every 10,000 posts and ran all the way through to the end ...

I'll try to figure out how to export the post table and send it to you. Never done anything like that before.

Appreciate your help .. very gracious of you ... :up:

Regards,
Doug

dealzoid 04-14-2011 05:35 PM

I'm getting 3 copies of the same video, it's a youtube rss link, before this mod I would just get a clickable image that would redirect to youtube, undesired, so any fix? or can I disable this mod just for 1 forum

the rss link is http://gdata.youtube.com/feeds/base/...rss&time=today

thanks

zelnik 04-16-2011 12:49 PM

Hey, any chance of getting this to work with the new youtu.be url structure?

Here's further info:

http://tracker.vbulletin.com/browse/VBIV-11734

BadgerDog 04-16-2011 07:43 PM

Quote:

Originally Posted by zelnik (Post 2185260)
Hey, any chance of getting this to work with the new youtu.be url structure?

Here's further info:

http://tracker.vbulletin.com/browse/VBIV-11734

Yes, that would be excellent if this mod could support this new YouTube standard ... :up:

Regards,
Doug

Disasterpiece 04-22-2011 01:45 PM

Supports new youtube links https://vborg.vbsupport.ru/

BadgerDog 04-22-2011 01:55 PM

Quote:

Originally Posted by Disasterpiece (Post 2187398)
Supports new youtube links https://vborg.vbsupport.ru/

Updated to 1.2 with thanks .. :)

Regards,
Doug


All times are GMT. The time now is 11:20 AM.

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.01446 seconds
  • Memory Usage 1,750KB
  • 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
  • (2)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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