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)

The Geek 04-12-2010 10:51 AM

vBulletin 4.0.3 has totally changed the way video codes are processed. I have looked through the code and as it stands now, there isn't an obvious way to quick fix. In fact, I am not even sure how to fix it yet without at least a file edit.

I will try to come up with a solution, but note that I am migrating to IPB so I have my hands full. So sorry to say that until further notice: vb4.0.3 and AME3 are incompatible.

snerd 04-12-2010 11:28 AM

Can't say that I balme you. Every other VB update seems to completely change "something" in the code. I'm seriously starting to look elsewhere myself.

MichelangeloITA 04-12-2010 01:25 PM

Quote:

Originally Posted by The Geek (Post 2019872)
I will try to come up with a solution, but note that I am migrating to IPB

Why??????? http://www.betashare.it/images/smilies/fermocry.gif

zelnik 04-12-2010 01:37 PM

Quote:

Originally Posted by The Geek (Post 2019872)
vBulletin 4.0.3 has totally changed the way video codes are processed. I have looked through the code and as it stands now, there isn't an obvious way to quick fix. In fact, I am not even sure how to fix it yet without at least a file edit.

I will try to come up with a solution, but note that I am migrating to IPB so I have my hands full. So sorry to say that until further notice: vb4.0.3 and AME3 are incompatible.

Thanks for the response it's much appreciated.

Since you are moving away from vbulletin and going with IPB does this mean you will eventually abandon your vbulletin addons?!

I'm only asking as if vbulletin keep changing it so we need updating mods all the time and you're not around it will be problematic.

I would prefer to know sooner rather than later so not to get my users used to having AME on vb4 and then for it to be taken away in a few weeks/months when they (vb) decide to change things again. Since vb4.0.3 is my first experience of vb4.

Thanks Geek

JulianD 04-12-2010 01:37 PM

This is really sad news for me. I can't believe vBulletin is destroying its modding community this way!

jkcerda 04-12-2010 01:44 PM

thanks for the heads up, my installation is new and only has 30 or so members, time to get them used to whatVB offers :pukey:

Geek, you have doen great work, sorry if you go.

The Geek 04-12-2010 01:57 PM

My mods are unsupported to begin with - regardless of that, no one can give you a guarantee that their mods will continue to be developed as time goes on.

Personally I believe that vB will eventually fold this functionality into the core product. vB3x didn't have any embedding apart from AME - now AME only transforms links into vB4 video bbcode so its actually vB4 doing all the work under the hood.

In short - even IF AME stays|becomes incompatible, the only thing that will STOP working is automatic transformation of links to videos. The videos already embeded will stay and moving forward, users will just have to use vB's video bbcode. Its not like you won't be able to show videos any more.

As to why I am moving to IPB - it is because I believe it is the right move for my communities. It isn't 100% for sure (about 85%!) and it will still take some time to do so who knows what the future holds.

Thanks for understanding.

The Geek 04-12-2010 02:55 PM

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


cad2go 04-12-2010 03:24 PM

Works a treat! Thanks a lot

zelnik 04-12-2010 05:53 PM

Thanks for the edit Geek.

However and I'm not completely confident of it yet but it does seem to be (after an hour of testing)

As soon as I made the edit to the php and posted my first video I notice the majority of normal posts since were doubling up (double posts) at first I thought it was coincidence and then it happened to me.

I've since replace the old original php back and disabled the ame plugin and it seems no users have double posted yet.

Is anyone else having this problem?

Cadellin 04-12-2010 06:13 PM

Works fine for me with no obvious side effects like mentioned above.

jaffaman 04-12-2010 06:48 PM

So far its looks like its fixed it but we havent had may people post since i applied the fix cheers m8

MichelangeloITA 04-12-2010 07:43 PM

Very good, man http://www.betashare.it/images/smilies/patpat.gif

Preech 04-12-2010 09:06 PM

I didn't have success.

SunrunnerSWG 04-12-2010 09:13 PM

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


I did this and now when I post a youtube link, the video simply isn't there. The post is completely blank.

The Geek 04-12-2010 10:12 PM

Quote:

Originally Posted by SunrunnerSWG (Post 2020157)
I did this and now when I post a youtube link, the video simply isn't there. The post is completely blank.

Double check the edit. Sounds like it wasnt done correct and as such is causing an error when processing.

Not sure what to say about the doubling up - that used to be caused by multiple definitions. If this is a problem, you can try to disable the AME - Auto Convert URLs plugin to see if that helps.

Preech 04-12-2010 10:37 PM

Sorry. I was posting in the wrong mod.

Mutt 04-13-2010 02:39 AM

wanted to say, thanks. great mod. right now I have all the plugins disabled & I'm using it just to add video codes. users have to use the video popup & video tags (no auto tagging) but i love it. it's plenty enough for me for now. thanks once again

zelnik 04-13-2010 07:51 AM

Quote:

Originally Posted by The Geek (Post 2020188)
Not sure what to say about the doubling up - that used to be caused by multiple definitions. If this is a problem, you can try to disable the AME - Auto Convert URLs plugin to see if that helps.

Think I can safely say that it was AME doing the double post problem, though it was doing it to normal posts aswell not with urls for it to convert? Had the previous issue done the same?

You say multiple definitions, I had upgraded from v2 (I was running 3.8.x before upgrading to 4.0.3) and just disabled the plugin whilst upgrading and then upgraded the plugin then.

Obviously the old 3.8 has the big definition would that be causing the problem? is it caught somewhere and the new version is reading that too? any advice where to look to see if it is?

Thanks The Geek I understand the product is not supported but we all really appreciate your help, much appreciated.

The Geek 04-13-2010 10:50 AM

Hi there, Try removing the old video codes. Those won't work at all. In fact, the upgrade process called for uninstallation of the previous system before upgrading.

HTHs

zelnik 04-13-2010 11:20 AM

Quote:

Originally Posted by The Geek (Post 2020461)
Hi there, Try removing the old video codes. Those won't work at all. In fact, the upgrade process called for uninstallation of the previous system before upgrading.

HTHs

Argh did it? I just overwrote files and then installed the xml :(

Can you give me some pointers of where to look for the old video codes?!

Thanks mate

War.Frog 04-13-2010 10:55 PM

Quote:

Originally Posted by zelnik (Post 2020049)
Thanks for the edit Geek.

However and I'm not completely confident of it yet but it does seem to be (after an hour of testing)

As soon as I made the edit to the php and posted my first video I notice the majority of normal posts since were doubling up (double posts) at first I thought it was coincidence and then it happened to me.

I've since replace the old original php back and disabled the ame plugin and it seems no users have double posted yet.

Is anyone else having this problem?

Yeah I'm double-posting a lot today.

shooterdfl 04-14-2010 04:08 AM

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


This worked like a champ for me. Thanks Geek!

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

Very strange - be careful with this file edit. I applied it yesterday and it seemed to fix the problem for a short while. However, after a day or so I began experiencing terrible double-posting problems and the Post Quick Reply stopped working in the AJAX way and started spawning the Redirecting... page, also resulting in duplicate posts.

Even more strangely, I went back in and simply deleted those two lines suggested in the code above but the problem persisted. Only when I overwrote the file with my original download did the problem go away.

WEIRD!

The Geek 04-14-2010 07:51 AM

Not trying to argue - just not sure how on earth this file edit could cause double posts or any other issues. It is essentially the code that was in the hook that was there before. Now, if the file edit wasn't done correct, maybe that could cause a problem - but its not a very complex edit. Maybe some sort of corruption during the upload after edit?

FWIW - Freddie has sorted a solution for vb 4.0.4

zelnik 04-14-2010 08:09 AM

Quote:

Originally Posted by The Geek (Post 2020964)
Not trying to argue - just not sure how on earth this file edit could cause double posts or any other issues. It is essentially the code that was in the hook that was there before. Now, if the file edit wasn't done correct, maybe that could cause a problem - but its not a very complex edit. Maybe some sort of corruption during the upload after edit?

FWIW - Freddie has sorted a solution for vb 4.0.4

I very much doubt it was anything to do with the file edit as for me it was the first time I had used AME3 so it was probably something else in AME3 that did it and when the file edit brought the plugin back into life then that's when the double posts happened.

I went back and traced my steps and I followed the upgrade instructions to the ticket in your pdf and as you said the file edit is an easy one so it's not that.

I uninstalled it completely (using the guide in the pdf) reinstalled it and within mins of it enabled i was getting double posts.

I disabled it and uninstalled and reinstalled the next morning and for whatever reason (i've double checked the install method) it's not working at all now (converting urls automatically)

So I think I'll wait for 4.0.4 and try again!

I suppose it could be a conflict with another addon perhaps?!

Chicken Racer 04-14-2010 09:22 AM

Just for the record I found that many styles stop the mod from working.
The default style works fine , but once I installed a number of other styles the mod would only embed the standard videos such as youtube and others.

The Geek 04-14-2010 09:27 AM

This product has nothing to do with styles at all. More than likely another issue.

@Zelnik - possibly a conflict. If you can give me steps to reproduce on a clean board, then I can fix it - but as it stands now, it works perfectly fine on a fresh install with the file edit made.

ellinofatsa 04-14-2010 09:37 AM

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]\includes\class_bootstrap.php(1146) : eval()'d code on line 38

the problem is the same any tip for fix it;

ellinofatsa 04-14-2010 09:48 AM

now i go to make a new post and i see this

http://www.ellinofatsa.gr/forums/new...ostthread&f=73

The Geek 04-14-2010 09:51 AM

Did you upgrade according to the instructions? It sounds like you are running AME2.6 on vB4x

ellinofatsa 04-14-2010 09:59 AM

i have delete the file and now i can make new reply but not see videos

The Geek 04-14-2010 10:00 AM

Please download the readme and follow the upgrade instructions

ellinofatsa 04-14-2010 10:17 AM

ok thank you

maimaitinhban 04-15-2010 04:12 AM

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



i have this problem
http://maimaitinhban.com/upanh/image...2mzs59srsk.jpg

i'm using vb4.0.3

please help

The Geek 04-15-2010 02:53 PM

hmmm. can you PM me the contents of your file?

encryption 04-15-2010 06:02 PM

Quote:

Originally Posted by The Geek (Post 1945977)
Ok, a bit more creativity and I finally cracked it :)

I clearly don't like being beaten down :D

nJoy

this doesn't work anymore

Fungsten 04-15-2010 08:18 PM

Some of my members have been getting double posts. I was wondering how that could have happened. BTW, this only happens in Safari! They changed to FF and it stopped.

A693BCBAFD72 04-18-2010 12:32 PM

Hello and thanks for your work, The Geek. Is there any method to add a new video definition for a site that is not on the usual list (facebook, YT etc.)? I can't get a real regex and embed code for this to get it to work. The link on this site is:
Code:

http://www.220.ro
I've tried a lot of things, but I can't get it to work. I'm not using still the new 4.0.3 vB, I stick still with the 4.0.2.
Thanks in advance for any help.

Cheers.

ellinofatsa 04-19-2010 07:22 PM

Hello I Have Do That All But I Cant See Youtube Videos...

Is That Inposible That I Doo Anything Alse Wrong??

Any Tip To See??


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.01905 seconds
  • Memory Usage 1,851KB
  • 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
  • (8)bbcode_php_printable
  • (11)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