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)

dieselpowered 10-01-2008 03:11 PM

@ Jedi, where do you find the YouTube permalink on the Google Video page?

http://video.google.com/videoplay?do...70482484764613

Thanks!

sweeps78 10-01-2008 03:46 PM

sorry, I may not be explaining this right.

I have a test forum that I use specifically testing plugins. In this test forum, I created a new thread with a single post. In this post, I have two URLs. One of these urls are using the old "media" tag. The other url is using the new "ame" tag.

I ran the convert tool, to convert the media tag in this post to a URL tag. Then, I ran the Rebuild to try and convert the URL tag to an ame tag. Unfortunately, that did not work.

So, in this post, there is still two sets of URLs enclosed in BBCode tags, but one url is surrounded by the URL tag (converted from the "media" tag), and the other url surrounded by the ame tag (which didn't and shouldn't have changed). I cannot seem to get the URL tag to be converted to the ame tag.

Digital Jedi 10-01-2008 06:48 PM

Quote:

Originally Posted by xtremeoff-road (Post 1634746)
@ Jedi, where do you find the YouTube permalink on the Google Video page?

http://video.google.com/videoplay?do...70482484764613

Thanks!

Well, that's not a YouTube video, so it doesn't have one. Like I said, for the actual Google hosted video you can use the Google link just fine. Mainly that's the only purpose for the Google definition at this point.

sweeps78 10-01-2008 06:53 PM

should I just uninstall 2.5 RC 1 and install 2.0.2? Do you think this will fix my problem?

Sorry to be impatient, but my forums are now sitting with 500+ non-hyperlinked video URL's with a media tag around them instead of the video being displayed (because I uninstalled GoldBrick).

dieselpowered 10-01-2008 07:05 PM

Quote:

Originally Posted by Digital Jedi (Post 1634911)
Well, that's not a YouTube video, so it doesn't have one. Like I said, for the actual Google hosted video you can use the Google link just fine. Mainly that's the only purpose for the Google definition at this point.

So let me ask you...is there a way to find where that video is actually hosted?

Why was this video working fine until I upgraded?

Digital Jedi 10-01-2008 07:16 PM

Quote:

Originally Posted by sweeps78 (Post 1634916)
geek - should I just uninstall 2.5 RC 1 and install 2.0.2? Do you think this will fix my problem?

Sorry to be impatient, but my forums are now sitting with 500+ non-hyperlinked video URL's with a media tag around them instead of the video being displayed (because I uninstalled GoldBrick).

I don't think it will make any difference. Do you think I could see this demo forum where the posts are?


Quote:

Originally Posted by xtremeoff-road (Post 1634929)
So let me ask you...is there a way to find where that video is actually hosted?

Why was this video working fine until I upgraded?

Very easily. If it says Google Video on the player, such as in the link you posted, it's a Google Video. But if you open it up and your looking at a framed YouTube page or it suddenly redirects you to Forbes.com, etc, then you know your not on Google Video anymore.

Upgrading wouldn't have made a bit of difference. The definitions work exactly the same as before. You've just stumbled across some videos that you hadn't tried posting before. AME has never been able to distinguish between multiple types of embed code. It can only convert to one embed code per site.

dieselpowered 10-01-2008 07:36 PM

So if it is a google video, why is it not showing? Did you not say that google videos would embed fine?

Digital Jedi 10-01-2008 07:45 PM

Yes, did the one you posted not embed for you? I tested it on my forum and it embedded okay.

@sweeps78: Which video had the media tags, the first or the second? I see the second one as embedded, but not the first.

sweeps78 10-01-2008 07:54 PM

The first video had the media tag, but when I ran the Conversion tool, it changed the media tag to a url. The second video was using the ame tag from the beginning.

thanks:)

The Geek 10-01-2008 08:58 PM

Sweeps, Im confused by what your problem is...

If you had a post that had AME AND another media bbcode and then ran the conversion tool so that particular post only had a URL and an AME tag, then when you rebuild, set the Ignore Previous to yes so that it won't skip that post.

Regardless, 2.02 wont solve the problem as the conversion and rebuilding features are pretty much the same.

The Geek 10-01-2008 09:03 PM

Quote:

Originally Posted by xtremeoff-road (Post 1634958)
So if it is a google video, why is it not showing? Did you not say that google videos would embed fine?

The problem is that a google video URL will now show a youtube page, or a vimeo page, or a thousand others (even though the URL is a googles). This just changed and pretty much screws any chance to be able to decipher an embed code automatically.

dieselpowered 10-01-2008 10:38 PM

Quote:

Originally Posted by The Geek (Post 1635045)
The problem is that a google video URL will now show a youtube page, or a vimeo page, or a thousand others (even though the URL is a googles). This just changed and pretty much screws any chance to be able to decipher an embed code automatically.

Ahhh ok, so what do we do so that these types of urls are just pruned with a hyperlink bb code versus changing them to a box with nothing in them if it cannot embed?

Quote:

Originally Posted by Digital Jedi (Post 1634965)
Yes, did the one you posted not embed for you? I tested it on my forum and it embedded okay

It embeds fine on previous versions, just not on 2.5 or so it appears in this case.

Digital Jedi 10-02-2008 03:15 AM

Quote:

Originally Posted by xtremeoff-road (Post 1635105)
Ahhh ok, so what do we do so that these types of urls are just pruned with a hyperlink bb code versus changing them to a box with nothing in them if it cannot embed?

If the site their displaying is a supported site, you can embed the link to that page instead. Like this video is not a Google Video, but a YouTube video. The YouTube link is right there. Or this one. It's a MetaCafe video. No link, but Google lets you close the side bar and just open the site in a full frame. Just grab that URL. As long as you have the appropriate definitions from my Add-On, most of those sites I see on Google are supported, with the exception of Forbes.com. But I'll try and get to those eventually.


Quote:

It embeds fine on previous versions, just not on 2.5 or so it appears in this case.
I tried on 2.5RC1, the latest release, and it appears to be working for me. Is the latest definitions still installed?

dieselpowered 10-02-2008 03:51 AM

Hmmm well all I can say is I did an upgrade...then because the permissions were not correct, I edited and then saved the thread to make sure it was updated...at that point is when it stopped working.

The Geek 10-02-2008 09:59 AM

I am utterly confused here. If you are asking why the google video was working before the upgrade and now it isnt... than its because its coincidence. They changed format about the same time you upgraded. Google video will more than likely not be supported moving forward and I can't actually think of a system that could.

The engine that controls the embedding hasn't really changed very much since 2.0.2, its mainly just been optimised and additional areas of support added.

HTHs :)

sweeps78 10-02-2008 12:58 PM

Quote:

If you had a post that had AME AND another media bbcode and then ran the conversion tool so that particular post only had a URL and an AME tag, then when you rebuild, set the Ignore Previous to yes so that it won't skip that post.
I do have the Ignore Previous set to yes. This ignores the posts though, which I didn't think I wanted, so I also tried to set it to no and ran it. Neither one worked:(

The Geek 10-02-2008 01:22 PM

So if I understand correctly, there is a post that has a URL in it that didnt convert (inside your test forum)?

If so, please provide the URL you think should be working so I can test it on my end. Secondly, make sure you have disabled any potentially conflicting add ons (like the other media one).

sweeps78 10-02-2008 03:09 PM

here's the URL of the thread that I have in my test forum:

http://forums.trossenrobotics.com/showthread.php?t=2466

Here are the steps that I did:

I created that new thread, adding two links: one link using the media tag, the second link using the ame tag.

Next, in admincp -> AME CP -> Tools, I ran the convert tool. When I checked the thread above after I ran the conversion, the media tag was changed to a url tag, and the second url, as expected, was not changed and was still using the ame tag.

Finally, again in admincp -> AME CP -> Tools, I ran the Rebuild -> Posts. I chose the options that I stated in this post and ran the rebuild.

There were a couple of problems with the rebuild. The main problem, is that the url that was changed from the media tag, was not changed to an ame tag. The other problem with the rebuild is that I specified it to go back a week, but when I clicked Save, it displayed 29 pages, with only 3 of them being within that specified week.

Digital Jedi 10-02-2008 03:48 PM

Quote:

Originally Posted by xtremeoff-road (Post 1635313)
Hmmm well all I can say is I did an upgrade...then because the permissions were not correct, I edited and then saved the thread to make sure it was updated...at that point is when it stopped working.

So, your saying that this link that you posted doesn't embed: http://video.google.com/videoplay?do...70482484764613?

KURTZ 10-02-2008 04:10 PM

hi, just installed this great mod (i mean the RC1) but when i tried to update my signatures i've got this error

Quote:

Database error in vBulletin 3.7.3:

Invalid SQL:
SELECT count(userid) total FROM usertextfield WHERE 1=1 AND (signature LIKE '%[/url]%' OR signature LIKE '%[/ame]%' OR pagetext LIKE '%[/nomedia]%');

MySQL Error : Unknown column 'pagetext' in 'where clause'
Error Number : 1054
Request Date : Thursday, October 2nd 2008 @ 07:08:13 PM
Error Date : Thursday, October 2nd 2008 @ 07:08:13 PM
Script : http://www.fniv.it/board/admincp/aut...ds=10&zone=sig
Referrer : http://www.fniv.it/board/admincp/aut...build&zone=sig
IP Address : xxxxxxxxxx
Username : KURTZ
Classname : vB_Database
MySQL Version : 5.0.51a
how i can fix that? thx

edit: i just tried to put a video into my sign but it doesn't works ... :(
CHECK yourself :(

forte 10-03-2008 07:51 AM

There a problem of it embedding http://www.youtube.com/watch?v=E7wQzxln9N8. I think its because of the title as the post says

Quote:

[ame="http://www.youtube.com/watch?v=E7wQzxln9N8"]YouTube - Kermess - Y A Pas Grande Chose Dans Le Ciel

The Geek 10-03-2008 08:34 AM

If I copy and paste that URL, this is what is really being pasted:

[url="http://www.pathtovideo.com"][color=http://www.pathtovideo.com]http://www.pathtovideo.com[/ color][/ url]

So, effectively the title of that URL is the HTML for the font color. In other words, the title is:

<font color="blahblahblah">http://www.pathtovideo.com</font>

The tags inside other tags were breaking the HTML output so I have made adjustements for the next release to prevent that however if you just edit the post in a non wysiwyg editor in the meantime, all will be well :)

The Geek 10-03-2008 08:39 AM

Quote:

Originally Posted by KURTZ (Post 1635736)
hi, just installed this great mod (i mean the RC1) but when i tried to update my signatures i've got this error
how i can fix that? thx

Typo fixed for next version :)

Quote:

edit: i just tried to put a video into my sign but it doesn't works ... :(
CHECK yourself :(
It works at my end. Check your AME settings and make sure that Signatures are enabled (by default they are not).

HTHs

The Geek 10-03-2008 08:42 AM

Quote:

Originally Posted by Digital Jedi (Post 1635716)
So, your saying that this link that you posted doesn't embed: http://video.google.com/videoplay?do...70482484764613?

That video isnt working because it looks like an error in the gogole video definition. It is missing the $ameinfo[width] and $ameinfo[height] attributes. Will sort out for next release

The Geek 10-03-2008 08:45 AM

Quote:

Originally Posted by sweeps78 (Post 1635681)
here's the URL of the thread that I have in my test forum:

Try setting the ignore option to no and make sure the other media hack is disabled.

KURTZ 10-03-2008 09:00 AM

Quote:

Originally Posted by The Geek (Post 1636322)
Typo fixed for next version :)



It works at my end. Check your AME settings and make sure that Signatures are enabled (by default they are not).

HTHs

Thx for the fix Greek :)

btw, my signs are enabled but they don't work ... :S

edit: i tried to put 'container' in the field but nothing to do ...

The Geek 10-03-2008 09:21 AM

Have you checked permissions too? Also, I suspect your snapshots link may be interfering.

KURTZ 10-03-2008 09:32 AM

yes the UG's permissions are all settled to 'YES' ...

the snaps? but the videos into the post are working correctly ...

edit: i've already checked in the Social Groups/Visitor Mess: all runs correctly ... so the trouble is only into the signs ... :(

The Geek 10-03-2008 02:32 PM

Not just the permissions... admincp->Amecp->settings.

The signatures are disabled by default :)

Digital Jedi 10-03-2008 04:25 PM

Quote:

Originally Posted by The Geek (Post 1636336)
Have you checked permissions too? Also, I suspect your snapshots link may be interfering.

Just to note, I have SnapShots as well, but have not had any problems. Haven't tried it using 2.5 yet, though.

hrk 10-05-2008 08:15 AM

Great hack,
I am nt sure what happen all my youtube video is displaying ok.
but when press the play it display the video is no longer available.

The Geek 10-05-2008 09:03 AM

This is because the publisher of the video has disabled embedding. 2.5 helps to minimise this :)

KURTZ 10-05-2008 09:15 AM

Quote:

Originally Posted by The Geek (Post 1636492)
Not just the permissions... admincp->Amecp->settings.

The signatures are disabled by default :)

i understand Greek! :) the signs are enabled ... :) but don't works ...

hrk 10-05-2008 11:47 AM

Quote:

Originally Posted by The Geek (Post 1637683)
This is because the publisher of the video has disabled embedding. 2.5 helps to minimise this :)

i am using 2.5 as well. :) ,tks

Namaless 10-05-2008 01:56 PM

Found one bug:
Line 82:
PHP Code:

<?

In local I have "Short_tag" disabled and not show correctly.

Changed to
PHP Code:

<?php

and works correctly. :)

Thanks vBGeek :)

The Geek 10-05-2008 04:16 PM

Kurtz, can you PM me account info so I can test? Just need a normal account for now.

Thanks :)

KURTZ 10-05-2008 05:56 PM

Quote:

Originally Posted by The Geek (Post 1637959)
Kurtz, can you PM me account info so I can test? Just need a normal account for now.

Thanks :)

sure Greek, i'll send you a PM with the log-in in a second :p

hrk 10-06-2008 12:17 PM

Quote:

Originally Posted by hrk (Post 1637759)
i am using 2.5 as well. :) ,tks

maybe i misintrpret it.

its not working with the latest version ,
pls guide me. thank you very much.:)

The Realist 10-06-2008 12:32 PM

Just installed this on a fresh forum install and Im getting this error:

Warning: include([path]/amecache/findonly.php) [function.include]: failed to open stream: No such file or directory in [path]/includes/ame_bbcode.php on line 74

Warning: include() [function.include]: Failed opening '[path]/amecache/findonly.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in [path]/includes/ame_bbcode.php on line 74

Line 74 reads:

include($path . "findonly.php");

Where is findonly.php it supposed to be in the /amecache folder but its not there?

Regards

The Geek 10-06-2008 12:41 PM

Check that the server can write to the amecache folder and that the cache settings are correct in your Ame admincp. Afterwards, save the settings to re-write the file cache.


All times are GMT. The time now is 08:27 PM.

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.02340 seconds
  • Memory Usage 1,850KB
  • 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_php_printable
  • (23)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