vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   New Posting Features - Youtube display link parser without bbcode (https://vborg.vbsupport.ru/showthread.php?t=144224)

heavy1 04-06-2007 10:00 PM

Youtube display link parser without bbcode
 
This is code that will parse all youtube video links and on the fly show embeded video to user.

Demo is here:

http://www.scepter.pl/showthread.php?t=582

Source of this post is:

Code:

Super komedia, film akcji, troche romansu.
Dwie pierwsze czesci byly tez fajne ale ta chyba najlepsza.

http://www.youtube.com/watch?v=QSTuPnNcI_I

As you see user don't have to use any bb tags for it to work - just paste link to post - that's it.

Thanks to TrekkerOfFiles for code deleting http://youtube.com url - I added deleting it with www. to this and it is perfect now.

It will not work very good if you have wysiwyg edit mode enabled (it breaks the link if you edit it) Using standard editor is recommended.

Mod instruction:
Updated installation info 07-04-2007:
Updated deleting http://*youtube.com 08-04-2007:

Atached zipped file cause this forum was messing up the code of modification.
It goes to /includes/ dir.

If you have other version of vb than 3.6.5 I recommend you to find jill edited code in my file and copy paste it to your file. It will work on 3.6.4 also.

If anyone can help with making it better please do :)

AzaDiyaR 04-07-2007 12:07 PM

this not working for me

vbulletin 3.6.4

heavy1 04-07-2007 12:10 PM

Pm me will see if i can help. Works fine on my 3.6.5.

//edit
there is something wrong with this forum - it is messing up the code.
i will add modified file in a sec.

It is now attached. Remember it is file from 3.6.5 - if you have other version installed just find my edited code inside and copy to your file.

machethier 04-07-2007 12:22 PM

Don't Work

heavy1 04-07-2007 12:24 PM

Try to make mew post as your vb may show you cached content of your old post.
If it still is not working pm me and we will see why.

AzaDiyaR 04-07-2007 01:41 PM

waowwwwwwwwww thanks man :D this working now

Qwest 04-07-2007 10:38 PM

You need to write this as a plugin or warn people that they are overwriting a core vbulletin class file!

heavy1 04-07-2007 11:14 PM

Quote:

Originally Posted by Qwest (Post 1222282)
You need to write this as a plugin or warn people that they are overwriting a core vbulletin class file!

Code changes - says it all.

Qwest 04-07-2007 11:28 PM

It's not working in my vb 3.6.4

I uploaded it to the includes directory 20 minutes ago then posted this: http://www.agnosticforums.com/genera...-new-post.html

Been refreshing for 10 minutes

heavy1 04-07-2007 11:36 PM

1. this file is from 3.6.5 so using it on other may not work.
2. just copy the code from this file to your orginal file - the code is marked by jill youtube parser
3. if you still need help pm me and i will try to help you.
4. it is possible that other modification that you may have installed is blocking it

//edit
bb class file is same on 3.6.5 and 3.6.4 - so it must be something else interfering - probably other mod you have installed..


All times are GMT. The time now is 11:19 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.01262 seconds
  • Memory Usage 1,729KB
  • 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
  • (1)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