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)
-   -   BB Code Enhancements - AME3 - Auto Media Embeding and Video Extender (https://vborg.vbsupport.ru/showthread.php?t=230707)

leftanalog 07-11-2011 06:31 PM

Cant take credit for this... as ive seen this fix elsewhere. Worked for mine vb version 4.1.4.

I have applied for a new hook to be added to take care of the issue in 4.0.3 & other versions so hopefully this will only be "broken" for this iteration. If you want to fix, you will need to apply the following file edit:

Note: THIS IS FOR VERSION 4.0.3 BUT WILL WORK ON other versions.

Edit includes/functions_video.php and change:

PHP Code:

function parse_video_bbcode($pagetext)
{
    global 
$vbulletin

to
PHP Code:

function parse_video_bbcode($pagetext)
{
    global 
$vbulletin;
require_once(
DIR '/includes/ame_prep.php');
$providers ame_data_preparse($pagetext); 

Again this is not my fix... just something I found searching google. It may even be in this thread already. Not sure. lol.

principino1984 07-11-2011 07:28 PM

thanks

it worked for me!

Marco

moonclamp 07-12-2011 11:39 AM

Fix worked for me in 4.1.4 too - thank you :)

dodgechargerfan 07-12-2011 05:16 PM

Thanks leftanalog. That worked for me too.

sticky 07-18-2011 09:54 PM

Quote:

Originally Posted by leftanalog (Post 2219408)
Cant take credit for this... as ive seen this fix elsewhere. Worked for mine vb version 4.1.4.

I have applied for a new hook to be added to take care of the issue in 4.0.3 & other versions so hopefully this will only be "broken" for this iteration. If you want to fix, you will need to apply the following file edit:

Note: THIS IS FOR VERSION 4.0.3 BUT WILL WORK ON other versions.

Edit includes/functions_video.php and change:

PHP Code:

function parse_video_bbcode($pagetext)
{
    global 
$vbulletin

to
PHP Code:

function parse_video_bbcode($pagetext)
{
    global 
$vbulletin;
require_once(
DIR '/includes/ame_prep.php');
$providers ame_data_preparse($pagetext); 

Again this is not my fix... just something I found searching google. It may even be in this thread already. Not sure. lol.

Gave this a shot and the forum is wrapping video tags around the video but for some reason it won't display. Just a big white space where the vid is supposed to be. Wonder what I'm doing wrong?

Code looks like this:

[video=youtube;NQ9UNG]http://www.youtube.com/watch?v=NQ9UNG[/video]

atlemacks 07-20-2011 04:28 PM

Awesome! Fix worked for me!

atlemacks 07-20-2011 10:16 PM

Now I am getting an error when posting a new thread..

Unable to add cookies, header already sent.
File: /home/armedfor/public_html/forum/includes/functions_video.php
Line: 1

principino1984 07-21-2011 04:54 AM

Quote:

Originally Posted by atlemacks (Post 2223039)
Now I am getting an error when posting a new thread..

Unable to add cookies, header already sent.
File: /home/armedfor/public_html/forum/includes/functions_video.php
Line: 1

just look at the file you have edited, it seems you edited with some kind of word processor that left some wierd characters in the first line! ;)

Marco

atlemacks 07-22-2011 01:10 AM

I ended up replacing the file from scratch. I couldn't find any issues... but who knows.

letsjoy 07-23-2011 01:51 PM

Not working on (vBulletin 4.1.4 Patch Level 2), fix also not workin...


All times are GMT. The time now is 11:49 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.02376 seconds
  • Memory Usage 1,745KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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