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)

kmohamed 04-20-2010 06:08 PM

Not Supported : do you really mean it lol
is a great mod thanx
+ i add my own video site and is working fine just play with the codes is so easy
+ is is not working with you guys you need to edit the includes/functions_video.php file

Quote:

Originally Posted by The Geek (Post 2019974)
I have applied for a new hook to be added to take care of the issue in 4.0.3 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.

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); 



War.Frog 04-20-2010 10:50 PM

For whatever reason, editing the functions_video.php file results in serious double-posting issues. Even simply reversing the two-line edit didn't correct it...I had to replace the file with the one from my vB4 package download.

movslow 04-22-2010 04:09 PM

I noticed that after the 4.03 upgrade, AME quite working.
:confused:

movslow 04-22-2010 04:16 PM

Quote:

Originally Posted by movslow (Post 2025457)
I noticed that after the 4.03 upgrade, AME quite working.
:confused:

Reinstalled, no luck.
:confused:

movslow 04-22-2010 04:24 PM

I just saw where you posted a fix for 4.03..and it worked fine.

Thanks.
:up:

josh2007 04-22-2010 08:09 PM

I saw the same post for the fix and I tried it with no luck. This is how my includes/functions_video.php reads:

PHP Code:

<?php
/*======================================================================*\
|| #################################################################### ||
|| # vBulletin 4.0.3
|| # ---------------------------------------------------------------- # ||
|| # Copyright ©2000-2010 vBulletin Solutions Inc. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| #################################################################### ||
\*======================================================================*/

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

    if (
stripos($pagetext'[video]') !== false)
    {
        require_once(
DIR '/includes/class_bbcode_alt.php');
        
$parser = new vB_BbCodeParser_Video_PreParse($vbulletin, array());
        
$pagetext $parser->parse($pagetext);
    }

    return 
$pagetext;
}

/*======================================================================*\
|| ####################################################################
|| # Downloaded: 22:02, Fri Apr 9th 2010
|| # CVS: $RCSfile$ - $Revision: 27207 $
|| ####################################################################
\*======================================================================*/
?>


Jabong82 04-27-2010 01:01 AM

I did the same fix. With the code edit I am able to parse the videos fine, however now whenever someone posts/replies/previews a post the formatting is all messed up.

Not sure why, but doing that single file edit fixes the video portion, but it messes up the posting. Could be a conflict but I don't know.

I hate these VB updates.

GoTTi 04-27-2010 01:49 AM

i just upgraded the forum to vb4 and put this on here, and the videos arent showing, just lniks. youtube videos. any ideas? thanks.

Jabong82 04-27-2010 03:53 AM

This mod is currently not working with 4.0.3 as far as i can see.

War.Frog 04-28-2010 03:04 AM

Quote:

Originally Posted by Jabong82 (Post 2027948)
This mod is currently not working with 4.0.3 as far as i can see.

That's correct. The posted workaround is actually more problematic, so I've returned to using the included tag until this is functional again.

kylek 04-28-2010 03:42 AM

Works fine on 3 sites running 4.0.3 with no problems, youtube videos working like they should.

hiker 04-28-2010 01:33 PM

Quote:

Originally Posted by bogley (Post 2018460)
Does anybody have a flickr slideshow definition?

Thanks.

Anybody? I've been searching high and low for a flickr slideshow definition. I just need the replacement code.

Thanks.

Bram H 04-29-2010 04:10 PM

Quote:

Originally Posted by Jabong82 (Post 2027948)
This mod is currently not working with 4.0.3 as far as i can see.

+1 doenst work on my board either

Videx 04-29-2010 04:18 PM

Quote:

Originally Posted by bogley (Post 2028569)
Anybody? I've been searching high and low for a flickr slideshow definition.

Are you even sure those are video? I just googled it and the example I see looks proprietary. Please give us a link if not. You should probably bug them over at vb.com as I too would like to see lots more embedding these days.

Quote:

Originally Posted by Bram H (Post 2029083)
+1 doenst work on my board either

After you did the vb file edit you were told to do?

Jabong82 04-30-2010 01:07 PM

Quote:

Originally Posted by Videx (Post 2029089)
Are you even sure those are video? I just googled it and the example I see looks proprietary. Please give us a link if not. You should probably bug them over at vb.com as I too would like to see lots more embedding these days.

After you did the vb file edit you were told to do?

When I do the edit the videos show up fine again, however it costs problems for me with regards to posting. So I'm not sure if maybe its a conflict with some other mod etc.

djmantri 05-01-2010 08:18 PM

Couldnt find the xml but found it now

Though its weird that the file is located in the upload dir, but thats just me

Breakpoint 05-02-2010 06:10 PM

My forum is also not parsing links from youtube into videos.

It works when you use video bbcode, but not just plain text

swiftor 05-02-2010 07:41 PM

not working in 4.03 here either, any alternatives?

owning_y0u 05-03-2010 11:25 AM

just do it like this

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

where DJSO6gujqcg is the last part of the url if is your youtube link is http://www.youtube.com/watch?v=iMhuk-I8rjI

then the tag is
[video=youtube;iMhuk-I8rjI]http://www.youtube.com/watch?v=iMhuk-I8rjI[/video]

i do it like this till its fixed

murekhalir 05-09-2010 10:46 PM

Not working on 4.03 for me, going to read back some posts to see if any fixes..

milaszewski 05-10-2010 06:52 AM

PHP Code:

require_once(DIR '/includes/ame_prep.php');
$providers ame_data_preparse($pagetext); 

I think the above will not work if you use quick reply with Search Engine Friendly mod rewrite URLs. When viewing a thread it will try to reach
PHP Code:

www.domain.com/threads/includes/ame_prep.php 

instead of
PHP Code:

www.domain.com/includes/ame_prep.php 


Craig Ross 05-10-2010 11:03 PM

Hi great mod thanks for all the hard work.

i had a different mod that done this on the 3.6.4 version and am in the process of upgrading my forum.

is there a database query i could so to change all the with [media]http:www.youtube.com/somevidurl[/media]

to

[video]http:www.youtube.com/somevidurl[/video]

IE all instances of media] to video] in the database ?

Craig Ross 05-11-2010 10:50 AM

Quote:

Originally Posted by Craig Ross (Post 2034797)
Hi great mod thanks for all the hard work.

i had a different mod that done this on the 3.6.4 version and am in the process of upgrading my forum.

is there a database query i could so to change all the with [media]http:www.youtube.com/somevidurl[/media]

to

[video]http:www.youtube.com/somevidurl[/video]

IE all instances of media] to video] in the database ?

update i found this worked for me just thought i would post it incase anyone else is looking to do this.

Code:

UPDATE
post
SET
pagetext = replace(pagetext,'media]', 'video]')
WHERE
pagetext LIKE '%media]%'

however this does not make the videos work but al least it turns them back into clickable urls :)

iacas 05-11-2010 10:38 PM

Is there a definitions file?

I'd like to be able to support flickr videos, for example, but haven't been able to figure out how yet. A definitions file for 3.0 would greatly help, of course.

lingstar 05-14-2010 10:40 AM

I installed AME in my forums, added a new post, and the YouTube link got converted to (url)...(/url) etc.

What am I missing? I'm using vBulletin 4.0.3.

Thank you,

Barbara

riskofficer 05-14-2010 11:16 AM

Quote:

Originally Posted by iacas (Post 2035413)
Is there a definitions file?

I'd like to be able to support flickr videos, for example, but haven't been able to figure out how yet. A definitions file for 3.0 would greatly help, of course.

Yes, we are still waiting for definitions. May be someone has definitions for amazon and google books?

Sarteck 05-14-2010 10:12 PM

Hullo.

Followed the instructions for the 4.0.3 fix, and it is now parsing links correctly in new posts. :) Thanks for that.

However, when I try to rebuild the old posts, instead of loading a screen telling me it's processing posts 8900 to 422342200 or whatever, I get a blank screen in my ACP.

There's no error logged in my NGINX error log nor my PHP-FastCGI log that seems to have anything to do with it.

Suggestions?

NNJJ 05-15-2010 06:08 PM

Quote:

Originally Posted by lingstar (Post 2036854)
I installed AME in my forums, added a new post, and the YouTube link got converted to (url)...(/url) etc.

What am I missing? I'm using vBulletin 4.0.3.

Thank you,

Barbara

same issue

Jabong82 05-15-2010 08:34 PM

Quote:

Originally Posted by lingstar (Post 2036854)
I installed AME in my forums, added a new post, and the YouTube link got converted to (url)...(/url) etc.

What am I missing? I'm using vBulletin 4.0.3.

Thank you,

Barbara

This mod does not work in 4.0.3. There is a quick fix where you edit the way the code is parsed, (its a few pages back somewhere), and I can confirm it does parse the video.

However some other users (like myself) notice that it conflicts with posts. I think it depends what other mods you have on your board.

Britmovie 05-17-2010 08:50 AM

Daft question cant someone fix it?

ellinofatsa 05-17-2010 12:04 PM

i have instol bad not work i have vb4,3

any help?
its not convert the links from youtube i post

after i post the ling i dont see the video player rom youtube bad onlu the link that i have post...

ArminTECH 05-18-2010 04:30 AM

tagged..

Santori 05-18-2010 10:28 PM

Me too.

I installed Ame but I don´t see any video.
I desintalled Ame and tried to put videos with the normal method of vb but don´t works.
I need help!!!! Please!!!!

Vitaly 05-19-2010 07:48 PM

1 Attachment(s)
The Geak, thanks for your work.

While did rules conversion 2.5 -> 3.0, found bugs in AME code. It appends tail to URL, but tail expression is not correct. Some symbols are missed. That cause AME to ignore links, that's are ok with [ video ] tag.

Here attached 2 files: fixed one, and diff. Please, update distribution!

What's changed:
  1. Tail code satisfies latest RFC xxx. AME doesn't fail with any working links.
  2. Regular expression splitted, to avoid some improper gready searches.
If someone interested, my latest rules are here: http://github.com/rcdesign/vb-ame_rcd_rules

- fixed fullscreen toggle for all players
- russians foto/video hostings
- russian translation

Without support, but you are free to reuse - it can save your time.

NNJJ 05-20-2010 10:51 AM

Quote:

Originally Posted by Vitaly (Post 2040101)
The Geak, thanks for your work.

While did rules conversion 2.5 -> 3.0, found bugs in AME code. It appends tail to URL, but tail expression is not correct. Some symbols are missed. That cause AME to ignore links, that's are ok with [ video ] tag.

Here attached 2 files: fixed one, and diff. Please, update distribution!

What's changed:
  1. Tail code satisfies latest RFC xxx. AME doesn't fail with any working links.
  2. Regular expression splitted, to avoid some improper gready searches.
If someone interested, my latest rules are here: http://github.com/rcdesign/vb-ame_rcd_rules

- fixed fullscreen toggle for all players
- russians foto/video hostings
- russian translation

Without support, but you are free to reuse - it can save your time.


which files need to be updated?

Vitaly 05-20-2010 11:39 AM

Quote:

Originally Posted by NNJJ (Post 2040455)
which files need to be updated?

ame_prep.php from sources. I'd recommend to wait, until The Geek review changes & updates release files.

NNJJ 05-20-2010 04:09 PM

ok thanks :)
will wait

nutech 05-21-2010 06:53 AM

For some unknown reason this has stopped working for photobucket.

Nothing has changed on the forum. When I try to post up a link to a photobucket video it just adds the posts it as a link. Whereas it used to embed it.

If I edit an existing post with an embedded photobucket video that currently works and copy the code and paste into a new post, it does not work. I just get a blank post window.

In had installed the photobucket.xml file from around page 4 or 5 i think it was. It was working fine.

Any ideas?

Vitaly 05-27-2010 01:13 PM

Renewed repository with my local AME3 patches: http://github.com/rcdesign/vb-foreig...aster/vb-ame3/

Here is summary, what was changed.

Fixed bugs:
-----------

1. Tail code satisfies latest RFC xxx. AME doesn't fail with any working links.

2. Regular expression splitted, to avoid some improper gready searches.

3. "Automatically convert links into videos" didn't saved properly.
Hook "data_postsave" splitted to correctly catch message id for each type of post.

4. Inline editor caused reset "Automatically convert links into videos" parameter
(wrong ajax parameters catch)

Other changes:
--------------

1. Zone numbers done via "define" and moved to file start

2. Removed unused constructor from child classes

3. zone & messageid getters separated from class & polished with vB style.

Known issues:
-------------

1. "Automatically convert links into videos" markers not cleared for deleted posts.

2. Can't be disabled for vbcms articles now - no appripriate hooks.

===============

Please, note, that I'm not developper of AME3 and can't support it. You can use the modified code, but only on your own risk.

TROLL 05-31-2010 12:01 AM

I have an issue that was introduced as a result of the 4.0.3 issues.

Every time I post a new thread it get the message

Code:

vBulletin Message
Unable to add cookies, header already sent.
File: /home/vb4tst/public_html/includes/functions_video.php
Line: 1

This is only when posting a new thread, replies work correct.

Also, the thread DOES post and the video IS embedded, but that error message will not be good once I go public with this mod.


All times are GMT. The time now is 11:12 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.03370 seconds
  • Memory Usage 1,854KB
  • 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_code_printable
  • (6)bbcode_php_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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