PDA

View Full Version : Show Thread Enhancements - AME 2.0 -Auto Media Embedding for posts, blogs, visitor and group messsages


Pages : [1] 2 3 4

The Geek
08-26-2008, 10:00 PM
From the creators of French and Toast comes a sweet and sticky enchanement to the New York Times best-seller: AME - Auto Media Embedding (https://vborg.vbsupport.ru/showthread.php?t=150863)

AME 2.0 - The Embedder Strikes Back!

AME has won Mod of the Month for Spetember 08. Thanks!

Note that 2.5 Gold has been released. Click Here. (https://vborg.vbsupport.ru/showthread.php?t=202476)

Discussions for AME 2.5 RC 1 start here (https://vborg.vbsupport.ru/showthread.php?p=1627024#post1627024)

AME 2.0 is the next version of the "Mod of the Month" winning media embedder that:
Allows user to simply 'paste' in a URL (i.e. a youtube link) without needing to know any special tags. However instead of displaying just the URL, it will show the media within the post
is lightweight as it does all of her chores without the overhead of having 1 bbcode per pattern or trying to parse a post every single time it gets displayed with a bunch of patterns. AME radically reduces overhead and speeds up processing. The only time ame will kick in is after creating a new post or after editing an existing one (or if an ame tag is found)
is extensible. She allows you to add, edit, delete, import and export patterns. That way you can decide which services to support, how they should look and then share them with others! At time of typing this, there are over 150 media sites that have been contributed by vBulletin.org members
can extract the title (requires your server to allow url wrappers with fetch_contents)
can extract embed code from sites whose URLs do not contain sufficient information to embed the video
can rebuild your old posts to convert your 'other' mediaish tags into URL tags.
can rebuild your old posts, blogs, comments, visitor and social group messages to convert URL tags into ame tags where needed
can convert her codes BACK to url codes so you're not stuffed with a bunch of dead tags if you uninstall!
won't uglify your site by having videos appear in quotes, php, code or html blocks (blech!)
can be globally disabled
can be excluded from forums
can exclude usergroups
can be toggled on/off per post, blog, comment, visitor and social group message
would cook dinner for you if she had arms
can wrap the output in a 'container' with original URL
has a super comprehensive admincp help system. Yes, I actually took the bloody time to add all the info you need into vB's admincp help system. If you ask a silly question in this thread that is addressed in the help system, you will be taunted.
is fully phrased
has hooks around integral operations so you can extend it
Supports embedding in vbBlog, Visitor Messages and Social Groups.
Can be disabled in one or more of the following sections: Posts, vbBlog, Visitor Messages and/or Social GroupsApart from the additional areas of support around vbBlog, Visitor Messages and Social Groups, little has changed about AME since version 1.0 released over a year ago. I cleaned up a few minor bugs, trimmed and updated the default definitions.

Which sites are supported?

At time of counting this, there are about 170 sites supported. But I have only included a few common standards as default (yahoo, youtube, myspace, google and Amazon). Why only these? AME was designed with its own import and export system that enables users to create or modify definitions and share them with the community. This keeps the system lightweight, customisable and saves us all from having to upgrade every time a media site changes their URL structure or if I add another site.

Check out the 'add ons' section of this post below to see availible add-ons.



Installation/Upgrade
Upload the contents of the forums folder into your forums directory and import the product-ame.xml file into your product manager (if upgrading, choose 'yes' to overwrite previous installation).
After installation, make sure that the system is on (admincp->AME CP->Settings)
Then you may want to try to rebuild old URLs via the tools option.Big thanks goes out to all those in the community that have supported this mod. Especially Digital Jedi Who has created about 155 definitions for this system alone! :)

Change Log


2.0.2 - fixed added slashes in quote blocks (DoH!), vm advanced error and incrimented product version. You need to replace include/ame_bb_code.php and re-import the product-ame.xml to upgrade
2.0.1 - fixed missing backslashes in code blocks

2.5 Pre-Release information

Attached to this post is pre-release of version 2.5

2.5 is a pretty major upgrade from the 2.0 series and adds the following functionality to 2.0:
New in Beta 3 - Validation ability. This will help prevent media being embedded that can not be embedded (i.e. youtube videos that the author has stipulated can not be shown off of youtube). This option requires the extraction option to be turned on and a valid validation regexp. I have included one in the default youtube version. When a video on you tube gets embedded, but the author doesnt allow embedding, a link (with icon) is shown instead.
Ability to prevent non authorised usergroups from viewing (see Readme file in zip for more info)
Usergroup permissions (edit usergroup to adjust edit/view permissions)
Template driven system - uses templates now instead of 1 master replacement (see Readme file in zip for more info)
Signatures supported
Different sizes and template configurations for each supported zone (posts, blogs, groups, visitor messages and signatures)
A couple new hooks (Mainly to support a future add on for AME media in profiles)
Notfication system (similar to vB's to check for errors)
Definition keys for easier updating of definitions and to use in templates
File caching system which radically reduces processing
And more that I cant think of off the top of my head!Note that while previous definitions will work with the new system, they will not be sizeable by zone. Since DJ helped with the private beta testing, I am sure he will be releasing 2.5 versions of his definitions soon.

Please note that 2.5 is a pre-release so there will be issues. If you want more stability, use 2.x until this version becomes gold :) FWIW: The only items currently outstanding are to add some missing admincp help. The rest is working as intended as far as I can tell :)

nJoy

The Geek
08-27-2008, 12:18 PM
FAQs
I will add to this as points arise

Will I lose my old custom definitions upgrading from 1.x?
Nope, but to be on the safe side, you may want to make a backup of them before you upgrade.

Can I use my old definitions or some of the existing definitions for the 1.x series?
Yup. They are all compatable

Will this run on vb3.6x?
I haven't tested it, but there should be no reason why not. Of course visitor and social messaging wont be supported.


Troubleshooting
I will add to this as issues arise


I just installed and viedos aren't working
Check the settings to ensure new entries arent disabled (admincp->ame->settings)
If you were expecting to install AME and all your old posts would be AMEfied, remember that AME will not automatically change your old URL tags. Systems that do this are VERY server intensive. AME checks for matches at the time a post, blog, comment or message is saved (creating or editing). If you want AME to embed old posts, check out the Tools section of the admincp (admincp->AME CP->Tools).When I post a media URL, I get a 'double' version

You are most likely using multiple versions of the same definition. This can occur if you import a similar definition more than once. The solution is to delete one of them.

Mosh
08-27-2008, 12:21 PM
Excellent, I am glad you are back on the hacking scene Geek :)

I have always quite liked your hacks :)

The Geek
08-27-2008, 12:33 PM
Thanks Mosh :) Not really back in the modding scene, just on Vacation and thought I would update this little baby as I wanted the functionality in Blogs, groups and visitor messages too :D

Hope you nJoy it :)

entertain
08-27-2008, 12:43 PM
Nice work, Geek. :)

Are there many changes from the old version for vB3.6?

Or only the compatibility with blogs, ...?


cu
entertain

The Geek
08-27-2008, 12:45 PM
Nice work, Geek. :)

Are there many changes from the old version for vB3.6?

Or only the compatibility with blogs, ...?


cu
entertain
Not really many changes apart from adding support for vbBlogs, visitor messages and social group messages.

I updated a few of the default definitions and added some minor enchanements to the admincp. Also fixed a couple of very minor bugs.

Other than that, its pretty much the same lightweight, easy to use beast it was before :D

Mosh
08-27-2008, 12:47 PM
Thanks Mosh :) Not really back in the modding scene, just on Vacation and thought I would update this little baby as I wanted the functionality in Blogs, groups and visitor messages too :D

Hope you nJoy it :)
I shall :)

It was nice of you to update the hack though :)

I take it the definitions from the 3.6 version will work fine with this version too?

Subah
08-27-2008, 12:55 PM
Thanks a lot for the new version :)

The Geek
08-27-2008, 12:58 PM
I take it the definitions from the 3.6 version will work fine with this version too?

Yup, should do without a problem.

Subah
08-27-2008, 01:02 PM
If i need to upgrade all i need is overwrite the files ? or i need to delete the old file for the 1.2 ?
and will this addon work with the new version ?
https://vborg.vbsupport.ru/showthread.php?t=175378

The Geek
08-27-2008, 01:08 PM
Just overwrite the files contained in the zip, import the product-ame.xml (choosing to overwrite) and that should be all you need to do.

All of the previous add on XML's (like the big one DJ did in the link above) should all work fine. If you have additional definitions already installed, they too should be fine though you may want to use the export option to back them all up first (older versions used to overwrite previous definitions, this one shouldnt).

HTHs

Sph1nX
08-27-2008, 01:43 PM
great Addon, but having problems with it :/
when installed, it replaces a backslash in codetags with nothing
example: [.code]C:\[./code] shows only C: without \

Subah
08-27-2008, 01:54 PM
There is a problem with the arabic title in the youtube how can i fix it ?

The Geek
08-27-2008, 01:59 PM
Whats the problem Subah?

The Geek
08-27-2008, 02:15 PM
great Addon, but having problems with it :/
when installed, it replaces a backslash in codetags with nothing
example: [.code]C:\[./code] shows only C: without \
Sorry Sphinx... should be sorted now. Just download the latest package and replace your include/ame_bbcode.php file :)

Megatr0n
08-27-2008, 02:43 PM
Not working for me.

I uploaded all the files, imported the product and it doesn't work.

Initially I thought I hadn't configured which, usergroups can use this hack but there's only options to exclude/exempt.

Any ideas?

Subah
08-27-2008, 02:56 PM
Whats the problem Subah?

Try to see the orignal title of this video and add it by this mod you will fine big diffrent in the title , it is apper in un understand fonts !!
http://www.youtube.com/watch?v=fbE3-40l0oM

waza
08-27-2008, 03:12 PM
great too see something again from the geek, always vere good mods.

The Geek
08-27-2008, 03:27 PM
I see what you mean subah. I had added support for special characters (i.e. ?) but will need to look into how to support very special characters :D You can however simply turn off the extraction setting until then :)

Megatron - Is it just not linking URLs or is there another problem? Remember that it doesnt link previous posts unless you use the rebuild posts tool, otherwise it will only work on new posts. If you are making new posts and it isnt linking can you give me an example of a URL you are trying that isnt working? Also, do you have other embedding mods that could be interfering?

mykkal
08-27-2008, 03:27 PM
has anyone thought of adding code to make AME work with signatures?
I see people using video links in thier sigs all the time.

Can this be done?

The Geek
08-27-2008, 03:32 PM
has anyone thought of adding code to make AME work with signatures?
I see people using video links in thier sigs all the time.

Can this be done?
It was fairly easy to add the additional areas of functionality with the only time consuming areas centred around adding the admin toggles and rebuilding tools. So maybe i'll check into it if there is enough support. I was actually putting together a small add on that allows you to show a media link in user profiles through the AME system. If I have time after that Ill check into it :)

mykkal
08-27-2008, 03:43 PM
It was fairly easy to add the additional areas of functionality with the only time consuming areas centred around adding the admin toggles and rebuilding tools. So maybe i'll check into it if there is enough support. I was actually putting together a small add on that allows you to show a media link in user profiles through the AME system. If I have time after that Ill check into it :)


Awesome, I was thinking that the mod will absolutely improve the AME add to be much stronger then all others... Besides signatures are more visible right?

Last question....would it be possible to modify the 3.6.X version as well? I can't upgrade as i've modified my version way too much (www.mymodeltalk.com). i intergrated it with a social networking script

bashy
08-27-2008, 03:45 PM
Hi Geek, excellent hack m8, glad to see ya still producing great work :)

voter
08-27-2008, 03:47 PM
Any idea how to bring this to work with vbseo?

Or how could one chek any logs, why the replacement not happening.

The Geek
08-27-2008, 04:01 PM
Awesome, I was thinking that the mod will absolutely improve the AME add to be much stronger then all others... Besides signatures are more visible right?

Last question....would it be possible to modify the 3.6.X version as well? I can't upgrade as i've modified my version way too much (www.mymodeltalk.com). i intergrated it with a social networking script

I suppose its because the videos would be massive in a signature or require a resize (which Im doing for the profile add-on, but not sure about as a default option).

Anyhoo, no real straight forward way to upgrade. Suppose you can check out the added hooks and see if you could tweak it :)

Any idea how to bring this to work with vbseo?

Or how could one chek any logs, why the replacement not happening.

It works with vbSEO (at least on my site). Are they happening on new posts and if not, can you provide a link that you have been trying? Also do you have another media type hack that could be conflicting?

mykkal
08-27-2008, 04:01 PM
It works with VBSEO on 3.6.X.

Contact vbseo support and see what the conflict is. They have great support my friend.

gothicuser
08-27-2008, 04:04 PM
You've done it again, brilliant.
Absolutely wonderful to see you back here Sam, hope you are keeping well my friend :)

mykkal
08-27-2008, 04:14 PM
I'm thinking youtube videos are a good size but I have seen smaller.

http://www.popeater.com/article/cult-legend-julius-shonuff-carry-dies/144546

Look at the videos on this page (my favorite movie)

The Geek
08-27-2008, 04:25 PM
Thats very dooable with AME, the problem is in having some sections one size and other sections other sizes. Like I mentioned, I have a workaround for this, but don't think I would be happy putting the workaround into the core product. Instead I would add additional fields to define sizes based on section of the site. I just don't know when I would get to it :D

- Hey Goth, Bashy, et. all :D /wave

Megatr0n
08-27-2008, 05:02 PM
I see what you mean subah. I had added support for special characters (i.e. ?) but will need to look into how to support very special characters :D You can however simply turn off the extraction setting until then :)

Megatron - Is it just not linking URLs or is there another problem? Remember that it doesnt link previous posts unless you use the rebuild posts tool, otherwise it will only work on new posts. If you are making new posts and it isnt linking can you give me an example of a URL you are trying that isnt working? Also, do you have other embedding mods that could be interfering?

It isn't linking the URLs. I was testing it on a new post not an old one.

Here is the exact URL: Testing (http://www.gupshupp.com/forums/gupshupp-lounge/6781-testing.html)

I do have this hack installed: www.vbyes.com

I disabled it and it still doesn't make a difference.

Digital Jedi
08-27-2008, 05:47 PM
You had Disable New Items set to Yes Megatr0n. Take a look now. ;)

Digital Jedi
08-27-2008, 05:55 PM
Oh, did I mention this is verily awesome?

yahoooh
08-27-2008, 07:21 PM
does it include vblog ?

yahoooh
08-27-2008, 07:27 PM
ok i get the answer , installed

Subah
08-27-2008, 07:52 PM
I see what you mean subah. I had added support for special characters (i.e. ?) but will need to look into how to support very special characters :D You can however simply turn off the extraction setting until then :)

How can i turn off the extraction setting ? until then ;)

iogames
08-27-2008, 07:58 PM
This is one of the hacks I love the most! but before I post I read the thread and couldn't find direct answer:

Are you going to upgrade the one for 3.6x or can we install this on 3.6x or your vacations just covers 3.7x?

Jamesmaps
08-27-2008, 07:59 PM
Woooo this is awesome

Thanks a lot =)

Digital Jedi
08-27-2008, 08:21 PM
There's a global option in Settings, but you can do individual sites by turning it off inside each definition.

Hornstar
08-27-2008, 08:41 PM
So awesome to see this updated. Thanks a lot Geek :)

The Geek
08-27-2008, 08:43 PM
This is one of the hacks I love the most! but before I post I read the thread and couldn't find direct answer:

Are you going to upgrade the one for 3.6x or can we install this on 3.6x or your vacations just covers 3.7x?

Thanks IO :)

To be honest, I havent tested it on a 3.6x system, however there should be no reason that it wouldnt work. In fact I added a couple of admincp tools that can be run when you do upgrade to 3.7. (a couple of indexes that obviously wont be added if you install this on 3.6x).

So... while I havent tested it, I built it so it should be compatable with 3.6x

nJoy

NeverBored
08-27-2008, 09:28 PM
Damn, I'm late to the party with a feature request... I would like to be able to use if conditionals in the container HTML and replacement HTML boxes... Would that add any strain on performance?

Anyhow, cool to see you've updated this mod. It's a great mod, and my site is more or less actually built around it. Your work is appreciated.

Jhonnyf
08-27-2008, 09:46 PM
Fine, Thank You!

MadK
08-27-2008, 09:58 PM
Wow, great. Thank you! :)

Old user of 1.x series, new user of 2.x series! (:p)

TCattitude
08-28-2008, 12:11 AM
Installed, updated, and nominated.
Welcome back (even if it's for a short time) Geek ;)

A bug (i think): Post a message with quotes in them. This double quotes: " " " " "
Then, quote that message. A lot of \ (back slashes) appear before every quote " in the quoted text.
If i disable the new AME, that don't happen.

Deepdog009
08-28-2008, 01:12 AM
I need this ;)
Groovy Baby :cool:

furst
08-28-2008, 02:47 AM
I just updated to the latest version and it's totally messing up my postbit every time someone posts a video link. I haven't modified the container at all.

http://www.bowrd.com/showthread.php?t=61686
(link is fine, but rest of the site is NWS)

TheInsaneManiac
08-28-2008, 02:52 AM
Dude you are awesome. Now I don't have to buy Passive Vid. Plus yours supports more sites!

tormodg
08-28-2008, 03:46 AM
Fantastic, Geek!!!! We miss you.

The Geek
08-28-2008, 05:07 AM
I just updated to the latest version and it's totally messing up my postbit every time someone posts a video link. I haven't modified the container at all.

http://www.bowrd.com/showthread.php?t=61686
(link is fine, but rest of the site is NWS)
Looks like you have duplicate definitions (i.e. more than one youtube.com definition) which are clashing. Make sure you only have 1 of each type.

Brood
08-28-2008, 05:16 AM
getting a database error everytime i click the 'go advanced' button on posting visitor messages :(

Database error in vBulletin 3.7.3:

Invalid SQL:

(
SELECT
visitormessage.*, visitormessage.dateline AS pmdateline, user.*, visitormessage.ipaddress AS messageipaddress
,deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason
,avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight
,ame_flag
FROM visitormessage AS visitormessage
LEFT JOIN user AS user ON (visitormessage.postuserid = user.userid)
LEFT JOIN avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN customavatar AS customavatar ON(customavatar.userid = user.userid)
LEFT JOIN deletionlog AS deletionlog ON (visitormessage.vmid = deletionlog.primaryid AND deletionlog.type = 'visitormessage')

WHERE visitormessage.userid = 10431 AND visitormessage.postuserid = 381 AND visitormessage.state IN ('visible','moderation','deleted')

)
UNION
(
SELECT
visitormessage.*, visitormessage.dateline AS pmdateline, user.*, visitormessage.ipaddress AS messageipaddress
,deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason
,avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight

FROM visitormessage AS visitormessage
LEFT JOIN user AS user ON (visitormessage.postuserid = user.userid)
LEFT JOIN avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN customavatar AS customavatar ON(customavatar.userid = user.userid)
LEFT JOIN deletionlog AS deletionlog ON (visitormessage.vmid = deletionlog.primaryid AND deletionlog.type = 'visitormessage')

WHERE visitormessage.userid = 381 AND visitormessage.postuserid = 10431 AND visitormessage.state IN ('visible','moderation','deleted')

)
ORDER BY pmdateline DESC;

MySQL Error : The used SELECT statements have a different number of columns
Error Number : 1222

MySQL Version : 4.1.22-standard

The Geek
08-28-2008, 05:21 AM
Installed, updated, and nominated.
Welcome back (even if it's for a short time) Geek ;)

A bug (i think): Post a message with quotes in them. This double quotes: " " " " "
Then, quote that message. A lot of \ (back slashes) appear before every quote " in the quoted text.
If i disable the new AME, that don't happen.

Sorted in 2.0.2

To upgrade, just replace your old includes/ame_bbcode.php file with the one found in the 2.0.2 package.

Thanks!

GoTTi
08-28-2008, 05:22 AM
/me bows before Geek.

how you been? everything ok over there?

where is the download for this mod? im looking and dont see.

GoTTi
08-28-2008, 05:23 AM
nevermind, i see you uploaded it as i was typing #52.

so are you back in action with your mods and is everything with the business squared away? hope all is good dude.

GoTTi
08-28-2008, 05:25 AM
fyi bossman, the version 2.0.2 is not showing that in the plugins when i just upgraded. it says 2.0.0

The Geek
08-28-2008, 05:38 AM
getting a database error everytime i click the 'go advanced' button on posting visitor messages :(



Brood, I updated the 2.0.2 package with the fixed plugin.

To upgrade to 2.0.2 from an earlier 2.x version...

Replace your old includes/ame_bbcode.php and re-import the product-ame.xml (choosing the option to overwrite)

Thanks

The Geek
08-28-2008, 05:40 AM
how you been? everything ok over there?


All is cool here. Business is good and we are cooking on gas :D
Won't be returning to coding though, I just updated this as I'm on vacation and its my way of unwinding (how twisted am I :D)

Good to see all the oldies still hanging around :)

The Geek
08-28-2008, 05:44 AM
Damn, I'm late to the party with a feature request... I would like to be able to use if conditionals in the container HTML and replacement HTML boxes... Would that add any strain on performance?

Its a great suggestion, just not sure if it will get implemented in this version. I would much rather be using templates for this and thinking about it... it may help resolve the 'different sized locations' issue.

I'll check into it though as I'm totally with you :)

Brood
08-28-2008, 05:53 AM
seems to be working, thanks, great hack

Doctor Death
08-28-2008, 08:36 AM
This is the greatest addon!

I also would like you to consider a feature. In the options control panel, I would suggest the ability to check all or some definitions and then the ability to delete those checked. This gives you the ability to rapidly refresh definitions by deleting and reinstalling when they are updated.

Thanks for listening.

Hornstar
08-28-2008, 08:36 AM
My youtube vid after I press play is just having the loading sign go around and round. It is not playing. It has always worked good until I updated.

Any ideas?

Does it work for anyone else here http://www.gamerzneeds.net/forums/blogs/hornstar6969/new-video-embedding-support-blogs-profiles-339/

edit: it is working in IE but not in FF3 for me. it appears to only be youtube for now as well.

MindStar
08-28-2008, 09:04 AM
Excellent!

Would you consider using cURL (http://www.php.net/manual/en/intro.curl.php) instead of file_get_contents to get the title of the video file?

* we have disabled file_get_contents on our server due to the security risks with using file_get_contents (http://phpsec.org/projects/phpsecinfo/tests/allow_url_fopen.html).

Here's a link to an example of using cURL to replace a call to file_get_contents

http://uk3.php.net/manual/en/function.file-get-contents.php#82255

The Geek
08-28-2008, 09:38 AM
My youtube vid after I press play is just having the loading sign go around and round. It is not playing. It has always worked good until I updated.

Any ideas?

Does it work for anyone else here http://www.gamerzneeds.net/forums/blogs/hornstar6969/new-video-embedding-support-blogs-profiles-339/

edit: it is working in IE but not in FF3 for me. it appears to only be youtube for now as well.
Works for me in FF3 :)

The Geek
08-28-2008, 09:38 AM
Excellent!

Would you consider using cURL (http://www.php.net/manual/en/intro.curl.php) instead of file_get_contents to get the title of the video file?

* we have disabled file_get_contents on our server due to the security risks with using file_get_contents (http://phpsec.org/projects/phpsecinfo/tests/allow_url_fopen.html).

Here's a link to an example of using cURL to replace a call to file_get_contents

http://uk3.php.net/manual/en/function.file-get-contents.php#82255
Ill look into it :)

Subah
08-28-2008, 09:54 AM
Thanks for the upgrade again :)

The Geek
08-28-2008, 09:55 AM
Damn, I'm late to the party with a feature request... I would like to be able to use if conditionals in the container HTML and replacement HTML boxes... Would that add any strain on performance?

Anyhow, cool to see you've updated this mod. It's a great mod, and my site is more or less actually built around it. Your work is appreciated.

Just a quick update to say that, I just tested this out. Its pretty easy to implement and I will most likely do it, however the key problem with putting conditionals in is that postbit contents get cached once they are parsed. So say for instance you wanted to show a container for logged in users, but just the URL for non logged in users. If the first person to view it is a logged in user, then the conditional wont be run again until it expires from the cache and the next person views it. There are other ways to do this, just not really ideal with a conditional.

I could most likely force AME'ed posts to bypass the cache, but I don't think the performance trade off is worth it.

So...

I will most likely be switching to templates in the future as they give a lot better flexibility but you would have to be mindful of the cache for conditionals.

verino
08-28-2008, 10:11 AM
thank's for the mod :up: installed

YopY
08-28-2008, 11:05 AM
I has question. In an earlier version of AME, it caused an error when posting or editing a post containing PHP code (i.e. code examples), probably due to the regexes AME (I assume) uses getting triggered by PHP code. Is that issue known, and if so, has it been fixxxed in this version (or an earlier one)?

The Geek
08-28-2008, 12:00 PM
I has question. In an earlier version of AME, it caused an error when posting or editing a post containing PHP code (i.e. code examples), probably due to the regexes AME (I assume) uses getting triggered by PHP code. Is that issue known, and if so, has it been fixxxed in this version (or an earlier one)?
If you mean php and other code blocks, the issue had been sorted :)

entertain
08-28-2008, 12:03 PM
Hi Geek,

do you know why ä,ö,ü,ß and so on will not be displayed correctly in the video header?

Greetings.

The Geek
08-28-2008, 12:06 PM
I really don't know enough about character sets, but try editing ame_bbcode.php and change:

$title = utf8_decode($title);


to


//$title = utf8_decode($title);


Let me know if that helps

(and click install if you get a sec :D )

entertain
08-28-2008, 12:15 PM
I'm still using the old version and there i can not find the code you have posted. :o

Should I update? :D

The Geek
08-28-2008, 12:17 PM
I'm still using the old version and there i can not find the code you have posted. :o

Should I update? :D
lol. Yea. In fact he new version should work for you without the above workaround. The above code was put in to take care of most special character cases.

HTHs

entertain
08-28-2008, 12:19 PM
ehhm - is it necessary to reinstall the product or can i also overwrite it?

The Geek
08-28-2008, 12:21 PM
ehhm - is it necessary to reinstall the product or can i also overwrite it?
ofc, just upload new files and import the new product (choosing to overwrite) as per instructions in the first post.

entertain
08-28-2008, 12:28 PM
okay - the characters are still not working. I also did the code edit like you have posted it in post #70.

& is also not working and is displayed in its html tag &

The Geek
08-28-2008, 12:30 PM
okay - the characters are still not working. I also did the code edit like you have posted it in post #70.

& is also not working and is displayed in his html tag &
But are the other characters showing correctly?
BTW: post a URL as an example please :)

entertain
08-28-2008, 12:36 PM
Yes, the rest is displayed correctly - like there was no change.

Here an example: http://www.youtube.com/watch?v=51V1VMkuyx0

Look at the & in the title. ;)

Digital Jedi
08-28-2008, 12:48 PM
I just updated to the latest version and it's totally messing up my postbit every time someone posts a video link. I haven't modified the container at all.

http://www.bowrd.com/showthread.php?t=61686
(link is fine, but rest of the site is NWS)
That's a case of more then one YouTube definitions. Remember that importing new ones does not overwrite old ones with same name. So you could have multiple instances of the same definition conflicting.


This is the greatest addon!

I also would like you to consider a feature. In the options control panel, I would suggest the ability to check all or some definitions and then the ability to delete those checked. This gives you the ability to rapidly refresh definitions by deleting and reinstalling when they are updated.

Thanks for listening.
Check the CP Doc. This is one of the new features. :)


My youtube vid after I press play is just having the loading sign go around and round. It is not playing. It has always worked good until I updated.

Any ideas?

Does it work for anyone else here http://www.gamerzneeds.net/forums/blogs/hornstar6969/new-video-embedding-support-blogs-profiles-339/

edit: it is working in IE but not in FF3 for me. it appears to only be youtube for now as well.
The endlessly looping video is very often a YouTube (or whichever site your dealing with) problem. And I believe it has to do with individual browser sessions.



Just a quick update to say that, I just tested this out. Its pretty easy to implement and I will most likely do it, however the key problem with putting conditionals in is that postbit contents get cached once they are parsed. So say for instance you wanted to show a container for logged in users, but just the URL for non logged in users. If the first person to view it is a logged in user, then the conditional wont be run again until it expires from the cache and the next person views it. There are other ways to do this, just not really ideal with a conditional.

I could most likely force AME'ed posts to bypass the cache, but I don't think the performance trade off is worth it.

So...

I will most likely be switching to templates in the future as they give a lot better flexibility but you would have to be mindful of the cache for conditionals.
I had thought of suggesting this too, but I just presumed it was out of the scope of things. If you can do it though, would this help address the problem with sites that use more then one media type? Quite a few sites I've had to put on the no-fly list because they would sometimes use a standard flash player, but then some videos would be Windows Media files. Would I be able to use a conditional to detect which is which?

hotwheels
08-28-2008, 01:13 PM
It's great to see ya back The Geek

furst
08-28-2008, 01:50 PM
Looks like you have duplicate definitions (i.e. more than one youtube.com definition) which are clashing. Make sure you only have 1 of each type.
Thanks Geek, you're the best.

entertain
08-28-2008, 02:24 PM
Oh guys, I'm crazy. :D

Here is my "small" german translation. :D (Language File)

@Geek: You can upload it in your first post. ;)


cu
entertain

popular
08-28-2008, 05:28 PM
does this mod work with signatures? hmmm doesn't work for sigs and daily motion doesnt seem supported =(

webcosmo
08-28-2008, 06:29 PM
Just installed on our forum http://www.webcosmoForums.com
Good job.

GrandHolyKing
08-28-2008, 07:51 PM
What about some popular sites such as the following
www.play.com
www.game.co.uk
www.hmv.co.uk

Members on my forum regularly use these sites when ordering stuff so it would be great to have them on the list.

As it stands, this is one beautiful mod that trumps all others! Good job!

nick-harper
08-28-2008, 11:15 PM
I have installed this and I chose to exempt unregistered and banned users but they still can see :(

Link (http://www.skybluestalk.co.uk/f19/coventry-3-vs-aldershot-1-highlights-t1475/)

Any help would be greatly appreciated :)

GrandHolyKing
08-29-2008, 02:02 AM
I have installed this and I chose to exempt unregistered and banned users but they still can see :(

Link (http://www.skybluestalk.co.uk/f19/coventry-3-vs-aldershot-1-highlights-t1475/)

Any help would be greatly appreciated :)
Hmm, I'm the same. Just tried it myself to see and it's just the same

http://www.mfg.me.uk/showthread.php?p=36960#post36960

I'll have a poke around and see whats up.

GrandHolyKing
08-29-2008, 02:48 AM
I have installed this and I chose to exempt unregistered and banned users but they still can see :(

Link (http://www.skybluestalk.co.uk/f19/coventry-3-vs-aldershot-1-highlights-t1475/)

Any help would be greatly appreciated :)
It would seem that the exclusion list is only for stopping users from a certain usergroup from having THEIR urls parsed.

For example, if you check it for administrators then none of your own posts will be converted. It's not a way of blocking unregistered users, simply a way to stop their posts being converted should you have guest posting on.

At least, that's what I make of it anyway. ;)

The Geek
08-29-2008, 05:34 AM
You can't prevent certain usergroups from seeing the videos, just AME automatically converting them.

The reason is down to the postcache. Once a post gets parsed, it gets saved for x amount of days. Therefore when your admin first views the post, it gets cached from the 'admin' perspective. If the cache expires and a guest is the next to view it, it then gets cached from the guests perspective.

There are a couple of solutions I am playing with, but I am not 100% sold on either yet.
One would be to swap out the URL with javascript after processing, the other would be check posts during display time. The first would be the least server intensive, but not ideal. The latter simply means more server processing.

Leave it with me, I am working on a couple ideas. But if you really need a mod that will only display for certain usergroups right now then try checking out passivevid as I am pretty sure that supports the option.

HTHs

Doctor Death
08-29-2008, 09:42 AM
Thanks for this great mod.

I updated on my board and then had all previous AME codes removed using the TOOLS section. When I then tried to reconstruct posts, no videos showed up, only hyperlinks.

What am I doing wrong to make it rebuild those links?

The Geek
08-29-2008, 10:28 AM
Try running in test mode and verbose mode. This will show the processing in action. If you are not seeing ame tags converted when they really should, make sure the system is not disabled (admincp->AME CP->settings). Let me know.

The Geek
08-29-2008, 11:29 AM
Just as an FYI:

I have completed the alpha of the next version which includes a lot more functionality based on user requests.


It prevents HTML entities within the title (i.e. &)
It supports signatures
It uses templates instead of the open and close setting. The templates can be specified per zone (i.e. signature, blog, posts, etc...) and obviously customised per style. Remember though; because of vB's postcache, using conditionals will not always produce anticipated results (i.e. a conditional display based on usergroup).
It supports sizing based on what zone you are in (i.e. one size for signatures and one size for posts)
It has an option to file cache the definitions for faster processing (especially with sites that have A LOT of definitions)


What I have left to do:

Add the new features into the admincp for easier controlling
I may add a key column to the definitions to prevent duplication of definitions and for easier updating of defaults.


Though this version will still support all the existing definitions, some changes will have to be made to support the new areas of functionality. Namely the ability to adjust the size of the media. Right now, the width and height attribute is included in the embed code. While this is fine, it means that you can't specify the size of the media with the new features. To support the new sizing options, the width and height attributes within the embed code will need to be changed from width="xxx" and height="xxx" to $ameinfo[width] and $ameinfo[height] respectively in both the object tag and the embed tag. I may also do a tool to try and automate this for users, we will just have to see how much time I have :)

Anyhooo... I have spent a great deal of my vacation time retooling this mod so I am going to go take a break and catch some sun with an ice cold beer for awhile (vacation is almost over!). I may get some time later today or tomorrow morning to release a beta, but then again, I may not :D

nJoy

Sunsetdriver
08-29-2008, 12:34 PM
Page keeps loading during installation.
My post table has more than 1,2 millions records. How much would it take to add the index?:confused:

Digital Jedi
08-29-2008, 12:35 PM
does this mod work with signatures? hmmm doesn't work for sigs and daily motion doesnt seem supported =(
Sig functionality, if you read just a few posts between yours and mine, will be added by The Geek in the next version. Sounds like pretty soon.

Daily Motion is indeed supported, including all it's foreign language counterparts and 150+ other sites. You just need to get the definitions from the Add-On to this thread.

What about some popular sites such as the following
www.play.com (http://www.play.com)
www.game.co.uk (http://www.game.co.uk)
www.hmv.co.uk (http://www.hmv.co.uk)

Members on my forum regularly use these sites when ordering stuff so it would be great to have them on the list.

As it stands, this is one beautiful mod that trumps all others! Good job!
I can add them to the list for the next update cycle, but I'll have to make sure they can convert before making any promises. That said, keep on eye on the Add-On thread for the next update.


Just as an FYI:

I have completed the alpha of the next version which includes a lot more functionality based on user requests.


It prevents HTML entities within the title (i.e. &)
It supports signatures
It uses templates instead of the open and close setting. The templates can be specified per zone (i.e. signature, blog, posts, etc...) and obviously customised per style. Remember though; because of vB's postcache, using conditionals will not always produce anticipated results (i.e. a conditional display based on usergroup).
It supports sizing based on what zone you are in (i.e. one size for signatures and one size for posts)
It has an option to file cache the definitions for faster processing (especially with sites that have A LOT of definitions)

What I have left to do:
Add the new features into the admincp for easier controlling
I may add a key column to the definitions to prevent duplication of definitions and for easier updating of defaults.Though this version will still support all the existing definitions, some changes will have to be made to support the new areas of functionality. Namely the ability to adjust the size of the media. Right now, the width and height attribute is included in the embed code. While this is fine, it means that you can't specify the size of the media with the new features. To support the new sizing options, the width and height attributes within the embed code will need to be changed from width="xxx" and height="xxx" to $ameinfo[width] and $ameinfo[height] respectively in both the object tag and the embed tag. I may also do a tool to try and automate this for users, we will just have to see how much time I have :)

Anyhooo... I have spent a great deal of my vacation time retooling this mod so I am going to go take a break and catch some sun with an ice cold beer for awhile (vacation is almost over!). I may get some time later today or tomorrow morning to release a beta, but then again, I may not :D

nJoy
You have a strange way of vacationing, but I like it. Rest up dude.

That's size variable sounds like a major dream come true to me.

popular
08-29-2008, 12:50 PM
niceeee sounds awesome (Y)

Mikhal
08-29-2008, 01:29 PM
On line 82 of the automediaembed_admin, it would be very helpful if you used the long php tag' <?php' instead of '<?' in future releases. My webserver has problems displaying php files with the short tags. Also, that's the only place where you use the short tag.

Besides that, the mod is working great. Thanks for updating it!

MindStar
08-29-2008, 02:17 PM
Excellent!

Would you consider using cURL (http://www.php.net/manual/en/intro.curl.php) instead of file_get_contents to get the title of the video file?

* we have disabled file_get_contents on our server due to the security risks with using file_get_contents (http://phpsec.org/projects/phpsecinfo/tests/allow_url_fopen.html).

Here's a link to an example of using cURL to replace a call to file_get_contents

http://uk3.php.net/manual/en/function.file-get-contents.php#82255

Ill look into it :)

FYI, I just tried replacing the call to file_get_contents with a call to the curl_get_file_contents and copy&pasted the function from the above php.net webpage and it worked :)

The Geek
08-29-2008, 02:23 PM
@Mindstar - Ill add the option to curl or fetch for you :)

@Mikhal - I updated the next version with the php tag for :)

@DJ - if you can update your XML work with the size changes, Ill happily send you a pre-release to do so. That will save me the time of writing a conversion tool :)

@Sunset - If the page is just reloading the first, it usually means it is on test mode. If it isnt and it is taking ages... make sure you turn off the extraction method as that means each match will be trying to fetch the destination title (which can take some time)

Hope that is everyone :D

soulface
08-29-2008, 03:03 PM
When I post any youtube link in any profile's visitor messege, It's shows double...

https://vborg.vbsupport.ru/

Darat
08-29-2008, 03:11 PM
Anyone got some HTML code handy that I could use to put the videos in a collapsible box?

The Geek
08-29-2008, 03:23 PM
When I post any youtube link in any profile's visitor messege, It's shows double...


You have more than 1 of the same definition (i.e. 2 youtube definitions). Delete one :)

The Geek
08-29-2008, 03:23 PM
Anyone got some HTML code handy that I could use to put the videos in a collapsible box?
If you can hang on until next release, It will support templates which will be easy to add collapse support (heck, I might even do it for you ;) )

Digital Jedi
08-29-2008, 04:53 PM
@DJ - if you can update your XML work with the size changes, Ill happily send you a pre-release to do so. That will save me the time of writing a conversion tool :)
Sure, I can do that. How soon would you need it?

The Geek
08-29-2008, 04:59 PM
Last day of holiday... how bout tomorrow? :)

Obviously it doesn't need to be released, but just get it ready as I am looking to release 2.5 tomorrow :)

To do so... replace all instances of

width="xxx" (or) width='xxx'

and

height="xxx" (or) height='xxx'


With:


$ameinfo[width]


AND


$ameinfo[height]

respectively :)

note the lack of quotes in [height] and [width]

preprules
08-29-2008, 06:39 PM
Added to 3.7.2, worked superbly!
Installed vBlog and it (blog) had database errors.

First support reply was is an AME installed? Hmmm, Uninstalled AME and blog worked fine??
Any thoughts on this?
Thanks

preprules
08-29-2008, 06:54 PM
uninstalled, reinstalled and all seems well.
Thanks for this!

Skavenger
08-30-2008, 04:30 AM
I have URLs like this:

YouTube - House - Season 5 - Promo 2 (http://www.youtube.com/watch?v=beKgeNShJxY&fmt=18)

And when I run "Rebuild Groups" option I get this: http://i33.tinypic.com/24y5qmf.png

How can I fix it?

Thanks.

The Geek
08-30-2008, 06:47 AM
<a href="https://vborg.vbsupport.ru/showpost.php?p=1608156&postcount=2" target="_blank">https://vborg.vbsupport.ru/showp...56&postcount=2</a>

Skavenger
08-30-2008, 07:33 AM
Oh, I never saw the FAQ, sorry and thanks :)

Skavenger
08-30-2008, 05:20 PM
I have another problem. A long time ago I was using this mod (https://vborg.vbsupport.ru/showthread.php?t=106239&highlight=anymedia) that requires to use a [MEDIA] tag, how can I delete all those tags? Without them then I could convert URLs to AME's

Edit: I fixed it with "\1".

Creative Liquid
08-31-2008, 05:07 AM
Works for me in FF3 :)

I'm having the same problem. It works with Ie but not FF. Not sure what could be causing this.

Creative Liquid
08-31-2008, 05:51 AM
never mind, figured it out. You may have to reinstall your flash plugin.

Greenskull
08-31-2008, 06:11 AM
I'm having a problem...it was working great until a few days ago. For some reason, when I post a link it either A: Doesn't work or B: Makes it just a bunch of HTML. Help!

The Geek
08-31-2008, 08:22 AM
Can you provide an example?

Lizard King
08-31-2008, 08:10 PM
It is nice to see you back online Sam :)

The Geek
09-01-2008, 01:52 PM
Hey Lizard, nice to see you still about too :)

FYI all:

I am now back from my vacation and gearing up to head out on a business trip to Athens. I have finished the first beta of what will now be 2.5 and it is being tested while I find time to do some code clean up. To whet your whistle and give you an idea as to why I have gone from version 2 to 2.5 in a couple weeks time... here is a smackle of what is included in the next version:

New in 2.5:

Ability to prevent non authorised usergroups from viewing media (see limitations below)
Full usergroup permissions support (edit user group to adjust edit/view permissions per zone)
Template driven system which uses templates now instead of 1 master replacement (see note on conditionals below)
New zone: Signatures!
Different sizes and templates for each supported zone (posts, blogs, groups, visitor messages and signatures). That means that AME's in signatures can have no container table around the media and be small, but those in posts can have special ones with larger size videos
A couple new hooks. This is to support an AME add on for profiles I prototyped.
Notification system (similar to vB's that check for configuration errors, duplicates and other items that could cause unexpected behaviour)
definition keys for easier updating of definitions. This will also allow you to use conditionals in the templates if maybe you wanted media logos or a different look to the videos.
File caching system which radically reduces processing. This saves the definition query and array building. Ideal if you have a LOT of definitions.
And more that I cant think of off the top of my head!



Limitations with usergroup viewing permissions

The new system uses javascript to attempt to 'hide' the embedded media and 'show' a default URL. If the user doesn't have javascript enabled or places an embedded video in their post via the quick reply box, it will appear to them until they refresh the page. Of course, if the person doesn't have permission to view, I doubt they would have permission to embed anyway!

Another limitation with permissions will be that if someone with permission to post URLs edits someones who doesnt... well.. . it will appear!


Note on template conditionals

vBulletin caches the contents of posts after it has been parsed to save processing time. This means that if you put a condition into one of AMEs templates that will somehow alter the contents based on who is viewing it... you will get unexpected results. Say for example, in AMEs template you used the following conditional:

<if condition="$bbuserinfo['userid']==1">Hi Bob!</if>

If someone other than userid #1 created the post (and hence the cache), it won't appear, even when user #1 views it! Obviously the opposite is also true.

The only way to get around this is to turn off vBulletins post cache, but I wouldn't recommend it!


Changes to definitions

Stop using width and height tags in your object and embed tags. Instead, use $ameinfo[height] and $ameinfo[width] respectively. This is so that users can specify the dimensions in their settings and use the same definition in different areas of the site. Although pre 2.5 definitions will work, It will look pants if you can't tweak the size for a signature!

Start putting the ameid tag in your exported items. This is a unique identifier similar to vB's productid that can contain only alphanumeric characters and an underscore (basically any combination of letters, numbers and the _ character. No spaces permitted). This tag will help prevent duplicate imports and also give the template the option of knowing what type of media it is.

nJoy

calldaffer
09-01-2008, 05:56 PM
installed with no problems, thanks for that. I am wondering how to display the videos you mentioned in your first post: yahoo, youtube, myspace, google and Amazon

I can get youtube to display no problem but any other video I try and put in it simply displays the URL?

The Geek
09-01-2008, 07:50 PM
can you post some examples that arent working?

kpa4941
09-02-2008, 08:28 PM
Can you make a video link to your own site(http://www.domain.com/video.mpg). Will it still embed the video into a post?

Skavenger
09-02-2008, 08:44 PM
Can you make a video link to your own site(http://www.domain.com/video.mpg). Will it still embed the video into a post?
Check this: https://vborg.vbsupport.ru/showthread.php?t=175378

kpa4941
09-02-2008, 08:55 PM
Thanks for posting the link. It helped.

The Geek
09-02-2008, 08:58 PM
2.5 Beta 2 has been released in the first post of this thread.

nJoy

ShiZoPhreN
09-03-2008, 05:45 AM
*AME 2.5 Installed*

Any Option for a Lightbox?!

Eg: With The Image Resizer. Powered with Lytebox / Highslide / Lightview / and many more! (https://vborg.vbsupport.ru/showthread.php?t=184571)

katie hunter
09-04-2008, 03:28 AM
Hi Geek =]

I have a question, why do all embed videos always come centered ? Can this be disabled ? all videos are becoming in the center of the thread

Gosef
09-04-2008, 10:06 AM
Nice work

RedDevil
09-04-2008, 10:47 AM
Just updated to new beta version, experiencing a slight problem importing reports a missing key from xml files pic attached.

Im not into coding so dont know what its asking for. any help appreciated.

EDIT: i compared the xml to one inbuilt and added the name manually still shows as missing as in pic 2

RedDevil
09-04-2008, 11:13 AM
Just an update on above post, seems a minor bug it fixes itself if you resave using the message box and re-add its key name again and save, seems when you import xml 1st time and add key manually it doesnt save it, 2nd time using its warning system link as picture attached.

Maybe a fix needed in next update... still great work tho well done all involved.

Digital Jedi
09-04-2008, 11:31 AM
Hi Geek =]

I have a question, why do all embed videos always come centered ? Can this be disabled ? all videos are becoming in the center of the thread

You can change the look and feel of the container by editing the appropriate templates that come with the new version.

Just an update on above post, seems a minor bug it fixes itself if you resave using the message box and re-add its key name again and save, seems when you import xml 1st time and add key manually it doesnt save it, 2nd time using its warning system link as picture attached.

Maybe a fix needed in next update... still great work tho well done all involved.
I'll be updating the Master XML list soon to include the key. The Geek added this to prevent duplicate entries from being imported. I'll probably just do a new thread for them, but I have a lot of definitions to update, including the new variables involved in sizing. It will take some time.

Bluefin221
09-04-2008, 11:44 AM
Is it possible to get this working with vBadvanced Dynamics?

GrandHolyKing
09-04-2008, 03:54 PM
Hi Geek =]

I have a question, why do all embed videos always come centered ? Can this be disabled ? all videos are becoming in the center of the threadI simply edited the container html from "Center" to "Left"...easy as pie and works a treat!!

Magz
09-04-2008, 07:03 PM
Hi all,

Ive use a previous mod before which prefixed my vids with a Tag.

Now the code code is displayed in AME, so could someone show me what i need to do to convert them to use AME, rather than doing them manually.

Ive seen a previous post say he solved it by adding \1, but how do i implement it?

regards

Digital Jedi
09-05-2008, 11:55 AM
I'm not sure what the \1 thing is referring to, but if you where using some kind of BBCode previously, the Rebuild option in Tools runs through your posts and replaces tags you previously had with [AME] tags. You just have to tell it which tags to replace. You can also run it in Test Mode to see the results and make sure it's something you want to do.

The Geek
09-05-2008, 12:16 PM
Hey Magz, check out the conversion tool for old tags. Make sure you check out the admincp help associated with each option too!

Magz
09-05-2008, 12:22 PM
Thanks guys,

sadly my site got hacked last night, all files deleted. Im sure they gained access via an external php arcade script i was using. Thats deleted now.

Ive got the site back, from a back up, and will try again when i readd it.

The Geek
09-05-2008, 02:21 PM
man, that sucks! Sorry to hear that!

But just for future reference, AME has a conversion utility in the tools menu that can allow you to uninstall 'other' media tags. It does this by turning them into URL tags. From that point, you can then run the rebuild tools to change URL tags into AME tags. I thought that would be more useful than making a tool that simply converted other media tags into ame tags.

HTHs!

The Geek
09-05-2008, 02:22 PM
Is it possible to get this working with vBadvanced Dynamics?
I am sure it would be, however I don;t have, never used it and don't really have time to. However looking at the various hooks around the blog, group messages, etc.. someone should be able to whip out an easy add on to do it (as long as dynamics has hooks in the right places :) )

roadrunna
09-05-2008, 11:20 PM
Hiya,

I'm running the 2.5 version. After selecting to rebuild posts from the tools menu it runs through the first page, sits through the delay, redirects to the next page but nothing happens :confused:

The attachemt is all that is shown when it flicks to the second page.

I've tried it in live & test, with & without verbose. The first page goes fine and makes the changes then the script seems to stop instead of processing any more posts.

Any ideas ?

Cheers,

Si

Hornstar
09-06-2008, 04:28 AM
2.5 is looking awesome from your description. I am looking forward to updating to that version later on :) Thanks again Geek.

The Geek
09-06-2008, 08:17 AM
Hiya,

I'm running the 2.5 version. After selecting to rebuild posts from the tools menu it runs through the first page, sits through the delay, redirects to the next page but nothing happens :confused:

The attachemt is all that is shown when it flicks to the second page.

I've tried it in live & test, with & without verbose. The first page goes fine and makes the changes then the script seems to stop instead of processing any more posts.

Any ideas ?

Cheers,

Si
Can you run it in a new window and then copy and paste the referring URL (including everything after admincp)?

roadrunna
09-06-2008, 04:16 PM
Here you go.

The main URL to the site and admin folder is ok (I use a different named folder so would prefer not to post it).

Here's everything after that

automediaembed_admin.php?do=dorebuild&timer=0+Seconds+remaining&cont=1&ignorepre vious=1&deleteame=0&perpage=100&seconds=20&length=2419200&test=1&verbose=0&start =1&in=

directprint
09-06-2008, 10:05 PM
I had the previous version installed, then decided to upgrade it, now pages if anyone hits post reply, my pages are blank, when I go to the ACP, all I see is most of the coding.

The Geek
09-07-2008, 04:08 AM
Thanks Road, that helps. Should be sorted for next 2.5 beta (which will be out in the next couple of days).

Directprint. Is this 2.0.2 or the 2.5 beta? Also can you check your apache error log?

aztecboi2003
09-07-2008, 04:23 AM
My Break and daily motion are not working. I have just the white boxes where they should be. I'm using 2.0.2

directprint
09-07-2008, 04:25 AM
Thanks Road, that helps. Should be sorted for next 2.5 beta (which will be out in the next couple of days).

Directprint. Is this 2.0.2 or the 2.5 beta? Also can you check your apache error log?
Was running the old version on 3.6 even after upgrade to 3.7.3, then decided it was time to upgrade to 2.0.2, didn't want to try the beta in case it broke things. I am running on a IIS server.
Tried the beta as well, it removed the code I am seeing in ACP, but when trying to rebuild everything the page just goes blank and doe's nothing.

The Geek
09-07-2008, 05:38 AM
My Break and daily motion are not working. I have just the white boxes where they should be. I'm using 2.0.2

If those are add-on definitions, give the author a shout. Since version 2, ame hasnt supported daily motion or break as those are supported by add on authors.

Was running the old version on 3.6 even after upgrade to 3.7.3, then decided it was time to upgrade to 2.0.2, didn't want to try the beta in case it broke things. I am running on a IIS server.
Tried the beta as well, it removed the code I am seeing in ACP, but when trying to rebuild everything the page just goes blank and doe's nothing.

Thanks for this. Sounds like the problem with the version 2 was that a php tag (Around line 80) was just <? but it should have been <?php as some installations are touchy about this.
The problem with the rebuild in the beta was reported yesterday and I am working on the solution which should be availible over the next couple of days (when I get back home)

Thanks!

directprint
09-07-2008, 06:47 AM
Thanks for this. Sounds like the problem with the version 2 was that a php tag (Around line 80) was just <? but it should have been <?php as some installations are touchy about this
I am looking for this error in the php file, which one is it?

directprint
09-07-2008, 06:52 AM
Found it, but still doesn't work for me, somethings not right somewhere. So I can't event get 2.0.2 to work.

The Geek
09-07-2008, 07:42 AM
in version 2.0.2 in admincp/automediaembed_admin.php on line 82, is this tag:

<?


Some server configurations require:

<?php


If that change isn't made and your server requires it, it will usually just spit out PHP code when you browse to the ame admin page. Making the change fixes it. This change was made in the current 2.5 beta, hence the reason you could use the ame admincp in 2.5. The only problem I am currently aware of in the current 2.5 beta is rebuilding only seems to work on the first page. As I said in a previous post, this should be rectified in the next couple days when I get home.

Anyhoo. Hope this helps!

directprint
09-07-2008, 07:54 AM
I made that change an uploaded the file, no longer showed the code, but it didn't rebuild posts. Also when I enable the product I get blank page when using post reply.

directprint
09-07-2008, 08:03 AM
This is the error from rebuild posts via ACP.

Warning: require_once([path]/includes/ame_bbcode.php) [function.require-once]: failed to open stream: Permission denied in [path]\admincp\automediaembed_admin.php on line 725

Fatal error: require_once() [function.require]: Failed opening required 'C:\Domains\website.com.au\wwwroot\forum/includes/ame_bbcode.php' (include_path='.;C:\php5\pear') in C:\Domains\website.com.au\wwwroot\forum\admincp\au tomediaembed_admin.php on line 725

This is the error if I post reply in a thead...

Warning: require_once([path]/includes/ame_bbcode.php) [function.require-once]: failed to open stream: Permission denied in [path]\newreply.php(742) : eval()'d code on line 1

Fatal error: require_once() [function.require]: Failed opening required 'C:\Domains\website.com.au\wwwroot\forum/includes/ame_bbcode.php' (include_path='.;C:\php5\pear') in C:\Domains\website.com.au\wwwroot\forum\newreply.p hp(742) : eval()'d code on line 1

The Geek
09-07-2008, 08:26 AM
Check permissions on includes/ame_bbcode.php as the php process doesnt appear to have rights to run that file.

directprint
09-07-2008, 08:33 AM
Check permissions on includes/ame_bbcode.php as the php process doesnt appear to have rights to run that file.
Great, thank you so much for your help, that was what it was, no idea how the permissions would go up to the server like that. :up:

Subah
09-07-2008, 10:05 AM
Is there any change on 2.0.2 since last update ? i have it on my forum and i login and found the mod is updated when i look on the mod i found the new beta 2.5 so i think do not need to update the 2.0.2 right ?

testebr
09-07-2008, 02:08 PM
it's possible add support to preview post in full editor?

komirad
09-07-2008, 04:16 PM
is it possible to embed the video only when within a custom bbcode?
ie. <youtube-url>

Because sometimes embedding is disabled on youtube making the youtube video "Not available" and showing a blank screen when embedded.

Digital Jedi
09-07-2008, 05:19 PM
is it possible to embed the video only when within a custom bbcode?
ie. <youtube-url>

Because sometimes embedding is disabled on youtube making the youtube video "Not available" and showing a blank screen when embedded.
That will not make the video show up, as that's still embedding. When YouTube says embedding is disabled, that means there's no way around it.

NeverBored
09-07-2008, 06:25 PM
is it possible to embed the video only when within a custom bbcode?
ie. <youtube-url>

Because sometimes embedding is disabled on youtube making the youtube video "Not available" and showing a blank screen when embedded.
For that use, just uncheck the embed option when posting. Or am I not understanding what you mean? So you will end up with the link, rather than the video that will not play.

Locutus 2.0
09-07-2008, 07:57 PM
This will be great for my board

komirad
09-08-2008, 02:55 AM
That will not make the video show up, as that's still embedding. When YouTube says embedding is disabled, that means there's no way around it.

Yea, that's why I don't want all the links to convert to embeds, instead give users a choice.

For that use, just uncheck the embed option when posting. Or am I not understanding what you mean? So you will end up with the link, rather than the video that will not play.

Unchecking would mean that the whole post will not be embedded.
If we can do a http://youtube.com/v/xxxxxxxx kinda thing that would convert the url to link, it would be good.

It would mean that users can embed those vids that are not disabled and post links to those which are in a single post. I currently do this with youtube tags, but users would have to extract the Video ID from the url to put in between the tags.. which is a hassle and a problem to users not familiar to the url structures/query strings.

With some simple programming we should be able to extract the ID even if the url varies like below:
http://youtube.com/watch?v=xxxxxxxx
http://youtube.com/watch?v=xxxxxxxx&feature=related
http://youtube.com/watch?v=xxxxxxxx&eurl=somesite.com/yyy

The Geek
09-08-2008, 11:30 AM
is it possible to embed the video only when within a custom bbcode?
ie. <youtube-url>

Because sometimes embedding is disabled on youtube making the youtube video "Not available" and showing a blank screen when embedded.

The point of AME is to automatically embed matching URLs. As mentioned, If you don't want the video to show in a post, just tick the 'Do not automatically embed media' option.

Yea, that's why I don't want all the links to convert to embeds, instead give users a choice.

Unchecking would mean that the whole post will not be embedded.
If we can do a http://youtube.com/v/xxxxxxxx kinda thing that would convert the url to link, it would be good.

Ok. I see what you mean here. You want an 'exempt' code. Not too sure about that. You can put it in a code, php or HTML block to accomplish that... but I am not sold on creating another code block just to intermix normal links and embedded links :(

It would mean that users can embed those vids that are not disabled and post links to those which are in a single post. I currently do this with youtube tags, but users would have to extract the Video ID from the url to put in between the tags.. which is a hassle and a problem to users not familiar to the url structures/query strings.

With some simple programming we should be able to extract the ID even if the url varies like below:
http://youtube.com/watch?v=xxxxxxxx
http://youtube.com/watch?v=xxxxxxxx&feature=related
http://youtube.com/watch?v=xxxxxxxx&eurl=somesite.com/yyy

Ame does this but can't tell you from the URL if embedding is supported or not. Possibly by using the extract destination option (i.e. a regexp that determines if the page has 'embedding dissallowed' on (or whatever). But that is something I wouldnt support natively as it can be done via a new definition.


HTHs

The Geek
09-08-2008, 11:31 AM
it's possible add support to preview post in full editor?
hmmm... I thought it was... will have to double check. In theory it should.

The Geek
09-08-2008, 11:32 AM
Is there any change on 2.0.2 since last update ? i have it on my forum and i login and found the mod is updated when i look on the mod i found the new beta 2.5 so i think do not need to update the 2.0.2 right ?
The updated flag must have happened when I uploaded 2.5, 2.0.2 is the same file :)

akulion
09-08-2008, 02:37 PM
beta working A-OK for me
thanks for creating this mod!

TsirhCitna
09-08-2008, 02:55 PM
How would I set this up to work by embedding videos from this mod:
https://vborg.vbsupport.ru/showthread.php?t=166094

The Geek
09-08-2008, 03:40 PM
I'm pretty sure that DJ's AME Definitions have support for local hosted media files. If it isnt specific for the links and download manager, I am sure with a little tweaking they would be :)

Locutus 2.0
09-09-2008, 12:23 AM
I'm a total noob at this... When I turn AME on in the CP, I get the following message when I try to start a new thread, edit a post or create a new post... help?

Warning: require_once([path]/includes/ame_bbcode.php) [function.require-once]: failed to open stream: No such file or directory in [path]/includes/functions_newpost.php(585) : eval()'d code on line 3

Fatal error: require_once() [function.require]: Failed opening required '/home/tanshles/public_html/forums/includes/ame_bbcode.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/tanshles/public_html/forums/includes/functions_newpost.php(585) : eval()'d code on line 3

directprint
09-09-2008, 12:37 AM
I'm a total noob at this... When I turn AME on in the CP, I get the following message when I try to start a new thread, edit a post or create a new post... help?

It's a permissions problem.

Same problem I had https://vborg.vbsupport.ru/showpost.php?p=1616428&postcount=149

All fixed after doing this https://vborg.vbsupport.ru/showpost.php?p=1616428&postcount=150

Locutus 2.0
09-09-2008, 12:56 AM
how do I get to the permissions page?

directprint
09-09-2008, 01:24 AM
how do I get to that permissions page?
You need to do this via ftp, change the permissions of the file to 644.

akulion
09-09-2008, 01:28 AM
youtube videos no longer get shown..instead it just says "this video is not available" however when u check on youtube , the video is there but wont get played through the mod!

help!

Eneswar
09-09-2008, 01:36 AM
Same as above.

This is not working for me... I was using the old version on my 3.7x and it was working perfectly... I then upgraded to this by over writing as the op said, now its not working at all, the links wont convert... Whats the problem, what do i do wrong.

Locutus 2.0
09-09-2008, 02:04 AM
My problem is that I don't have direct or indirect access to the ftp ... is there a way around this I can fix my problem? I really want something like AME ... I could make do with passive video lite... but that gives me the same problems...

The Geek
09-09-2008, 06:19 AM
Guys...

Loctus, your files were not uploaded to the correct location.

Eneswar & akulian- I will lay money on the fact that those videos have embedding sidabled by the video poster. Check the youtube page. If the 'author' doesnt want it posted, youtube wont let it playoutsideof youtube

Eneswar
09-09-2008, 10:42 AM
No that wasnt the problem i had yesterday... Anyhow i went to sleep, woke up, tried again, and it just suddenly worked.... very wierd.. :S

iogames
09-09-2008, 04:44 PM
tested on 3.6.11???

PossumX
09-09-2008, 08:11 PM
GREAT MOD.

Whenever I post a Vimeo video, I get the following Flash error:

SecurityError: Error #2060: Security sandbox violation: ExternalInterface caller http://bitcast.vimeo.com/vimeo/swf/moogaloop.swf?clip%5Fid=1183299&server=vimeo%2Ecom&fullscreen=1&video%5Finfo=1 cannot access http://www.nbssportfishing.com/vBforum/f17/riptide-charters-hd-canyon-video-8007/.
at flash.external::ExternalInterface$/_initJS()
at flash.external::ExternalInterface$/addCallback()
at com.as3.moogaloop4::Moogaloop/initAPI()
at com.as3.moogaloop4::Moogaloop/initPlayer()
at com.as3.moogaloop4::Moogaloop/loadAssetsComplete()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.as3.classes.loader::MassLoader/onComplete()
at com.as3.classes.loader::MassLoader/onFileComplete()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.as3.classes.loader.items::ImageItem/onComplete()

I just hit continue, and it plays as normal, but on first resolve it pops. Any idea why?

The other thing I noticed is that if I hit preview first, the video doesn't parse out completely, only the parsed URL is displayed. If I submit the post without preview, it works fine.

NeverBored
09-10-2008, 01:03 AM
No that wasnt the problem i had yesterday... Anyhow i went to sleep, woke up, tried again, and it just suddenly worked.... very wierd.. :S
Youtube was doing maintenance last night, and all embeds were shut off.

jamesww
09-10-2008, 09:12 PM
I was wondering if this hack works with the 3.7 version after adding the security updates? I am very green and still wet behind the ears. I would like to have the ability to embed audio as well as video in blogs and threads. I would appreciate suggestions on the best ways to go about this.

Thank you

James

directprint
09-10-2008, 09:23 PM
I was wondering if this hack works with the 3.7 version after adding the security updates? I am very green and still wet behind the ears. I would like to have the ability to embed audio as well as video in blogs and threads. I would appreciate suggestions on the best ways to go about this.

Thank you

James
I have it running using 3.7.3 PL1. which is the latest without a problem

Lizard King
09-10-2008, 10:28 PM
Sam ,

In product file the following line should be changed as follow
Find :
$js = '<script type=\"text/javascript\" src=\"clientscript/ame.js\" /></script>';
Replace
$js = '<script type=\"text/javascript\" src=\"clientscript/ame.js\"></script>';

directprint
09-10-2008, 10:38 PM
Who is Sam?

The reason I ask, is that I am still hoping someone can solve my problem https://vborg.vbsupport.ru/showpost.php?p=1617851&postcount=168

Lizard King
09-11-2008, 12:11 AM
What is the problem you have in that post ?

directprint
09-11-2008, 12:29 AM
Nothing wrong with the post, just wanted to know who Sam was, as you are suggesting a change and I couldn't see who Sam was that you were replying to.

The Geek
09-11-2008, 02:46 PM
Thanks Lizard.

@io - havent tested it, but technically it SHOULD work :)

@directprrint - I'm Sam. Think my mom called me Geek?!? :D

Not sure what the problem is by glancing at that post. Maybe Ive missed something. FWIW, the next beta has been delayed as I am adding a new feature to be able to test for disallowed embedding (i.e. a youtube video that doesnt allow other websites to embed it).

SnapOff Racing
09-11-2008, 11:56 PM
I installed it and the videos show up properly for 3 seconds then disappear and a link pops up. What gives? everything's enabled in ACP.

Cars2007
09-11-2008, 11:57 PM
I am not sure if this is a bug or not. We are having an issue with the exempt groups. If a user is part of only one group and that group is not on the exempt list, it works just fine. However, if we add a group that is on the exempt list, despite the fact that they belong to a group already that should be allowed to use this feature, it does not work for them.

Is there any way around this? Is there any way to specify "If this user belongs to ANY group that is not on the exempt list, let them use this feature."??

kingmotox
09-12-2008, 12:10 AM
I have this installed and turned on and when i place a youtube link in a post it still shows the link so its not working i have vb 3.7.3 p1

www.dezertrangers.com/vb

SnapOff Racing
09-12-2008, 01:57 AM
I have this installed and turned on and when i place a youtube link in a post it still shows the link so its not working i have vb 3.7.3 p1

www.dezertrangers.com/vbsame here!

EvilJohn
09-12-2008, 03:31 AM
Thank you! Installed and works great. Look forward to profile support. Maybe even VbAdvanced support in the future?

The Geek
09-12-2008, 06:21 AM
@king & Race - Check the usergroup permissions. Sounds like you are using 2.5 and you dont have permission to view (check the read me formore info on this)

@Cars - 2.5 is FARRRR better with usergroup permission support and takes care of this for you.

Peeps... pleasepleaseplease.... I need to know the version you are using and a link to either the page that isnt giving the results you need OR an example ofthe embedded URL that isnt working,

Jaxel
09-12-2008, 06:25 AM
How do I post a link WITHOUT having it parsed for AME?

The Geek
09-12-2008, 07:48 AM
Untick the options to automatically embed media for that post (doent appear as an option in the quick editor)

KevinL
09-12-2008, 09:50 AM
this really is great!

Thank you!

Magz
09-12-2008, 10:29 AM
Ive readded AME, in replacement of goldbrick. But am still having a problem ( my understanding ) of converting the old [Media] Tags.

This is what is currently in the codes section:

youtubevid, metacafe, ifilm, putfile, googlevid, myspacevid

And this is what is in the convert section:

http://www.youtube.com/watch?v=\1 (http://www.youtube.com/watch?v=%5C1), http://www.metacafe.com/watch/\1 (http://www.metacafe.com/watch/%5C1), http://www.ifilm.com/video/\1 (http://www.ifilm.com/video/%5C1), http://www.putfile\.com/\1 (http://www.putfile%5C.com/%5C1), http://www.google.com/videoplay\?docid=\1 (http://www.google.com/videoplay%5C?docid=%5C1), http://www.myspace.com/index.cfm?fuseaction=vids.individual&videoid=\1 (http://www.myspace.com/index.cfm?fuseaction=vids.individual&videoid=%5C1)

When i try and run the conversion, using test mode, i get

The following error(s) occured while preparing your conversion. Note that no data was changed
You are missing the \1 parameter in at least one of your conversions
You are missing the \1 parameter in at least one of your conversions
You are missing the \1 parameter in at least one of your conversions
You are missing the \1 parameter in at least one of your conversions
You are missing the \1 parameter in at least one of your conversions
You are missing the \1 parameter in at least one of your conversionsSo far, i havent added anything, so where am i going wrong here, and what specific code do i add to include the [media] conversion. Nearly all vids on my site have come from youtube.

Thanks

Im using ame 2.0.2

Sym0n
09-12-2008, 12:14 PM
I've just installed this on my test forum and have had a few problems.

YouTube videos will embed nicely, but won't play. Thought this might be a problem with YouTube so checked on my live site and the old version of PassiveVid running on there is playing them without a problem or any loading delay. :erm:

I imported the master.xml file and it only imported 20 definitions. Do I have to manually import all of the other defs so they embed? Is there a real master def file that allows for importation of all the defs found in the DJ's AME.zip file?

I deleted all the defs shown and imported just the imeem (music) one but when I posted a link for a single from imeem it only showed the link, no player.

Ta

Sy

Cars2007
09-12-2008, 03:23 PM
@Cars - 2.5 is FARRRR better with usergroup permission support and takes care of this for you

Fantastic. Thanks. I was using 2.0.2 because the other download said it was a beta. I will try that one then.

Cars2007
09-12-2008, 05:46 PM
Ok, I upgraded to the 2.5 Beta. However, when I go to Admin CP > Usergroups > Usergroup Manager > Registered > AME Create and Modify Permissions and select "No" for all of the options in that area, Registered members can still post videos, even though they belong to no groups that have access to post videos.

Am I missing a setting?

akulion
09-12-2008, 07:37 PM
man im going bonkers!! cos...

the mod was working A-ok, then suddenly youtube videos stopped working yet google videos were working fine....

Then the next day youtube videos start working by themselves and now googlevideos wont load!!

whats goin on?!!

aku

kingmotox
09-12-2008, 10:29 PM
@king & Race - Check the usergroup permissions. Sounds like you are using 2.5 and you dont have permission to view (check the read me formore info on this)

@Cars - 2.5 is FARRRR better with usergroup permission support and takes care of this for you.

Peeps... pleasepleaseplease.... I need to know the version you are using and a link to either the page that isnt giving the results you need OR an example ofthe embedded URL that isnt working,

i didnt see anything in the readme about usergroup permissions?

The Geek
09-13-2008, 11:51 AM
Ive readded AME, in replacement of goldbrick. But am still having a problem ( my understanding ) of converting the old [Media] Tags.

Cant duplicate this?

The Geek
09-13-2008, 11:52 AM
I've just installed this on my test forum and have had a few problems.

YouTube videos will embed nicely, but won't play. Thought this might be a problem with YouTube so checked on my live site and the old version of PassiveVid running on there is playing them without a problem or any loading delay. :erm:

I imported the master.xml file and it only imported 20 definitions. Do I have to manually import all of the other defs so they embed? Is there a real master def file that allows for importation of all the defs found in the DJ's AME.zip file?

I deleted all the defs shown and imported just the imeem (music) one but when I posted a link for a single from imeem it only showed the link, no player.

Ta

Sy

For add on definitions, youll need to ask in DJ's thread. Not sure why the youtube ones wont play as that makes no sense. Make sure you dont have another hack that would interfere with this one installed :)

The Geek
09-13-2008, 12:00 PM
Ok, I upgraded to the 2.5 Beta. However, when I go to Admin CP > Usergroups > Usergroup Manager > Registered > AME Create and Modify Permissions and select "No" for all of the options in that area, Registered members can still post videos, even though they belong to no groups that have access to post videos.

Am I missing a setting?


Ok. This looks like a bug. To fix this until next release, do this:

in include/ame_bbcode.php find:


if ($vbulletin->userinfo['permissions']['automediaembed_edit_permissions'] & $vbulletin->bf_ugp['automediaembed_edit_permissions']["can_$zone"])
{

return true;

}


and change to:


if (!($vbulletin->userinfo['permissions']['automediaembed_edit_permissions'] & $vbulletin->bf_ugp['automediaembed_edit_permissions']["can_$zone"]))
{

return false;

}

The Geek
09-13-2008, 12:00 PM
man im going bonkers!! cos...

the mod was working A-ok, then suddenly youtube videos stopped working yet google videos were working fine....

Then the next day youtube videos start working by themselves and now googlevideos wont load!!

whats goin on?!!

aku
More than likely a provider error (i.e. youtube was down and then google)

The Geek
09-13-2008, 12:02 PM
i didnt see anything in the readme about usergroup permissions?
Limitations with usergroup viewing permissions
----------------------------------------------
The new system uses javascript to attempt to 'hide' the embedded media and 'show' a default URL. If the user doesnt have javascript enabled or places an embedded video in their post, it will appear to them until they refresh the page. Of course, if the person doesnt have permission to view, I doubt they would have permission to embed anyway!

Magz
09-13-2008, 12:14 PM
Cant duplicate this?

Sorry, Can you explain a little more. Are you saying you cant Duplicate this, or can I?

Each time i try to convert tags, i get "You are missing the \1 parameter in at least one of your conversions". Yet i havent edited anything in either Codes, or conversions box.

I just want to get rid of old [media] tags :)

The Geek
09-13-2008, 12:46 PM
I copied what you had exactly but it works for me? Make sure there are no trailing spaces maybe?

Magz
09-13-2008, 12:58 PM
Ive just double checked, and can see no trailling spaces anywhere. I also even copied what what i pasted earlier, and still same. Any other ideas?

The Geek
09-13-2008, 02:39 PM
AME 2.5 Beta 3 has now been uploaded into the first post.

This beta addresses some bugs found in the previous beta, completes more of the admincp help (though there are still a few more admincp help items to do) and adds a couple of new features:

nomedia tag

I have implemented the ability to wrap a URL in a [nomedia] tag. Matching URLs found within these tags will not embed, but rather link with an icon to indicate that it is an offsite media link.

Embedding validation

This will help prevent AME from embedding videos that can not be shown offsite. A good example is a music video on youtube where there is no embed code displayed because the author has stipulated that the video can only be shown on youtube. Curently, the video will embed, however when you play it, you get a message saying the video is invalid (or similar).

The new validation feature will check for the embed code on the destination page. If it isn't found, AME won't embed the video. Instead, AME will wrap the URL in a [nomedia] tag (see above) which shows a link and icon to indicate that you must go offsite to view it.

For this feature to work, the extract destination data setting must be on (and working). Furthermore, the definition must have a valid validation regexp. I have updated the default youtube definition to get you started :)

Please be aware that 2.5 is still beta so treat it as such!

The Geek
09-13-2008, 02:42 PM
Sorry, Can you explain a little more. Are you saying you cant Duplicate this, or can I?

Each time i try to convert tags, i get "You are missing the \1 parameter in at least one of your conversions". Yet i havent edited anything in either Codes, or conversions box.

I just want to get rid of old [media] tags :)
Sorry, I don't. I copied and pasted your entries from above and it seems to work fine (though in fairness I was trying it in the latest beta - though that shouldnt make a difference). Feel free to PM me admincp details and I will take a look when I have a minute.

akulion
09-13-2008, 02:55 PM
about to install the beta 3 soon

just downloaded it

ok i installed it,

the nomedia tag seems to work but it dislays the url with the URL tag on each end (opening and closing tags) so i think people who use this will want that not to display..

apart from that working oki doki

furst
09-13-2008, 02:59 PM
The new validation feature will check for the embed code on the destination page. If it isn't found, AME won't embed the video. Instead, AME will wrap the URL in a [nomedia] tag (see above) which shows a link and icon to indicate that you must go offsite to view it.

Great improvement.

TsirhCitna
09-13-2008, 05:09 PM
There seems to be an issue where some YouTube videos are saying they are no longer available, but they actually are.

Example: http://www.youtube.com/watch?v=0TtPdnu3BOo

When I embedded that video here: http://www.tenstones.net/forums/general_chat/74-whatchu_listnin_too_bizkit_sucks-14.html#post413542

LCN2007
09-13-2008, 05:10 PM
can someone tell me how to fix the double post?

http://www.localcobalt.net/forum/lcn-lounge/1549-tc-toasted-car.html

Great product by the way.

kingmotox
09-13-2008, 10:15 PM
Limitations with usergroup viewing permissions
----------------------------------------------
The new system uses javascript to attempt to 'hide' the embedded media and 'show' a default URL. If the user doesnt have javascript enabled or places an embedded video in their post, it will appear to them until they refresh the page. Of course, if the person doesnt have permission to view, I doubt they would have permission to embed anyway!

i tried to find where to turn those of and on in the vb control panel where is it?

Thanks

Never mind its working now. I didn't change anything and it works.

Digital Jedi
09-14-2008, 12:41 AM
There seems to be an issue where some YouTube videos are saying they are no longer available, but they actually are.

Example: http://www.youtube.com/watch?v=0TtPdnu3BOo

When I embedded that video here: http://www.tenstones.net/forums/general_chat/74-whatchu_listnin_too_bizkit_sucks-14.html#post413542
There's no video in the thread you posted. YouTube shuts off embeds sometimes due to maintance.


can someone tell me how to fix the double post?

http://www.localcobalt.net/forum/lcn-lounge/1549-tc-toasted-car.html

Great product by the way.
You have two YouTube definitions. You'll need to delete one.

LCN2007
09-14-2008, 03:10 AM
There's no video in the thread you posted. YouTube shuts off embeds sometimes due to maintance.



You have two YouTube definitions. You'll need to delete one.

Thanks thats what i thought i just had to slow down reading.

mallettservices
09-14-2008, 04:19 AM
I installed the AME 2.0.2. I installed the files in the folders in the respective folder in vBulletin 3.7.3 PL1. With the all the Plugin & Products System active for AME 2.0 -Auto Media, this is what I get when trying to send a quick Reply or full post.....


Warning: require_once([path]/includes/ame_bbcode.php) [function.require-once]: failed to open stream: No such file or directory in [path]/newreply.php(742) : eval()'d code on line 1

Fatal error: require_once() [function.require]: Failed opening required '/home1/ytwokota/public_html/dfwdakotas/forum/includes/ame_bbcode.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home1/ytwokota/public_html/dfwdakotas/forum/newreply.php(742) : eval()'d code on line 1

Where did I go worng :mad:

Thanks.

The Geek
09-14-2008, 07:13 AM
I installed the AME 2.0.2. I installed the files in the folders in the respective folder in vBulletin 3.7.3 PL1. With the all the Plugin & Products System active for AME 2.0 -Auto Media, this is what I get when trying to send a quick Reply or full post.....




Where did I go worng :mad:

Thanks.
Either the files in the forums folder were not all uploaded to the correct locations or they were uploaded with insufficient privileges for the files to be run

HTHs

The Geek
09-14-2008, 07:15 AM
There seems to be an issue where some YouTube videos are saying they are no longer available, but they actually are.

Example: http://www.youtube.com/watch?v=0TtPdnu3BOo

When I embedded that video here: http://www.tenstones.net/forums/general_chat/74-whatchu_listnin_too_bizkit_sucks-14.html#post413542
Just to add to what DJ was saying, this isn't to do with the product, this is to do with publishers of the video disabling offsite embedding. If you read 2 posts before yours, you will see a new feature in 2.5 that helps to mitigate this.

basilrath
09-14-2008, 01:53 PM
Strange i cant get this to show anything but the url of a tube.......all settings are active?

any thoughts

PossumX
09-14-2008, 10:36 PM
GREAT MOD.

Whenever I post a Vimeo video, I get the following Flash error:

SecurityError: Error #2060: Security sandbox violation: ExternalInterface caller http://bitcast.vimeo.com/vimeo/swf/moogaloop.swf?clip%5Fid=1183299&server=vimeo%2Ecom&fullscreen=1&video%5Finfo=1 cannot access http://www.nbssportfishing.com/vBforum/f17/riptide-charters-hd-canyon-video-8007/.
at flash.external::ExternalInterface$/_initJS()
at flash.external::ExternalInterface$/addCallback()
at com.as3.moogaloop4::Moogaloop/initAPI()
at com.as3.moogaloop4::Moogaloop/initPlayer()
at com.as3.moogaloop4::Moogaloop/loadAssetsComplete()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.as3.classes.loader::MassLoader/onComplete()
at com.as3.classes.loader::MassLoader/onFileComplete()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.as3.classes.loader.items::ImageItem/onComplete()

I just hit continue, and it plays as normal, but on first resolve it pops. Any idea why?

The other thing I noticed is that if I hit preview first, the video doesn't parse out completely, only the parsed URL is displayed. If I submit the post without preview, it works fine.

Any ideas on this? Running 2.5 Beta 2 (upgrading to Beta 3 now)

mykkal
09-14-2008, 11:08 PM
Does 2.5 work with 3.6.8?

inciarco
09-14-2008, 11:36 PM
Beta 3 has a Problem (Bug).

When Posting a Message, and Choosing not to Auto-Embed Media, the Mod Auto-Embeds the Media No Matter What Against User's Will. :confused:

I've made the same Exercise Using 2.1.5 Beta 3 and 2.0.2 (the one I'm currently Using), and Beta 3 has that Bug and 2.0.2 Does the Job OK.

For Now I'll Stay with 2.0.2, but I liked a lot the New Improvements on Beta 3, so I'll wait for this Bug to be Corrected to Try it Again on my Test Forum.

My Best Regards.

:)

karlm
09-15-2008, 04:10 AM
Not sure whether this has been addressed or not, or maybe it will be in 2.5, but upon 'preview post/thread' - the link is not converted, and if an edit is made to the thread - the conversion is destroyed, leaving only a link to the url of the page instead of the conversion into a playable file.

The Geek
09-15-2008, 08:05 AM
Any ideas on this? Running 2.5 Beta 2 (upgrading to Beta 3 now)

That looks like an error from the embedded HTML. Since it isnt a default definition, you may need to ask the author of it. :(

Does 2.5 work with 3.6.8?

Hasnt been tested, but theoretically it should.

Beta 3 has a Problem (Bug).

When Posting a Message, and Choosing not to Auto-Embed Media, the Mod Auto-Embeds the Media No Matter What Against User's Will. :confused:

I've made the same Exercise Using 2.1.5 Beta 3 and 2.0.2 (the one I'm currently Using), and Beta 3 has that Bug and 2.0.2 Does the Job OK.

For Now I'll Stay with 2.0.2, but I liked a lot the New Improvements on Beta 3, so I'll wait for this Bug to be Corrected to Try it Again on my Test Forum.

My Best Regards.

:)

Yup, just confirmed this. I think I know the problem so should have a fix shortly.

Not sure whether this has been addressed or not, or maybe it will be in 2.5, but upon 'preview post/thread' - the link is not converted, and if an edit is made to the thread - the conversion is destroyed, leaving only a link to the url of the page instead of the conversion into a playable file.

Huh, I cant reproduce this. Editing works as intended (i.e. works fine) at my end and it even embeds in the preview as intended? Can you help by providing some examples?

Digital Jedi
09-15-2008, 02:43 PM
Any ideas on this? Running 2.5 Beta 2 (upgrading to Beta 3 now)
Post the link to the Vimeo video causing that in my thread. I'm not getting any errors when I tested a few.

Cars2007
09-15-2008, 08:19 PM
Ok. This looks like a bug. To fix this until next release, do this:

in include/ame_bbcode.php find:


if ($vbulletin->userinfo['permissions']['automediaembed_edit_permissions'] & $vbulletin->bf_ugp['automediaembed_edit_permissions']["can_$zone"])
{

return true;

}


and change to:


if (!($vbulletin->userinfo['permissions']['automediaembed_edit_permissions'] & $vbulletin->bf_ugp['automediaembed_edit_permissions']["can_$zone"]))
{

return false;

}


Fantastic! That worked! Thank you!!

testebr
09-15-2008, 08:51 PM
version 2.5 beta 3

tool rebuild posts

error "Invalid Zone Specified" in next page.

Can you confirm this possible bug?

Thanks

karlm
09-18-2008, 06:02 AM
Huh, I cant reproduce this. Editing works as intended (i.e. works fine) at my end and it even embeds in the preview as intended? Can you help by providing some examples?
How odd.. it happens every time without fail on mine.

If you like I can supply you a log in for my forum and you can witness it for yourself. It could be one of the other plugin's I am using, maybe causing some issue?

The Geek
09-18-2008, 09:00 AM
That would be great.

@all - Next 2.5 beta should be out this weekend and should take care of all outstanding issues. After that, the gold version will most likely follow as phrasing and most of the 'stuff I do during RC' has really been done.

Mosh
09-18-2008, 10:27 AM
@all - Next 2.5 beta should be out this weekend and should take care of all outstanding issues. After that, the gold version will most likely follow as phrasing and most of the 'stuff I do during RC' has really been done.

Looking forward to it Sam :)

Digital Jedi
09-18-2008, 02:50 PM
And I should have the updated Master XML of definitions available shortly after it's release. :D

Baldilocks
09-18-2008, 04:28 PM
Any reason this should be trying to change Wikipedia links? Every time I or a user posts a Wikipedia link we get a "Wikimedia Error" in the post instead of just a regular link.

DoB Rhapsody
09-18-2008, 07:29 PM
Several videos are not working on my site. I'm running 2.0 right now. Some will not display at all and some will display but with an error like "video not found", or it will be the wrong video. I have extract destination data installed.

My best guess is that something happened when i switched servers a while back. I'm wondering if any certain features needed to be enabled by the host in order for this modification to work properly?

Keep in mind that some embeds do work, like youtube and collegehumor. Any help would be much appreciated.

testebr
09-18-2008, 07:49 PM
version 2.5 beta 3

tool rebuild posts

error "Invalid Zone Specified" in next page.

Can you confirm this possible bug?

Thanks

Sorry insist, but I am with this problem and I would like someone try it and report the result.

Thank you.

Digital Jedi
09-18-2008, 08:04 PM
Several videos are not working on my site. I'm running 2.0 right now. Some will not display at all and some will display but with an error like "video not found", or it will be the wrong video. I have extract destination data installed.

My best guess is that something happened when i switched servers a while back. I'm wondering if any certain features needed to be enabled by the host in order for this modification to work properly?

Keep in mind that some embeds do work, like youtube and collegehumor. Any help would be much appreciated.
Could you specify which and post links to some examples in my definitions thread so I can address them on the next update?

The Geek
09-18-2008, 08:28 PM
Sorry insist, but I am with this problem and I would like someone try it and report the result.

Thank you.
Its getting looked into over the weekend with a new release

The Geek
09-18-2008, 08:29 PM
Several videos are not working on my site. I'm running 2.0 right now. Some will not display at all and some will display but with an error like "video not found", or it will be the wrong video. I have extract destination data installed.

My best guess is that something happened when i switched servers a while back. I'm wondering if any certain features needed to be enabled by the host in order for this modification to work properly?

Keep in mind that some embeds do work, like youtube and collegehumor. Any help would be much appreciated.
Most likely that the videos have embedding disabled. Follow the link and see if there is embed code on the page. 2.5 introduces a way to help prevent this.

DoB Rhapsody
09-18-2008, 09:56 PM
Could you specify which and post links to some examples in my definitions thread so I can address them on the next update?
Actually, i think i've done that already. You told me to look back at the earlier version of AME ro see if an issue like this occurred. I didn't have any luck with that.

http://lockoutgaming.net/lockoutgaming-net/22833-testing-ame.html

Digital Jedi
09-18-2008, 11:45 PM
Actually, i think i've done that already. You told me to look back at the earlier version of AME ro see if an issue like this occurred. I didn't have any luck with that.

http://lockoutgaming.net/lockoutgaming-net/22833-testing-ame.html
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?

megatop78
09-19-2008, 05:21 AM
hi, i am a noob and not so experienced, i need your help. i installed this without any errors. checked whether the system is turned on. Everything looks fine. But when i post any video link it just comes up as a link and not as embedded video. Can you help me out please.

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 http://www.youtube.com/watch?v=kkZdkHylJ3w 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
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
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 http://www.youtube.com/watch?v=kkZdkHylJ3w 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/j149/Baldilocks73/wiki.jpg

nMIK-3
09-19-2008, 06:29 PM
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
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.