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)

Qwest 04-07-2007 11:59 PM

I don't have any mods installed on this forum that deal with BBcode.

heavy1 04-08-2007 12:03 AM

are you sure you replaced your old file with mine?
try to delete it first then upload mine.

menababu 04-08-2007 04:49 AM

Thanks workig good on v3.6.5

TrekkerOfFiles 04-08-2007 10:22 AM

Instead of posting the entire php file like you have done which I would suggest is the cause of most people's problems you should have done instructions in the following vain;

Quote:

Open your /includes/class_bbcode.php

Find:
Code:

<the code to find>
Add below:
Code:

<your new code>
You're done!
If you did it this way then nobody would be overwriting this file which is bad practice to have people do IMO.

heavy1 04-08-2007 10:27 AM

Quote:

Originally Posted by TrekkerOfFiles (Post 1222595)
Instead of posting the entire php file like you have done which I would suggest is the cause of most people's problems you should have done instructions in the following vain;



If you did it this way then nobody would be overwriting this file which is bad practice to have people do IMO.

it was like that in begining but this forum was breaking the code eaven inside code tags.

TrekkerOfFiles 04-08-2007 10:39 AM

Did a few changes to your code that removes the http://www.youtube.com/ bit;
Here is an example of this working: http://www.y-helo-thar.com/showpost....98&postcount=7

Quote:

Originally Posted by my changes
Open /includes/class_bbcode.php

Find:
Code:

                // ********************* PARSE BBCODE TAGS ***************************
Add Above:

Code:

                //jill add youtube code remove full URL
                                      if ( strpos($text, 'http://www.youtube.com/watch') !== false )
                                        {
                                          //$data = preg_replace("http*youtube*com","", $data);
                                  $text = preg_replace("/http:\/\/www\.youtube\.com\/watch\\?v=([0-9a-zA-Z[:punct:]]{11}+)/","[/url]<object width=\"426\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/$1\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/$1\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"425\" height=\"350\"></embed></object>[url]", $text);                         
                                        }
//jill code end



heavy1 04-08-2007 11:09 AM

very nice i will test it and update the code in file

thx

//edit
1 problem- www. link version is not included
I tried to replace www. with . but it doesnt work. why the dot is not working i have no idea

//edit2
resolved that problem - now working with www and without.

DJ XtAzY 04-08-2007 08:50 PM

i thought u cant upload vb files here

Mr Chad 04-11-2007 04:23 AM

Quote:

Originally Posted by XtAzY (Post 1222870)
i thought u cant upload vb files here

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.

DaReD3ViL 04-11-2007 04:45 AM

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


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