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)

doobiefillin 03-17-2011 03:09 PM

i'm getting database errors after doing that 4.1.2 upgrade you guys are talking about in here: http://github.com/rcdesign/vb-foreig...aster/vb-ame3/

how do i use the patch file?

Alan_SP 03-17-2011 03:19 PM

I don't know what's wrong with your installation. I downloaded all files and put them on server, installed product allowing to overwrite old one and everything worked fine.

Did you uninstalled old version? I don't know what you had before, did you installed AME for the first time?

And you don't use patch file at all. You have installation of AME that is patched. Install it as you would unpatched AME.

doobiefillin 03-17-2011 03:20 PM

this is what i did:

i downloaded the original AME file and uploaded into server
installed the original XML file
uploaded the upgraded files into server

what next?

ChuteBoxe 03-17-2011 11:23 PM

Quote:

Originally Posted by doobiefillin (Post 2174425)
this is what i did:

i downloaded the original AME file and uploaded into server
installed the original XML file
uploaded the upgraded files into server

what next?

Same here.

Alan_SP 03-20-2011 01:18 AM

Quote:

Originally Posted by doobiefillin (Post 2174425)
this is what i did:

i downloaded the original AME file and uploaded into server
installed the original XML file
uploaded the upgraded files into server

Correct upgrade procedure is different.

You should first uninstall AME2.x, remove all the files (manual states which exactly, but you can also look in old installation to see what files you uploaded), but leave AME tags.

After uninstallation you upload new files, import product (XML) file, and convert old AME tags.

My guess is, problem is because you didn't unistall old AME.

Basically, you should read instructions first. Always. :)

New Joe 03-21-2011 04:05 AM

Too many posts about how to make this work.

So what needs to be done to make this work?
What to install?

Vitaly 03-21-2011 03:55 PM

Quote:

Originally Posted by doobiefillin (Post 2174420)
i'm getting database errors after doing that 4.1.2 upgrade you guys are talking about in here: http://github.com/rcdesign/vb-foreig...aster/vb-ame3/

how do i use the patch file?

That's strange. I use it now with 4.1.2 with no problems. You can check updates history: https://github.com/rcdesign/vb-forei...master/vb-ame3 . Nothing serious changed for last year

You don't need patch, it's for development & historic reasons. Source files are already patched and have the same structure, as original. XML import is in the same place, as in original mod.

RichieBoy67 03-23-2011 09:43 AM

Not working on 4.1.2 for me--tried the edit too..

p@ndu 03-23-2011 09:46 AM

i also tired in 4.1.2 but not working

dieselpowered 03-23-2011 03:55 PM

WOW something is not working right, videos do not parse in 4.1.2 and there are no usergroup settings in the admin area.

Phaedrus 03-24-2011 04:21 AM

Quote:

Originally Posted by downloadsmasti (Post 2176487)
i also tired in 4.1.2 but not working

Wow, working for me in 4.1.2... I used the edits listed earlier in the thread. What I'd like to see is more regexed code so I don't have to try to figure it out...

:D

p@ndu 03-25-2011 12:15 PM

works fine with 4.1.2 and can we add videobb and megavideo definitions

fly 03-26-2011 01:21 PM

Quote:

Originally Posted by testbot (Post 2164682)
Editing core files is the incorrect way to do things. They did add the hook so the following will fix the issue.

1. AdminCP>Plugins & Producs>Plugin Manager>Add New
2.
Product: AME3
Hook: data_parse_bbcode_video (not data_preparse_bbcode_video_start)
Title: AME - Parse bbcode video
Execution Order: 1
Plugin Code:
Code:

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

3. Plugin is active 'Yes'
4. Save


If you have cache enabled you might have to clear that.

Thank you, thank you, thank you. Now I never have to remember to do that stupid file edit again.

I really wish vb.org would add a user maintained wiki in the 2nd post like FatWallet and Slickdeals do. It would make user to user support sooooo much easier.

S3Ponline 03-27-2011 08:50 PM

Great works on 4.1.2

Now my issue is that the google video, hulu, and a few others don’t work as easily as copy and paste. They just give the URL link. I still have to press the video button for this to work properly.

Any fixes or did I miss something?

Megavideo support would be great!

Evoklub 03-28-2011 05:42 PM

I installed AME3 a few months ago, and love it.

But now somehow it doesn't work, doesn't change the URLs, what can happened?
There wasn't any change ob the forum.
I uninstalled and reinstelled AME3, still doesn't work.

Phaedrus 03-29-2011 12:06 AM

Quote:

Originally Posted by Evoklub (Post 2178451)
I installed AME3 a few months ago, and love it.

But now somehow it doesn't work, doesn't change the URLs, what can happened?
There wasn't any change ob the forum.
I uninstalled and reinstelled AME3, still doesn't work.

Interesting. It works well on my site still... If you are using version 4.1.2 you'll need to add the plugin listed a couple posts above. Other than that. What mods did you add afterward?

Alan_SP 03-29-2011 01:56 AM

Quote:

Originally Posted by fly (Post 2177662)
I really wish vb.org would add a user maintained wiki in the 2nd post like FatWallet and Slickdeals do. It would make user to user support sooooo much easier.

Yes, wiki is great for things like that. If someone of us finds something useful, we should be able to edit some specific post or area.

sean-zigster 03-29-2011 05:11 AM

IS this working with 4.1.2 ?

Evoklub 03-29-2011 03:35 PM

Quote:

Originally Posted by Phaedrus (Post 2178562)
Interesting. It works well on my site still... If you are using version 4.1.2 you'll need to add the plugin listed a couple posts above. Other than that. What mods did you add afterward?

Yes, I just upgraded to 4.1.2. Which mod do I need?

ExciterNL 03-29-2011 05:39 PM

Also a vB 4.1.2 report: It works, after the code change mentioned above...

Iguana Goddess 03-30-2011 12:44 PM

Quote:

Originally Posted by testbot (Post 2164682)
Editing core files is the incorrect way to do things. They did add the hook so the following will fix the issue.

1. AdminCP>Plugins & Producs>Plugin Manager>Add New
2.
Product: AME3
Hook: data_parse_bbcode_video (not data_preparse_bbcode_video_start)
Title: AME - Parse bbcode video
Execution Order: 1
Plugin Code:
Code:

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

3. Plugin is active 'Yes'
4. Save


If you have cache enabled you might have to clear that.

Thank you so much for this fix, my members really missed the AME feature.

vvdven 03-30-2011 04:37 PM

Hey Mate,

I am testing this on my forum (4.1.2.) And the mod seems to convert the code as it was supposed but actually embedding does not seem to function.

http://vagezaken.nl/f1/hoe-werkt-het-forum-31/

I did do the hack as described above. Can anyone tell what i am doing wrong?

Thanks.

taffy056 03-31-2011 12:53 PM

Quote:

Originally Posted by testbot (Post 2164682)
Editing core files is the incorrect way to do things. They did add the hook so the following will fix the issue.

1. AdminCP>Plugins & Producs>Plugin Manager>Add New
2.
Product: AME3
Hook: data_parse_bbcode_video (not data_preparse_bbcode_video_start)
Title: AME - Parse bbcode video
Execution Order: 1
Plugin Code:
Code:

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

3. Plugin is active 'Yes'
4. Save


If you have cache enabled you might have to clear that.


Thank you it fixed the product for me! :up:

Phaedrus 04-07-2011 08:18 PM

So, is anybody building definitions for this or do we all have to teach ourselves how to use that replace code stuff?

vortodox 04-08-2011 02:19 PM

There are new youtube links. Will someone work on upadte for this?

Alan_SP 04-09-2011 10:30 PM

For new youtube code (youtu.be one, if there is new one, please give link for us to see):

Go to AdminCP, AME CP, choose Add New.

For Provider: YouTube New (or whatever you like as a name for it)
Tagoption: youtuben (this can be anything you like, but unique, I just added n to stress it's new youtube tag)
URL: http://youtu.be
Regex URL: http:\/\/youtu\.be\/([a-z0-9-_]+) (this must looks like this, I used old original youtube regex to construct this one based on new youtube links)
Regex Scrape: leave empty
Embed:
HTML Code:

<object width="660" height="400"><param name="movie" value="http://www.youtube.com/v/{vb:raw code}?fs=1&amp;hl=en_US&amp;rel=0&amp;hd=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/{vb:raw code}?fs=1&amp;hl=en_US&amp;rel=0&amp;hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="400"></embed></object>
Here I'm using code for HD video. It's the same as for old YouTube videos, because links just get redirected to old site (new links a just much simpler on us users). You can change width and height of video. Also you can disable HD if you want it.

Priority: 0

vortodox 04-10-2011 06:32 AM

@Alan_SP
Thanks allot for this! :D

AndrewJZhao 04-10-2011 04:31 PM

working everywhere except blogs... :P


thanks for the plugin fix :)

NextGenUpdateFR 04-10-2011 05:57 PM

It doesn't works for me anymore. I think it is because I updated to vb 4.1.3. Any solution ?

kether1 04-10-2011 06:54 PM

Quote:

Originally Posted by Alan_SP (Post 2182792)
.....
Here I'm using code for HD video. It's the same as for old YouTube videos, because links just get redirected to old site (new links a just much simpler on us users). You can change width and height of video. Also you can disable HD if you want it.

Priority: 0

How do I disable the HD? Do I just make it =to 0 instead of =to 1?
Kether

Guest210212002 04-10-2011 07:04 PM

After the upgrade, the rebuild tool worked to convert my AME tags to URLs, but it's not doing the second step and converting them to video tags. What did I miss?

This documentation is hilarious, btw. :D

beck-x 04-11-2011 03:37 AM

working ... (4.1.3)

Phaedrus 04-11-2011 04:09 AM

Quote:

Originally Posted by NextGenUpdateFR (Post 2183076)
It doesn't works for me anymore. I think it is because I updated to vb 4.1.3. Any solution ?

Do this:
https://vborg.vbsupport.ru/showthrea...82#post2164682

Alan_SP 04-11-2011 11:13 AM

Quote:

Originally Posted by kether1 (Post 2183101)
How do I disable the HD? Do I just make it =to 0 instead of =to 1?
Kether

Yes, that should do this. :)

Alan_SP 04-11-2011 11:17 AM

Quote:

Originally Posted by Chris-777 (Post 2183104)
After the upgrade, the rebuild tool worked to convert my AME tags to URLs, but it's not doing the second step and converting them to video tags. What did I miss?

Nothing. There are two type of AME tags, one gets converted with no problem ("straight" ame to url, i.e. [ame]some.link.to.some.video[/ame]) and "complicated" one ([ame=name.of.video]some.link.to.some.video[/ame].

I don't know other way but manually change this. Maybe someone could come up with sql query to search and replace all "complicated" ame tags?

kether1 04-11-2011 11:27 AM

Quote:

Originally Posted by Alan_SP (Post 2183342)
Yes, that should do this. :)

Thanks Alan for your help. :up:

Guest210212002 04-11-2011 11:29 AM

Quote:

Originally Posted by kether1 (Post 2183348)
Thanks Alan for your help. :up:

+1, thanks for the heads up.

GONUMBER6 04-11-2011 02:32 PM

Quote:

Originally Posted by War.Frog (Post 2020892)
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!

YOU ARE A GODSEND..... I HAVE BEEN TROUBLESHOOTING THIS FOR HOURS!!!! Double posts using Firefox.... and also edit and save would not load.

Your post above fixed my issue, because I did try adding that code and then removing it, same as you, because it did not work. Thank you so much for posting this!

testbot 04-15-2011 01:22 AM

Quote:

Originally Posted by Alan_SP (Post 2182792)
For new youtube code (youtu.be one, if there is new one, please give link for us to see):

Go to AdminCP, AME CP, choose Add New.

For Provider: YouTube New (or whatever you like as a name for it)
Tagoption: youtuben (this can be anything you like, but unique, I just added n to stress it's new youtube tag)
URL: http://youtu.be
Regex URL: http:\/\/youtu\.be\/([a-z0-9-_]+) (this must looks like this, I used old original youtube regex to construct this one based on new youtube links)
Regex Scrape: leave empty
Embed:
HTML Code:

<object width="660" height="400"><param name="movie" value="http://www.youtube.com/v/{vb:raw code}?fs=1&amp;hl=en_US&amp;rel=0&amp;hd=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/{vb:raw code}?fs=1&amp;hl=en_US&amp;rel=0&amp;hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="400"></embed></object>
Here I'm using code for HD video. It's the same as for old YouTube videos, because links just get redirected to old site (new links a just much simpler on us users). You can change width and height of video. Also you can disable HD if you want it.

Priority: 0

are you having any problems with the object code when someone just copies the strait url?

Alan_SP 04-15-2011 03:19 PM

Do you mean, if someone copies youtube link to my site or just some other link to something else?

In both cases I didn't notice any problems. Regex takes care of unknown links to get skiped by AME3.


All times are GMT. The time now is 12:09 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.03393 seconds
  • Memory Usage 1,849KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_html_printable
  • (18)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