vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Show Thread Enhancements - AME 2.0 -Auto Media Embedding for posts, blogs, visitor and group messsages (https://vborg.vbsupport.ru/showthread.php?t=189267)

The Geek 09-19-2008 07:07 AM

you need to specify which version you are using.

If its 2.5, check usergroup permissions (save them even if they look correct)

Baldilocks 09-19-2008 08:06 AM

Any idea about the Wikimedia Error I posted about a few messages back?

The Geek 09-19-2008 08:50 AM

The only reason that a link would be changed by AME is because you have a definition installed that matches those links. If you get a resulting error, chances are that definition isn't valid so it isn't getting the correct information out of the link. If this is the case, you will want to speak to whomever wrote the definition as no wiki definitions come with AME by default.

Hope this helps!

Baldilocks 09-19-2008 10:07 AM

Not really as I have only installed the definitions found in this thread. LOL. Oh well, it's no biggie really.

nMIK-3 09-19-2008 10:24 AM

Guys I have a problem.

I installed it successfully V2.0.2 and all the settings looks alright however it is not automatically embed videos.

When I post a link from youtube as plain link in form of http://www.youtube.com/watch?v=kkZdkHylJ3w then only the link shows, no video. Then if I manually add the AME tags in form of [ame]http://www.youtube.com/watch?v=kkZdkHylJ3w[/ame] it works!

The point is to do it automatically. Any idea of what issue may cause this annoying problem?

Digital Jedi 09-19-2008 03:59 PM

Quote:

Originally Posted by Baldilocks (Post 1625540)
Not really as I have only installed the definitions found in this thread. LOL. Oh well, it's no biggie really.

Which videos where doing it again?

The Geek 09-19-2008 04:24 PM

Quote:

Originally Posted by nMIK-3 (Post 1625546)
Guys I have a problem.

I installed it successfully V2.0.2 and all the settings looks alright however it is not automatically embed videos.

When I post a link from youtube as plain link in form of http://www.youtube.com/watch?v=kkZdkHylJ3w then only the link shows, no video. Then if I manually add the AME tags in form of [ame]http://www.youtube.com/watch?v=kkZdkHylJ3w[/ame] it works!

The point is to do it automatically. Any idea of what issue may cause this annoying problem?

Entering that URL in a new post doesn't embed? Are there any other modifications that could be interfering?

Baldilocks 09-19-2008 04:32 PM

It wasn't a video.

For some reason when I or a user just links to any Wikipedia page, instead of displaying a regular link to wiki, it displays "Wikimedia Error". (As shown below)

I thought it might the the Title URL Replace modification, but I unstalled it and rebuilt the threads and was still getting that message.

http://i79.photobucket.com/albums/j1...cks73/wiki.jpg

nMIK-3 09-19-2008 06:29 PM

Quote:

Originally Posted by The Geek (Post 1625743)
Entering that URL in a new post doesn't embed? Are there any other modifications that could be interfering?

Hey Geek thanks for your respond, yes it doesn't embed for some reason.

It is brand new server, fresh installation of vBulletin 3.7.3, with vBadvanced 3.0.1 and nothing else except the AME.

Any ideas?

DoB Rhapsody 09-19-2008 08:19 PM

Quote:

Originally Posted by Digital Jedi (Post 1625269)
Normally, I'd grab the link to each video and test them on my forum. But since you have the container turned off, the link to the videos isn't there. Do you think you could send me each of the links to videos that are saying not available?

I temporarily added the title linked with the urls back so you can take a look at them.

0ptima 09-19-2008 10:39 PM

Thanks for updating this hack! :) Hope one day to see you back in the hacking scene in the same capacity as you were in the past.

Digital Jedi 09-19-2008 10:56 PM

Quote:

Originally Posted by DoB Rhapsody (Post 1625880)
I temporarily added the title linked with the urls back so you can take a look at them.

I may have addressed one of two of these in the past, so bear with me:

Vimeo: I'll address this on the next definition update, just for now use links with the www in them, and it should embed.

Fileden: I don't have a definition for Fileden. :)

LongIslandOnline: This is a MySpace video, and the definition only supports the YouTube vids. If they continue to split videos up amongst hosting sites like this, I may have to drop support for them and sites like them. You can, however, still use the Permalink from YouTube/MySpace, etc.

The Rest: The rest of your videos are behaving like Extract destination data is turned off. I know you already said it was turned on, but as I recall, The Geek had said that this requires your server to allow url wrappers with fetch_contents. You may want to check that out with your host.

The Geek 09-20-2008 06:13 AM

Quote:

Originally Posted by Digital Jedi (Post 1625943)
The Rest: The rest of your videos are behaving like Extract destination data is turned off. I know you already said it was turned on, but as I recall, The Geek had said that this requires your server to allow url wrappers with fetch_contents. You may want to check that out with your host.

Just as a heads up, cCurl is support in 2.5

punchbowl 09-20-2008 12:59 PM

Quote:

Originally Posted by nMIK-3 (Post 1625546)
Guys I have a problem.

I installed it successfully V2.0.2 and all the settings looks alright however it is not automatically embed videos.

When I post a link from youtube as plain link in form of http://www.youtube.com/watch?v=kkZdkHylJ3w then only the link shows, no video. Then if I manually add the AME tags in form of [ame]http://www.youtube.com/watch?v=kkZdkHylJ3w[/ame] it works!

The point is to do it automatically. Any idea of what issue may cause this annoying problem?


Same here but with 2.5beta and clean vb install. Tried posting a simple youtube url in a blog and nothing happened.:confused:

tech question: I'm going a simple cms, dragging blog entries out of the db and putting them on the front page - How can I make sure the ame entries are parsed correctly?
I use this at the moment to parse the blog text
$parsed_text = $parser->do_parse($blog_pagetext, false, true, true, true, true, false);
Is it just a matter of including the ame functions and parsing the blogs again with that?

Cheers

I'll try again today

socalsoccer 09-20-2008 01:28 PM

I installed and could not get it working either 2.5 . Waited 30 minutes then new url started working properly.

On Youtube will this work with the Embed code they give you? Or just the url?

The Geek 09-20-2008 03:04 PM

@punch -> Check usergroup permissions and settings to make sure it is set up correctly. In some cases, saving the usergroup perms (even if they looked right) seemed to do the trick. Most of the time when people are complaining about it not automatically converting, they are expecting it to convert old posts or posts that have been cached which it will not do without the rebuilding tools.

@Soccer. Only with the URL. The embed code is HTML and you would need HTML enabled in order to show that (which wouldnt be a good thing :) )

The Geek 09-20-2008 03:05 PM

Can I also ask that if you installed this mod, please mark as installed :)

punchbowl 09-20-2008 03:31 PM

Quote:

Originally Posted by The Geek (Post 1626379)
@punch -> Check usergroup permissions and settings to make sure it is set up correctly. In some cases, saving the usergroup perms (even if they looked right) seemed to do the trick. Most of the time when people are complaining about it not automatically converting, they are expecting it to convert old posts or posts that have been cached which it will not do without the rebuilding tools.

Thanks. Will try that later. Sorry - thought I had already marked installed!:o

carlos54321 09-20-2008 06:48 PM

Thanks for the cool mod using 2.5.0 beta 3 had a couple of errors but wait till the update your sending out this weekend and hope that fixes them before i post about them.

The Geek 09-21-2008 03:14 PM

AME 2.5 RC1 has been uploaded into the first post. A quick snapshot of changes are:
  • Fixed bug with unescaped apostrophes conking out preg_replace calls
  • Fix woe where usergroup permissions problem where usergroupcache was not getting updated on install/upgrade. Therefore it was appearing to some that AME wasn't working until the cache was eventually rebuilt through some other method (i.e. manually saving usergroup permissions or similar). This will only happen on new installs or upgrades from 2.5 beta 1. If you think you may be suffering from this problem, try edit a usergroup and saving it.
  • Fixed invalid Zone specified error during rebuild
  • Fixed blogs not correctly previewing media
  • Changed $ameinfo[width] and $ameinfo[height] to only display the value instead of the whole attribute (i.e. it now only displays xxx instead of width="xxx") this is to accommodate the many fun flavours of attributes different media sites use :D
  • Fixed a bunch of other bugs
  • Added some more admincp help :D

AME 2.5 RC1 is still a pre-release product and as such I would not recommend its use on a live site. If you can hang on a few, it doesn't look to be too much longer until it's gold :D

Digital Jedi 09-21-2008 03:55 PM

Will go test it now. :D Thanks for all the work. Hopefullly, I can get the Master XML update today.

carlos54321 09-21-2008 04:28 PM

Wow you too are cooking on gas thanks alot again:)

Subah 09-21-2008 05:07 PM

Thanks a lot

socalsoccer 09-21-2008 09:20 PM

How could I embed this code:

mms://a1503.v115042.c11504.g.vm.akamaistream.net/7/1503/11504/v0001/mlbmls.download.akamai.com/11504/2008/open/gp/09/092008_dculag_gp_400.wmv

Or if that cannot be embedded, how about this link:

http://mls.gotuit.com/?c=2008&p=2179...42300&i=371742

Do I need to add this definition? If so there is so much info needed that you need a
tutorial to add your own definition

nMIK-3 09-21-2008 10:38 PM

I like to report another bug/problem.

When you create a post with video link and preview it then in the preview mode only the link will appear, when you post it the it gets embedded. Is not that series but when you create a news post you always preview before you actually post it.

Is this a known issue?

Digital Jedi 09-22-2008 12:01 AM

Quote:

Originally Posted by socalsoccer (Post 1627282)
How could I embed this code:

mms://a1503.v115042.c11504.g.vm.akam...lag_gp_400.wmv

Or if that cannot be embedded, how about this link:

http://mls.gotuit.com/?c=2008&p=2179...42300&i=371742

Do I need to add this definition? If so there is so much info needed that you need a
tutorial to add your own definition

There is one in the Resources links in my thread. You can also just request a site to be added in my Definitions thread and I'll always look into them.

chuckhodson 09-22-2008 01:26 AM

Great job guys this works very well thanks...

socalsoccer 09-22-2008 04:06 AM

Anyone know how to use this Mod in conjunction with VBadvanced? This would be awesome if I could have some videos located on my homepage!! $40 Paypal

DoB Rhapsody 09-22-2008 04:33 AM

Quote:

Originally Posted by Digital Jedi (Post 1625943)

The Rest: The rest of your videos are behaving like Extract destination data is turned off. I know you already said it was turned on, but as I recall, The Geek had said that this requires your server to allow url wrappers with fetch_contents. You may want to check that out with your host.

I contacted my host and they said that all settings are the same as they are in the basic shared server(when AME worked fine) as they are in the server that i am on now(semi dedicated server).

and a quote for technical support:

"Hi,

All the settings on the server are exactly the same as the regular shared hosting server. Please ask if the addon requires fopen to be enabled which is currently disabled, but it is also disabled on the other servers as well due to a security risk."

punchbowl 09-22-2008 10:04 AM

Quote:

Originally Posted by punchbowl (Post 1626303)
Same here but with 2.5beta and clean vb install. Tried posting a simple youtube url in a blog and nothing happened.:confused:

tech question: I'm going a simple cms, dragging blog entries out of the db and putting them on the front page - How can I make sure the ame entries are parsed correctly?
I use this at the moment to parse the blog text
$parsed_text = $parser->do_parse($blog_pagetext, false, true, true, true, true, false);
Is it just a matter of including the ame functions and parsing the blogs again with that?

Cheers

I'll try again today

Quote:

Originally Posted by The Geek (Post 1626379)
@punch -> Check usergroup permissions and settings to make sure it is set up correctly. In some cases, saving the usergroup perms (even if they looked right) seemed to do the trick. Most of the time when people are complaining about it not automatically converting, they are expecting it to convert old posts or posts that have been cached which it will not do without the rebuilding tools.

Woot! Everything works perfectly*! On 2.5rc1 now. Redid the permissions then posted a youtube worked first time. Also an edit and save on the blogs worked perfectly.

Also my custom cms is showing the vids perfectly!!!!! I never expected that to work! (Love the way you didn't answer the prev. tech question! lol)

*The tools didn't seem to work. I tried to convert a couple of blogs in verbose test mode and just got a blank page.

Digital Jedi 09-22-2008 05:55 PM

Quote:

Originally Posted by socalsoccer (Post 1627440)
Anyone know how to use this Mod in conjunction with VBadvanced? This would be awesome if I could have some videos located on my homepage!! $40 Paypal

This already works with vBadvanced in the sense that if your pulling content from a thread onto the home page, it's going to show the HTML of the post. If your just wanting to post videos in a module, then why not just post the embed code, as modules already handle HTML.

But I'll still take the 40$. :p

The Geek 09-22-2008 06:49 PM

Quote:

Originally Posted by punchbowl (Post 1627609)
Woot! Everything works perfectly*! On 2.5rc1 now. Redid the permissions then posted a youtube worked first time. Also an edit and save on the blogs worked perfectly.

Also my custom cms is showing the vids perfectly!!!!! I never expected that to work! (Love the way you didn't answer the prev. tech question! lol)

*The tools didn't seem to work. I tried to convert a couple of blogs in verbose test mode and just got a blank page.

Ah, the blank page looks like it will happen whenever you try to rebuild visitor messages, blogs or social groups because I forgot to globalise $db in the validation functions.

For a quick fix, edit admincp/automediaembed_admin.php and check out the validation functions (the next 3 functions onward) which start around line 68. They need to have:
global $db;
inserted as the first line in the funtion. I have done it here, but dont have time to update the package yet. Maybe tomorrow :)

As to the technical question...

As long as the content has [ame] tags in it already (i.e. ame parsed a blog post and you are re-parsing on a different page), it will show as expected. The only challenge with using ame outside of the context it was made is when it comes time to save text outside of the system.

HTHs

socalsoccer 09-23-2008 02:58 AM

Quote:

Originally Posted by Digital Jedi (Post 1627892)
If your just wanting to post videos in a module, then why not just post the embed code, as modules already handle HTML.


I tryed this in a BB code module and only get what you see here:


<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/3qSRMweaoyQ&hl=en&fs=1&color1=0x2b405b&color2=0x6b 8ab6"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/3qSRMweaoyQ&hl=en&fs=1&color1=0x2b405b&color2=0x6b 8ab6" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object>

Thanks

Digital Jedi 09-23-2008 03:33 AM

Quote:

Originally Posted by socalsoccer (Post 1628184)
I tryed this in a BB code module and only get what you see here:


<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/3qSRMweaoyQ&hl=en&fs=1&color1=0x2b405b&color2=0x6b 8ab6"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/3qSRMweaoyQ&hl=en&fs=1&color1=0x2b405b&color2=0x6b 8ab6" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object>

Thanks

Did you make sure to tick the Allow HTML option in the module's options?

socalsoccer 09-23-2008 04:07 AM

Quote:

Originally Posted by Digital Jedi (Post 1628200)
Did you make sure to tick the Allow HTML option in the module's options?

Yes I made sure it was checked :)

testebr 09-23-2008 11:10 AM

The geek,

In next version can you change the plugin AME : Permission Hide to load the ame.js only in pages that really need? Example:

PHP Code:

if (in_array(THIS_SCRIPT, array('showthread','showpost','private','newthread','newreply','editpost','member')))
{
     ....
load ame.js....


Thanks

gator777 09-23-2008 01:38 PM

I was having a hard time running Youtube videos. I kept getting "we're sorry, this video is no longer available"

Well, I uninstalled and reinstalled the definitions, and searched the www for an answer. I also read where Youtube may be conducting maintenance and periodically shuts down the embeds. Well, I installed and reinstalled the definition, and went so far as to install v2.5.

Anyway, I finally got the videos to work, but v2.5 is not displaying the default container, so I thought I would let you know. It displays the video without a container, even though "container" is filled in. Also, I will keep track of the "we're sorry, this video is no longer available" issue as well.

Null Parameter 09-23-2008 02:10 PM

First, I just want to say that this is a great mod. We use it on my board all of the time.

Second, there's an error in the IGN code. Here's the changes I made to fix it:

Regular Expression:
Code:

http://([\w]+)\.ign\.com/dor/([\w]+)/([\d]+)/([\w-]+)/videos/([\w-]+)\.html
Replacement:
Code:

<embed src='http://videomedia.ign.com/ev/ev.swf' flashvars='object_ID=$p3&downloadURL=http://$p1.ign.com/$p2/video/article/$p4/$p5.flv&allownetworking='all' type='application/x-shockwave-flash' width='433' height='360'></embed>
It was just missing the parentheses and had some of the $p variables mixed up.

Sorry, if this has been pointed out already, I couldn't search for "IGN" because it is only 3 characters.

The Geek 09-23-2008 03:10 PM

Quote:

Originally Posted by testebr (Post 1628480)
The geek,

In next version can you change the plugin AME : Permission Hide to load the ame.js only in pages that really need? Example:

PHP Code:

if (in_array(THIS_SCRIPT, array('showthread','showpost','private','newthread','newreply','editpost','member')))
{
     ....
load ame.js....


Thanks

I can look at it as an option, however AME is being used in loads of other pages and is being geared up to be used on others. The js is pretty small and will be cached if that helps.

The Geek 09-23-2008 03:14 PM

Quote:

Originally Posted by gator777 (Post 1628581)
I was having a hard time running Youtube videos. I kept getting "we're sorry, this video is no longer available"

Well, I uninstalled and reinstalled the definitions, and searched the www for an answer. I also read where Youtube may be conducting maintenance and periodically shuts down the embeds. Well, I installed and reinstalled the definition, and went so far as to install v2.5.

Anyway, I finally got the videos to work, but v2.5 is not displaying the default container, so I thought I would let you know. It displays the video without a container, even though "container" is filled in. Also, I will keep track of the "we're sorry, this video is no longer available" issue as well.

Hey Gator, if you read through the features of 2.5, you will see that a validation feature has been added. What this feature does is check the destination page you are embedding to determine if the video can be embedded. If it cannot be embedded, a link (with an icon) is shown instead. This feature was added to help users who were getting confused by the 'video no loner availible' message. Truth is, the video is still available, however it isnt availableisn'tavailable for embedding any longer (check the youtube page out and you will see that embedding has been disabled).


All times are GMT. The time now is 08:58 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.01919 seconds
  • Memory Usage 1,869KB
  • 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
  • (2)bbcode_php_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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