Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Youtube display link parser without bbcode Details »»
Youtube display link parser without bbcode
Version: 1.00, by heavy1 heavy1 is offline
Developer Last Online: May 2009 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.6.5 Rating:
Released: 04-06-2007 Last Update: 04-07-2007 Installs: 19
Code Changes Is in Beta Stage  
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 04-11-2007, 04:54 AM
Mr Chad's Avatar
Mr Chad Mr Chad is offline
 
Join Date: Jul 2005
Posts: 911
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DaReD3ViL View Post
Can this be made for the following sites (many people use them):
Dailymotion.com
veoh.com
1dawg.com
stage6.divx.com (might be trickyer, but the extreamly high quality videos are definately worth it)

Thank you
yes it can but theres a problem if you edit your post it will re-do the changes. you need to make it make a unique change that it will check for on edits.
Reply With Quote
  #23  
Old 04-11-2007, 08:48 AM
heavy1 heavy1 is offline
 
Join Date: Nov 2004
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mr Chad View Post
He could of just made a plugin. under the bbcode_parse_start hook. *HINT*

remember the people that are at this site are mostly dense and do not know how to code... So just make it as easy as possible for them.
I dont know how plugins work in vb yet.
If i will find out i will do it :P
Reply With Quote
  #24  
Old 04-11-2007, 08:56 AM
samsee samsee is offline
 
Join Date: Aug 2005
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does tis mod wk fine frens ?
Reply With Quote
  #25  
Old 04-11-2007, 09:10 AM
heavy1 heavy1 is offline
 
Join Date: Nov 2004
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it is not possible to do as plugin - as plugin hook is before checking if html is allowed.
if you have html disabled in posts it will change html youtube code to normal text.

i added request for hook - if they will add it in next version then ill make plugin for it.
Reply With Quote
  #26  
Old 04-11-2007, 09:47 AM
TGR TGR is offline
 
Join Date: Jun 2006
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod worked fine on my 3.6.4
Reply With Quote
  #27  
Old 04-11-2007, 10:35 PM
schlottkej schlottkej is offline
 
Join Date: Apr 2007
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

...nevermind.. lol
Reply With Quote
  #28  
Old 07-23-2008, 03:35 PM
robhole robhole is offline
 
Join Date: Nov 2007
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works great on vBulletin 3.7.2... only thing is when people go to edit their posts, it does not show the link anymore. Other than that, everything works perfect!!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:56 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04230 seconds
  • Memory Usage 2,276KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete