vb.org Archive

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

Digital Jedi 12-18-2008 05:20 AM

Quote:

Originally Posted by Finster (Post 1687547)
DJ, nice forum you have. Ligthboxing seems to be a popular thing these days. Whether one types in a url to a video or image, Goldbrick usually rendered the photo or video as a thumbnail, then upon clicking git, it opened it up full size with the lightbox effect from the Highslide folks.

The problem with Golbrick is it is poorly supported and buggy. I can't blame him, it IS free, but I would rather pay and get support and updates than get something free.

Most Golbricked videos also show a thumbnail image taken from the video which tends to make people want to click on it and view it, but half the time it just shows a lame blue M.

I don't know what would happen to the existing video links if one switched from Goldbrick to AME....

I've been meaning to try installing Goldbrick and PassiveVid on my demo board, posting a few videos and then unintalling and installing AME just to see if there's some kind of conversion process we can take advantage of. As far as I know, unless Goldbrick has something that will let you convert media tags, they'd just be regular URL tags.

Finster 12-18-2008 05:25 AM

Goldbrick is supposed to sense whether the url is to an image or to a video at a designated file sharing site. Either way, it is supposed to add opening an closing media tags, but sometimes it just auto-adds url tags. It is buggy that way as one has to go back and edit a post to edit in media tags. That is lame.

I am a little confused, (not hard to do) what is the diff between your DJ AME and the Geek's?

Digital Jedi 12-18-2008 05:32 AM

Quote:

Originally Posted by Finster (Post 1687789)
Goldbrick is supposed to sense whether the url is to an image or to a video at a designated file sharing site. Either way, it is supposed to add opening an closing media tags, but sometimes it just auto-adds url tags. It is buggy that way as one has to go back and edit a post to edit in media tags. That is lame.

I am a little confused, (not hard to do) what is the diff between your DJ AME and the Geek's?

My AME? Oh, you mean my thread add-on? That's just the extended definitions in one collected thread. The Geek only stocks the core product with a handful of definitions to keep it light. Then the rest of us can add sites periodically and I collect them in my thread. That's why there's so many supported sites, since anyone with a little RegEx knowledge can whip one up. I really on learned RegEx myself so I could support the additional XMLs.

If Goldbrick adds unique BBCode media tags, then that's perfect. AME has a rebuilding tool that lets you change any old BBCode tags to AME tags. Say for instance someone used to use [youtube] and [metacafe] tags and their all over their forum. They can have AME rebuild all the YouTube and MetaCafe tags to [AME] tags. AME itself doesn't usually use BBCode, but it comes with that stock code for situations like this. Plus you can test rebuild first just to make sure it's something you want to do.

sensimilla 12-18-2008 08:01 AM

Afetr uninstalling goldbrick all my links in post has [media] tags and AME dont rebuild it.
What can I do to fix it? Is it possible at all ? Thanks in advance

Code:

[media]http://www.youtube.com/watch?v=SHRYCTgzW3Q[/media]
-------- edited 10 minutes later --------

I am playing with the converter will see the results.

Nope didnt worked.

Digital Jedi 12-18-2008 01:09 PM

Quote:

Originally Posted by sensimilla (Post 1687831)
Afetr uninstalling goldbrick all my links in post has [media] tags and AME dont rebuild it.
What can I do to fix it? Is it possible at all ? Thanks in advance

Code:

[media]http://www.youtube.com/watch?v=SHRYCTgzW3Q[/media]
-------- edited 10 minutes later --------

I am playing with the converter will see the results.

Nope didnt worked.

Did you print it out in Test and Verbose Mode to see a more detailed evaluation of what's happening?

Digital Jedi 12-18-2008 01:36 PM

I'm sorry, I should have said Convert, not Rebuild.

ArnyVee 12-19-2008 02:06 PM

So, has anyone been able to get AME to work with a custom page? If so, how do we go about doing that?

Digital Jedi 12-19-2008 04:57 PM

Are you using Logicians WebTemplates or vBadvanced for the custom pages, Arny? If your using vBadvanced, it will do it automatically. At least I've confirmed that in 2.0.

kfiasche81 12-20-2008 06:13 AM

whit the new DJ's Master XML 2.xml

when i use the tools for posts i receive this error

Code:

Parse error: syntax error, unexpected '(' in /home/iltermitano/iltermitano.it/forum/includes/ame_bbcode.php(323) : regexp code on line 1

Fatal error: preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Failed evaluating code: ame_match(&quot;http://biascoch.blip.tv/file/652552/&quot;, &quot;&quot;, 1, &quot;~[\s]+player\.setPostsId\(([\d]+)\);[\s]+player\.setUsersId\([\d]+\);[\s]+player\.setUsersLogin\(&quot;([\w-_]+)&quot;\)~sim&quot;, &quot;&quot;,$ameinfo) in /home/iltermitano/iltermitano.it/forum/includes/ame_bbcode.php on line 323


bbcentral 12-20-2008 09:43 AM

Quote:

Originally Posted by Digital Jedi (Post 1686734)
It's there to demonstrate that this mod does more then convert media. It will take a grotesquly long link like this:

HTML Code:

http://www.amazon.com/gp/product/B0000013G3/ref=s9subs_c6_15_img1-rfc_g1_si1?pf_rd_m=ATVPDKIKX0DER&pf_rd_s=center-5&pf_rd_r=0EHN0PCM9M858EF4FAVT&pf_rd_t=101&pf_rd_p=463383431&pf_rd_i=507846
And convert it to this:

Attachment 90675 Amazon.com: Boomerang: Original Soundtrack Album...

And yes, it can be configured to include your Affiliate ID automatically. In my add-on thread we have a definition someone created that will convert them to this:

Attachment 90674 Attachment 90676 Attachment 90677

I've also done the same for a CafePress definition as well as a formatted download link for zSHARE links. The point is, this is capable of formatting far more then just media.

Brilliant answer, I'm going to bookmark this mod and try it out sometime! Thanks! :D

Digital Jedi 12-20-2008 03:24 PM

Quote:

Originally Posted by kfiasche81 (Post 1689389)
whit the new DJ's Master XML 2.xml

when i use the tools for posts i receive this error

Code:

Parse error: syntax error, unexpected '(' in /home/iltermitano/iltermitano.it/forum/includes/ame_bbcode.php(323) : regexp code on line 1
 
Fatal error: preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Failed evaluating code: ame_match(&quot;http://biascoch.blip.tv/file/652552/&quot;, &quot;&quot;, 1, &quot;~[\s]+player\.setPostsId\(([\d]+)\);[\s]+player\.setUsersId\([\d]+\);[\s]+player\.setUsersLogin\(&quot;([\w-_]+)&quot;\)~sim&quot;, &quot;&quot;,$ameinfo) in /home/iltermitano/iltermitano.it/forum/includes/ame_bbcode.php on line 323


You should probably discuss this in my thread then. But try going into your Blip definition and escaping the single quoutes in the Replamement HTML with a backslash, like this \'

momo2 12-21-2008 07:07 PM

I'm getting 2 screens in post, one large one small :(

Digital Jedi 12-21-2008 07:58 PM

Quote:

Originally Posted by momo2 (Post 1690553)
I'm getting 2 screens in post, one large one small :(

You have duplicate definitions. You probably imported a new set before deleting the old ones.

socalsoccer 12-22-2008 07:40 PM

Getting blank box when linking vids to Visitor messages and Social groups. In posts everything is fine.

Digital Jedi 12-23-2008 12:08 AM

Quote:

Originally Posted by socalsoccer (Post 1691407)
Getting blank box when linking vids to Visitor messages and Social groups. In posts everything is fine.

Set me up with an account at your site, socal, and link me to one of the videos (Guests can't view memberinfo). I don't know the answer to your NoSpam questions so I can't register to see what the problem might be, and I don't have my old account info anymore.

welovehiphop 12-26-2008 09:33 PM

why is this not working for me?

CEO TaYloR? 12-27-2008 04:10 AM

Is there any way I can get the video from my own hosting? I am doing a project for some restaurants and need to embed videos without using a video host. Thanks for any info!

Digital Jedi 12-27-2008 06:16 AM

Quote:

Originally Posted by welovehiphop (Post 1694378)
why is this not working for me?

What is not working exactly?


Quote:

Originally Posted by CEO TaYloR? (Post 1694584)
Is there any way I can get the video from my own hosting? I am doing a project for some restaurants and need to embed videos without using a video host. Thanks for any info!

Yes, just use the Local Hosted definitions in the Add-On links towards the bottom of the post.

Morrus 12-28-2008 02:23 PM

Quote:

Originally Posted by Digital Jedi (Post 1686734)



Which version are you using? Did you set the path to your AME cache folder as recommended in the Admin CP?

Which version of AME or vBulletin?

I'm using the latest AME, and vBulletin 3.8. I realsie this is a 3.7 mod, but I've got it to work on my two other 3.8 boards with no issues.

Yes, I set the path. :)

Digital Jedi 12-28-2008 10:45 PM

Quote:

Originally Posted by Morrus (Post 1695538)
Which version of AME or vBulletin?

I'm using the latest AME, and vBulletin 3.8. I realsie this is a 3.7 mod, but I've got it to work on my two other 3.8 boards with no issues.

Yes, I set the path. :)

I should have looked at the error message more closely, it looks like you might be missing a AME file. Have you tried re-uploading the files to make sure no files where dropped by you FTP client?

ebed146 12-29-2008 12:57 AM

Need help with making this mod work properly.

When I start a new thread with youtube link for example, the post only shows the link/url and will not properly show the video. However, when you use the tag [ame]..[/ame] ( I did not even know this tag existed, found through reading this thread) the video will show up properly.

Again here are some issues:

I have vb 3.7.4
I installed 2.5 RC 1
No errors after installation
When you post url of youtube for example, only shows URL
But when you use [ame] tag, it shows the video

Any help would be appreciated.

Dan

Digital Jedi 12-29-2008 03:13 AM

Have you tried just editing the post after creating your thread? I've noticed you sometimes don't get a conversion upon a new thread, but a quick edit of the post puts it in.

ebed146 12-29-2008 01:55 PM

Quote:

Originally Posted by Digital Jedi (Post 1696065)
Have you tried just editing the post after creating your thread? I've noticed you sometimes don't get a conversion upon a new thread, but a quick edit of the post puts it in.

Nope, editing does not work. The plugin will not convert the url.

Digital Jedi 12-29-2008 03:15 PM

Quote:

Originally Posted by ebed146 (Post 1696387)
Nope, editing does not work. The plugin will not convert the url.

Mind if you post an example to a thread where this is the problem?

58D 12-29-2008 05:44 PM

DJ, great hack. I'm using it on my production site now and it's working flawlessly so far. I do have a question. I've noticed that if a user uses the URL BB code inside a sentence to link to a video, the video is embedded correctly but it chops the sentence in half and uses the linked text as the video title. Is there a simple way to make AME ignore a link if it's in URL tags so that only stand alone pasted URLs are converted? I doubt it considering I have automatic parsing of links on, but I thought I would ask the Jedi.

- Jake

Digital Jedi 12-29-2008 07:11 PM

Quote:

Originally Posted by 58D (Post 1696590)
DJ, great hack. I'm using it on my production site now and it's working flawlessly so far. I do have a question. I've noticed that if a user uses the URL BB code inside a sentence to link to a video, the video is embedded correctly but it chops the sentence in half and uses the linked text as the video title. Is there a simple way to make AME ignore a link if it's in URL tags so that only stand alone pasted URLs are converted? I doubt it considering I have automatic parsing of links on, but I thought I would ask the Jedi.

- Jake

There's an option not to parse media below the text editor. And remember, it's The Geek's hack. ;)

Morrus 12-30-2008 03:13 PM

Quote:

Originally Posted by Digital Jedi (Post 1695885)
I should have looked at the error message more closely, it looks like you might be missing a AME file. Have you tried re-uploading the files to make sure no files where dropped by you FTP client?

Yep, I tried that - no luck.

Digital Jedi 12-30-2008 03:46 PM

Quote:

Originally Posted by Morrus (Post 1697221)
Yep, I tried that - no luck.

I'm still inclined to think that there's something going on with your AME cache. Maybe check to see if there are no typos in the path and make sure the directory is CHMOD 777.

Morrus 12-30-2008 04:52 PM

Quote:

Originally Posted by Digital Jedi (Post 1697247)
I'm still inclined to think that there's something going on with your AME cache. Maybe check to see if there are no typos in the path and make sure the directory is CHMOD 777.

All seems present and correct, as far as I can tell. To double check, here's my path:

/www/enworld.org/production/htdocs/tardis/forum/amecache/

Unless I should have entered it in a different way?

Digital Jedi 12-30-2008 04:58 PM

Quote:

Originally Posted by Morrus (Post 1697292)
All seems present and correct, as far as I can tell. To double check, here's my path:

/www/enworld.org/production/htdocs/tardis/forum/amecache/

Unless I should have entered it in a different way?

And you folder is CHMODed correctly?

Morrus 12-30-2008 05:01 PM

Quote:

Originally Posted by Digital Jedi (Post 1697295)
And you folder is CHMODed correctly?

Yep, 777.

Megatr0n 12-30-2008 05:12 PM

Will, this hack be updated to be compatible with 3.8 when it goes GOLD?

Morrus 12-30-2008 05:15 PM

Quote:

Originally Posted by Megatr0n (Post 1697303)
Will, this hack be updated to be compatible with 3.8 when it goes GOLD?

it works perfectly on two of my 3.8 boards. Just not the third, although I don't think that's because it's a 3.8 board.

Megatr0n 12-30-2008 05:46 PM

Are you running RC2?

Morrus 12-30-2008 05:49 PM

Quote:

Originally Posted by Megatr0n (Post 1697319)
Are you running RC2?

RC1.

Nadeemjp 12-31-2008 10:35 PM

hello guys.
so far my ame along with DJ's list worked pretty fine.
now i installed blog 2.0.0 and whenever i or someone else tries to comment on someone's blog, we receive an error saying it contradicts with AME modification.

i sought support from vbulletin team but they said they cant support if this modification is installed and that i have to ask it here.

so could someone suggest what could be the problem and how i can get rid of it?

the error i face is as following:

Code:

Invalid SQL:
INSERT INTO blog_text
(username, userid, bloguserid, title, pagetext, blogid, allowsmilie, state, dateline, ipaddress, ame_flag)
VALUES
('user name', *, **, '', 'message that was postedi n commments', *, *, 'visible', 1230769617, '2037711588', 2);

MySQL Error  : Unknown column 'ame_flag' in 'field list'
Error Number  : 1054
Request Date  : Wednesday, December 31st 2008 @ 06:26:57 PM
Error Date    : Wednesday, December 31st 2008 @ 06:26:58 PM
Script        : http://www.familybunker.com/forums/blog_post.php?do=postcomment
Referrer      : http://www.familybunker.com/forums/blogs/blogger name/17-chaand.html
IP Address    : poster IP address
Username      : ***
Classname    : vB_Database_MySQLi
MySQL Version : 5.0.51a-community-log

please help me someone:confused::(

Digital Jedi 01-01-2009 06:31 AM

The AME column doesn't exist in your database if you install the Blog AFTER you've install AME. You need to go into your AME Tools menu and click the Add Blog Support link to build that column.

Nadeemjp 01-01-2009 06:57 AM

oh so DJ if i click that add blog thingy then my problem will go away? i dont need to do anything else?

Digital Jedi 01-01-2009 06:58 AM

That should be it.

gojoe_gojoe 01-01-2009 05:28 PM

How can I code HookTV into your definitions. I get lots of request for that site and I got no idea how to code it.

Code:

<embed type="application/x-shockwave-flash" src="http://flyfishing.hook.tv/staging/adotube/player/APL.swf" width="530" height="370" bgcolor="#FFFFFF" quality="high" allowFullScreen="true" flashvars="autoStart=0&avid=d1t6143alaff&burl=http%3A%2F%2Fweb1%2Eadotube%2Ecom&csname=Hook%2Etv%20player"></embed>
Here is the URL http://www.hook.tv/player.php?key=D3BC753D8DFD82ED


All times are GMT. The time now is 05:24 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02196 seconds
  • Memory Usage 1,852KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (1)bbcode_html_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete