vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Major Additions - AME 2.5 - Media Embedding for posts, sigs, vm's, groups and blogs (https://vborg.vbsupport.ru/showthread.php?t=202476)

boggseric 05-22-2011 04:34 PM

Quote:

Originally Posted by jca2112 (Post 2197989)
It looks like this same character entity problem in YouTube titles has returned -- I assume it was a change on YouTube's end because it went away on it's own last time. Does anyone know anything about this?

This is from the definitions thread but it should be in here as it requires a change to the mod.


Quote:

Originally Posted by BirdOPrey5 (Post 2198216)
I fixed it like this... I had to edit the AME mod... Backup your original file if you try this.

In the includes directory find the file ame_bbcode.php

At line #589 find this code:

PHP Code:

$title trim(str_replace(array("\t","\n"), ""$match[1])); 

Replace it with:

PHP Code:

$title trim(str_replace(array("\t","\n""‏""‪""‬"), ""$match[1])); 

All I can promise is it's working for me. It won't fix links you've already made but should keep new ones clean.


BamaStangGuy 06-03-2011 12:23 AM

Can't rebuild old posts because of this error:

Code:

Invalid SQL:
SELECT
                                                                p.postid,
                                                                p.pagetext,
                                                                p.ame_flag,
                                                                t.forumid
                                                        FROM post p
                                                        INNER JOIN thread t on p.threadid = t.threadid
                                                        WHERE
                                                                1=1 AND
                                                                (p.pagetext LIKE '%[/url]%' OR p.pagetext LIKE '%[/ame]%' OR pagetext LIKE '%[/nomedia]%')
                                                                -604800
                                                        ORDER BY
                                                                p.dateline DESC
                                                        LIMIT 0, 100;

MySQL Error  : Unknown column 'p.ame_flag' in 'field list'


jca2112 06-15-2011 05:43 PM

Quote:

Originally Posted by jca2112 (Post 2197989)
It looks like this same character entity problem in YouTube titles has returned -- I assume it was a change on YouTube's end because it went away on it's own last time. Does anyone know anything about this?

It doesn't look like YouTube is going to correct this title problem on their end (as they did last time).

Will this mod be updated to remove those encoded character glitches in the YouTube title? As the previous poster mentioned, not really looking to make mod edits unless this version/mod is no longer being supported.

BirdOPrey5 06-15-2011 07:24 PM

Quote:

Originally Posted by jca2112 (Post 2208169)
It doesn't look like YouTube is going to correct this title problem on their end (as they did last time).

Will this mod be updated to remove those encoded character glitches in the YouTube title? As the previous poster mentioned, not really looking to make mod edits unless this version/mod is no longer being supported.

This mod was last updated in 2009 and is marked "Unsupported." I wouldn't hold my breath waiting for an update.

holyknight0326 06-16-2011 04:46 AM

Anyone have a successful installation with vbulletin 4.0+?

BirdOPrey5 06-16-2011 09:58 AM

Quote:

Originally Posted by holyknight0326 (Post 2208358)
Anyone have a successful installation with vbulletin 4.0+?

This will definitely NOT work with 4.x. There is a 4.x AME mod, it doesn't have all the features but it's enough to do the same basic thing.

Wonksta 06-16-2011 11:13 AM

Any update on the ability to parse youtu.be links? Seeing a lot of them popping up on the forums I admin.

Forensic 06-17-2011 09:49 PM

Quote:

Originally Posted by Wonksta (Post 2208437)
Any update on the ability to parse youtu.be links? Seeing a lot of them popping up on the forums I admin.


Found this in the definitions thread.



https://vborg.vbsupport.ru/showthrea...be#post2182859

teach1st 06-29-2011 04:39 AM

Disabled. Rebuilding threads really messed up any posts that used this mod.

ehd 06-29-2011 07:48 AM

Any news on the broken Amazon-definitions?

BirdOPrey5 06-29-2011 10:15 AM

Quote:

Originally Posted by ehd (Post 2214410)
Any news on the broken Amazon-definitions?

Which one is broken exactly?

ehd 06-29-2011 11:01 AM

amazon-thumbnails

BirdOPrey5 06-29-2011 12:12 PM

1 Attachment(s)
Quote:

Originally Posted by ehd (Post 2214457)
amazon-thumbnails

These thumbnails are working for me for Amazon Thumbnails, I tried a couple of links on your page and they worked when using this definition too.

I don't remember if I edited this or if it was just the latest version from the "Delta Definitions", but it works.

ehd 06-29-2011 12:36 PM

Thx.

Had the exact same code like you and even imported it again. The same problem..

From the code:

$p1._SL175_.jpg

$p seems to be omitted and vanishes somewhere. What could it cause?

BirdOPrey5 06-29-2011 12:42 PM

Open the Thumbnail definition...

Change the "Embedding Regexp" box to this:
Code:

http://[ecximg2]+\.[images-]*amazon\.[coma]+/images/I/([\w&;%.=-]+)\.
(I added a period)

I think that should work, my theory is some servers/php installs are configured a little differently than others.

ehd 06-29-2011 01:07 PM

Hm...no, that had no effect..

I'm running PHP Version 5.2.6-1+lenny10

But there have been no changes at all, that's why I'm so puzzled...

BirdOPrey5 06-29-2011 01:11 PM

Quote:

Originally Posted by ehd (Post 2214500)
Hm...no, that had no effect..

I'm running PHP Version 5.2.6-1+lenny10

But there have been no changes at all, that's why I'm so puzzled...

Try this...

Code:

http://[ecximg2]+\.[images-]*amazon\.[coma]+/images/I/([\wa-zA-Z&;%.=-]+)\.[jpg]*[gif]*[png]*
it's a little more explicit.

ehd 06-29-2011 01:51 PM

Still the same problem....no image.

It has worked for at least 1 or 2 years like a charm....

BirdOPrey5 06-29-2011 02:31 PM

Last thing I can think of trying...

Code:

http://[ecximg2]+\.[images-]*amazon\.[coma]+/images/I/([\w&;%=\.-]+)\.[jpg]*[gif]*[png]*

ehd 06-29-2011 02:51 PM

*Sigh*

Thanks alot for your help, but that didn't do it either..

Probably I seem to be the only one who has the problem, so the only way is to look for the cause of the problem...

BirdOPrey5 06-29-2011 02:57 PM

I know you're getting tired of this but there is 1 more way I tried that is working for me...

Code:

http://[ecximg2]+\.[images-]*amazon\.[coma]+/images/I/([\w.]+)[.jpg]
or
Code:

http://[ecximg2]+\.[images-]*amazon\.[coma]+/images/I/([\w\.]+)[.jpg]
The problem is the "period" in the image: 51A1Zvu3cVL._SL500_AA300_.jpg

On some servers (like mine) it works fine, on others it doesn't. I've seen this problem with other definitions before, specifically the short youtu.be URL.

ehd 06-29-2011 03:02 PM

Holy ****

I just upgraded from 2.5.5 to 2.5.6 and now with the old Regexp it works again......

Thanks again for your help and verystrange behaviour of my vb,..

BirdOPrey5 06-29-2011 03:04 PM

Awesome... so maybe the people have trouble with my youtu.be definition was 2.5.5 too. Thanks for the update. :up:

MentaL 07-01-2011 01:37 PM

Quote:

Originally Posted by boggseric (Post 2198750)
This is from the definitions thread but it should be in here as it requires a change to the mod.

This is not working for me even when posting new videos.

Prorockz 07-02-2011 06:45 PM

im used 3.8.7 version .

when im try to import product file i got sql error .

Database error in vBulletin 3.8.7:

Invalid SQL:
DELETE FROM automediaembed WHERE id in (2,3,4,6,7,10);

MySQL Error : MySQL server has gone away
Error Number : 2006
Request Date : Saturday, July 2nd 2011 @ 02:08:59 PM
Error Date : Saturday, July 2nd 2011 @ 02:10:03 PM

BirdOPrey5 07-26-2011 12:31 PM

For those still looking for a youtu.be short URL solution I have released a mod that will auto convert the short URLs to the FULL URLs to allow AME to process them as normal:

https://vborg.vbsupport.ru/showthread.php?t=267450

DaffyDuck 08-07-2011 01:15 AM

For some reason it's not working for me - after installation, pasting a YouTube or Vimeo video into a new post or new reply, just results in a post or reply with the URL displayed, but no embedded video.

FYI - running vB 4.1.5 as well as Marco's Enhanced FCKE editor. Any known issues with that combo?

BirdOPrey5 08-07-2011 11:27 AM

Quote:

Originally Posted by DaffyDuck (Post 2230347)
For some reason it's not working for me - after installation, pasting a YouTube or Vimeo video into a new post or new reply, just results in a post or reply with the URL displayed, but no embedded video.

FYI - running vB 4.1.5 as well as Marco's Enhanced FCKE editor. Any known issues with that combo?

Because this is only for vBulletin 3.8.x.:D

navjotjsingh 08-12-2011 03:28 AM

How to use Youtube's new embed codes here? This still uses the old object tags. Definitions for that?

Spinball 09-07-2011 10:27 AM

Went to install this product on AVForums.com 3.8.2
Quote:

Importing Product, Please Wait...

[:]
The page never finished loading and the MySAL server crashed.
Hardly surprising since it adds a field to the post table. Why on earth would it do that? We have over 12 million posts. No wonder it crashed the server.

I would suggest that a note during install to say it alters the post table would be essential.

[Edit] - ok, my host brought the server back and I installed again and it's fine (with the DJ's xml imported)

Vimeo videos aren't working, though.
e.g. http://vimeo.com/28561610]The

BirdOPrey5 09-07-2011 11:37 AM

Quote:

Originally Posted by Spinball (Post 2242946)
Went to install this product on AVForums.com 3.8.2

The page never finished loading and the MySAL server crashed.
Hardly surprising since it adds a field to the post table. Why on earth would it do that? We have over 12 million posts. No wonder it crashed the server.

I would suggest that a note during install to say it alters the post table would be essential.

[Edit] - ok, my host brought the server back and I installed again and it's fine (with the DJ's xml imported) except I just put in a link to a youtube video and the text is put infront of the embedded video. Any ideas what's happening?

It alters the post table because you can enable or disable embedding for every single post, therefore it is logical to add a field to the post table.

It puts the [ame=...] bbcode around the embedded videos because that is how it was programmed to work- and it works well. Never had a problem with this mod.

The real question is- why have you waited so long before installing? :D

Fynnon 09-16-2011 02:55 PM

thanks, using [ame="http://youtube.com/watch?v=xxx"]Tutorial[/ ame] works

Digital Jedi 09-16-2011 08:03 PM

Okay guys, I decided I'm going to go ahead and re-release AME 2.5 as well as AME 3 with some minor fixes and enhancements. The Geek released this to the wild right before he left developing for vB, so hopefully I can take this, learn from it, and move it to the next level. AME 2.6 (or whatever I decide to call it) will be released first, and AME 3.x will come out sometime later. No ETA, but I thought you'd like a heads up.

BirdOPrey5 09-16-2011 08:05 PM

Any idea on what changes you are thinking of, or just to get everything together in a new thread?

Digital Jedi 09-16-2011 08:27 PM

Primarily, I'd be getting the stuff together and updating the two default definitions so they aren't always outdated. I also have a list of small tweaks I want to work on for 2.5. Things like a toggle for people using different encoding, unless I can figure a way to globalize that in the PHP code. (Didn't have much luck with that last time I tried.) A few style enhancements, some additional help in the Admin CP, a place card for code that posts via JavaScript, user agent detection. I think this version is stable enough that it doesn't need a major overhaul, but it was missing some minor details.

I'd also like definitions with the same key to overwrite, but I'll have to look at The Geek's code more closely before I know if that's a major rewrite or not.

texasasl 10-08-2011 07:28 PM

Hi guys does anyone know how to embed .flv files in a post ???
Thanks in advance

Digital Jedi 10-09-2011 03:17 AM

Quote:

Originally Posted by texasasl (Post 2254827)
Hi guys does anyone know how to embed .flv files in a post ???
Thanks in advance

Please see my XML definitions in the Add On section of the first post..

BirdOPrey5 10-09-2011 11:29 AM

I wonder if anyone has some ideas on this... I (and a few others) are trying to get AME to work on posts that are made via an RSS feed.

For example if you have a youtube RSS feed you need to "edit" and "save" each post for the video to actually embed.

I am close to solving this, I think, but still not working.

I have edited the file rssposter.php in the includes/cron/ directory... Since there are no hooks.

Find this code:
PHP Code:

                        $rsslog_insert_sql[] = "($item[rssfeedid]$itemid, '$itemtype', '" $vbulletin->db->escape_string($uniquehash) . "', '" $vbulletin->db->escape_string($item['contenthash']) . "', " TIMENOW ", $threadactiontime)";
                        
$cronlog_items["$item[rssfeedid]"][] = "\t<li>$vbphrase[$itemtype] <a href=\"$itemlink\" target=\"logview\"><em>$itemtitle</em></a></li>";
                    } 

And right after it add:
PHP Code:

//Set AME Flag Start
      
require_once(DIR '/includes/functions.php');
       
$amethread fetch_threadinfo($itemid);
          
$postid $amethread['firstpostid'];
          
          
$post fetch_postinfo($postid);
          
          
$post['message'] = $post['pagetext'];
          
          require_once(
DIR '/includes/ame_bbcode.php');
          
$value ame_prep_text($post['message']);
          echo 
$post['message'];
          if (
$value == 1)
          {
                  
$vbulletin->db->query_write("UPDATE " TABLE_PREFIX "post SET pagetext ='" $vbulletin->db->escape_string($post['message']) . "', ame_flag=1 WHERE postid=$post[postid]");
          }
          else if (
$value == 2)
          {
                  
$vbulletin->db->query_write("UPDATE " TABLE_PREFIX "post SET pagetext ='" $vbulletin->db->escape_string($post['message']) . "', ame_flag=1 WHERE postid=$post[postid]");
          }
 
//Set AME Flag End 

This code will set the ame_flag to "1" in the database for the post but for some reason does NOT change the [url] bbcode to [ame]...

I use the same query for both value ==1 and ==2 because "2" I believe disables AME in the post, which I don't want- I will assume for every RSS post I want it enabled, so I set the flag to 1 in both cases.

Is there something else I am missing? Do I need to run something else besides ame_prep_text?

Maybe there is supposed to be some difference between $post[message] and $post[pagetext] that I am missing... ?

Artes_Marciales 10-09-2011 01:03 PM

suggestion for the future updates...
support for videos from http://clips.team-andro.com/
Thanks!! : D

texasasl 10-09-2011 05:43 PM

Quote:

Originally Posted by Digital Jedi (Post 2254964)
Please see my XML definitions in the Add On section of the first post..

I've seen all xml definitions but I cannot find the extension for .flv there is only extension for .swf.
Is there anyway to modify it by only replacing the .swf with .flv in the code??

Thanks in advance


All times are GMT. The time now is 04:50 PM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03192 seconds
  • Memory Usage 1,870KB
  • 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
  • (4)bbcode_php_printable
  • (15)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