Messages - Nao/Gilles

Pages: [1] 2 3 ... 13
1
Aeva Media / Re: YouTube fix for Aeva Media (May 2015)
« le: 2 Décembre 2018 à 9h58 »
I have no idea... You should provide a link to a page in action.

2
You should find this at line 378 in that file...

$input = preg_replace('`(#[^"<]*)`e', 'str_replace("~", "-", "$1")', $input);
You can replace with, for instance:

$input = preg_replace_callback('~#[^"<]*~', function ($match) { return strtr($match[0], '~', '-'); }, $input);
This is taken straight from Wedge (wedge.org, which has Aeva Media 2.x directly embedded in it), and should only work on PHP 5.3+, but 99% of servers have it by now.

I'm surprised I didn't backport this into v1.4 and v2.0, though. Not that anyone complained...

3
Well it's in the media section... it has an aeva folder. Then an aeva 2.0 folder. (?)

4
Haven't posted here in a while...
Hopefully some users will receive a notification for a bump to this topic, and will pass the word around!

For the first time in my life (I'm serious!), I'm putting something on sale. Aeva Media normally costs $9.99 for one year of downloads & support, it's now $0.99 (90% off!) for a day -- good enough to download & legally own a copy on your forum -- and $2.99 for a year. Given that I'm not gonna update it very often, it's probably best for you to just take a $1 copy and then pay again if you need support. Then again, assuming the sale isn't over by then.

The main reason is simply that it's been quite a few years since I last did serious work on AeMe, even the Wedge version (which is free) doesn't get more than security updates & fixes, so this is a way to make up for it!
If you have a SMF forum running Aeva Media 1.x, it's a good opportunity to get its premium features for next to nothing.

I'm not setting a definite duration for the sale (it will be at least a week, possibly a month), so enjoy it while it lasts!

PS: as I mentioned-- please spread the word! I'm not going to do it, I'm no longer on the official SMF forums or anywhere else for what it's worth.

5
Aeva Media / Re: Youtu.be fix for Aeva
« le: 8 Septembre 2017 à 15h37 »
Note: edited Aeva Media 2.11 silently to add another fix for youtu.be and secure URLs. Should work now...

6
Aeva Media / Re: YouTube fix for Aeva Media (May 2015)
« le: 31 Mai 2015 à 18h16 »
The code I posted above was for AeMe 2.10, not Wedge. I believe it also works without changes for v1.4... Make sure to apply the diff manually for best results! And feel free to share your updated files if they're not identical.

7
Aeva Media / YouTube fix for Aeva Media (May 2015)
« le: 13 Mai 2015 à 16h17 »
So, YouTube isn't going to cooperate with your embeds anymore..?
There's a 'quick' solution, just disable 'lookups' in the Aeva settings. This should help, although you'll still have to manually modify protocols to 'http://' instead of 'https://' when posting a video.

If you want a full-fledged fix, you'll have to do with my diff patches. I'll post updated versions of the AeMe 2.10 files, too, but please remember not to share these outside of this board. Feel free to share the diff patches, though.
If you didn't change the original AeMe files, then feel free to just dropped the fixed files into your Sources folder.
Or, of course, switch to Wedge. ;)

Important note: I only spent an hour or so on this fix. It's quite ugly, as it was backported from the Wedge codebase, and I didn't bother to make many tests for the Aeva-Embed.php changes.

--- Sources\Subs-Aeva-Sites.php 2010-10-08 11:56:08.000000000 +-0200
+++ Sources\Subs-Aeva-Sites.php 2015-05-13 16:07:02.000000000 +-0200
@@ -139,27 +139,27 @@
  array(
  'id' => 'ytb',
  'title' => 'YouTube',
  'website' => 'http://www.youtube.com',
  'type' => 'pop',
  'added' => '<4.0',
- 'pattern' => 'http://(?:video\.google\.(?:com|com?\.[a-z]{2}|[a-z]{2})/[^"]*?)?(?:(?:www|[a-z]{2})\.)?youtube\.com/[^"#[]*?(?:&|&amp;|/|\?|;|\%3F|\%2F)(?:video_id=|v(?:/|=|\%3D|\%2F))([\w-]{11})',
- 'movie' => 'http://www.youtube.com/v/$2&rel=0&fs=1',
+ 'pattern' => 'https?://(?:video\.google\.(?:com|com?\.[a-z]{2}|[a-z]{2})/[^"]*?)?(?:(?:www|[a-z]{2})\.)?youtube\.com/[^"#[]*?(?:&|&amp;|/|\?|;|\%3F|\%2F)(?:video_id=|v(?:/|=|\%3D|\%2F))([\w-]{11})',
+ 'movie' => '[url]https://www.youtube.com/v/[/url]$2&rel=0&fs=1',
  'size' => array(
  'normal' => array(480, 385),
  'ws' => array(640, 385),
  ),
  'ui-height' => 25,
  // http://www.youtube.com/watch?v=-X8mD76W4F0 or v=MxGofCFHYCc (all hail Jochen Hippel!)
  // On Google - http://video.google.co.uk/url?docid=-8978185459530152475&ev=v&len=91&srcurl=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dg2cT5J0gxeU
  // http://www.youtube.com/watch?v=M29NUeffJNA - Example of "Embedding Disabled By Request"
- 'fix-html-pattern' => '<object [^>]*><param name="movie" value="http://www\.youtube\.com/v/([\w-]{11})(?:&[^"]*)?">.*?</object>',
- 'fix-html-url' => 'http://www.youtube.com/watch?v=$1',
- 'lookup-url' => 'http://(?:video\.google\.(?:com|com?\.[a-z]{2}|[a-z]{2})/[^"]*?)?(?:(?:www|[a-z]{2})\.)?youtube\.com/[^"#[]*?(?:&|&amp;|/|\?|;|\%3F|\%2F)(?:video_id=|v(?:/|=|\%3D|\%2F))([\w-]{11})[^]#[]*',
- 'lookup-actual-url' => 'http://gdata.youtube.com/feeds/api/videos/$1?v=2',
- 'lookup-final-url' => 'http://www.youtube.com/watch?v=$1',
+ 'fix-html-pattern' => '<object [^>]*><param name="movie" value="https?://www\.youtube\.com/v/([\w-]{11})(?:&[^"]*)?">.*?</object>',
+ 'fix-html-url' => '[url]https://www.youtube.com/watch?v=[/url]$1',
+ 'lookup-url' => 'https?://(?:video\.google\.(?:com|com?\.[a-z]{2}|[a-z]{2})/[^"]*?)?(?:(?:www|[a-z]{2})\.)?youtube\.com/[^"#[]*?(?:&|&amp;|/|\?|;|\%3F|\%2F)(?:video_id=|v(?:/|=|\%3D|\%2F))([\w-]{11})[^]#[]*',
+ 'lookup-actual-url' => '[url]https://www.googleapis.com/youtube/v3/videos?id=[/url]$1',
+ 'lookup-final-url' => '[url]https://www.youtube.com/watch?v=[/url]$1',
  'lookup-title' => true,
  'lookup-title-skip' => true,
  'lookup-pattern' => array(
  'id' => '<id>.*?:([\w-]+)</id>',
  'error' => '<internalReason>(.*?)</internalReason>',
  'noexternalembed' => '<yt:accessControl\saction=\'embed\'\spermission=\'denied\'/>',
@@ -160,19 +160,19 @@
  'lookup-title' => true,
  'lookup-title-skip' => true,
  'lookup-pattern' => array(
  'id' => '<id>.*?:([\w-]+)</id>',
  'error' => '<internalReason>(.*?)</internalReason>',
  'noexternalembed' => '<yt:accessControl\saction=\'embed\'\spermission=\'denied\'/>',
  'id' => 'ytp',
  'title' => 'YouTube (Playlists)',
  'website' => 'http://www.youtube.com',
  'type' => 'pop',
  'added' => '<4.0',
  // http://uk.youtube.com/view_play_list?p=7262E1895FA61B39
- 'pattern' => 'http://(?:(?:www|[a-z]{2})\.)?youtube\.com/[^"]*?(?:&|&amp;|/|\?|;)(?:id=|p=|p/)([0-9a-f]{16})',
+ 'pattern' => 'https?://(?:(?:www|[a-z]{2})\.)?youtube\.com/[^"]*?(?:&|&amp;|/|\?|;)(?:id=|p=|p/)([0-9a-f]{16})',
  'movie' => 'http://www.youtube.com/p/$2&rel=0&fs=1',
  'size' => array(480, 385),
  'ui-height' => 25,
  'fix-html-pattern' => '<object [^>]*><param name="movie" value="$1" />.*?</object>',
  ),
  array(

Then...

--- Sources\Aeva-Embed.php 2010-11-19 11:29:34.000000000 +-0200
+++ Sources\Aeva-Embed.php 2015-05-13 16:00:29.000000000 +-0200
@@ -106,13 +106,13 @@
  // For each enabled site to the end, attempt to embed
  for ($upto = 0; $upto < $j; $upto++)
  {
  $message = aeva_match($message);
 
  // If no active http links remain (making further embedding impossible), then stop
- if (stripos($message, '<a href="http://') === false)
+ if (stripos($message, '<a href="http') === false)
  break;
  }
 
  // Reverse protections and return the finished embedded content
  return aeva_reverse_protection(str_replace('<aeva-begin>', '', $message));
 }
@@ -113,28 +113,28 @@
  break;
  }
 
  // Reverse protections and return the finished embedded content
  return aeva_reverse_protection(str_replace('<aeva-begin>', '', $message));
 }
  }
 
  // Tidy up
  unset($unaltered);
 
  // No links remaining?  No further embedding possible, so set this variable before we return
- if ($reverse === true && stripos($input, '<a href="http://') === false)
+ if ($reverse === true && stripos($input, '<a href="http') === false)
  $context['aeva']['skip'] = true;
 
  return $input;
 }
 
 // Protect noembed & autolink items from embedding *before* BBC parsing - wrap quotes, but don't protect
 function aeva_preprotect(&$message, $cache_id)
 {
- if ((stripos($message, 'http://') === false && stripos($message, '') === false) || strpos($cache_id, 'sig') !== false)
+ if ((stripos($message, '://') === false && stripos($message, '') === false) || strpos($cache_id, 'sig') !== false)
  return;
 
  global $modSettings, $context;
 
  if (!empty($modSettings['cache_enable']))
  {
@@ -202,19 +202,19 @@
  return;
 
  global $modSettings, $context;
 
  if (!empty($modSettings['cache_enable']))
  {
 
  // Should haven't got here if autolinking of urls is disabled
  if (empty($modSettings['autoLinkUrls']))
  return $input;
 
  // Parse any URLs....
- if (preg_match('~http://|www\.~i', $input))
+ if (preg_match('~https?://|www\.~i', $input))
  {
  // Modified from SMF code, adding support for [center], [li], [td] and closing tags.
  $input = strtr($input, array('&#039;' => '\'', '&quot;' => '>">', '"' => '<"<', '&lt;' => '&lt;'));
  $input = preg_replace(
  array(
  '`(^|[\s>\.(;\'"]|\[(?:center|li|td|youtube|/\w+)])((?:http|https|ftp|ftps)://[\w%@:|-]+(?:\.[\w%-]+)*(?::\d+)?(?:/[\w\~%\.@,\?&;=#+:\'\\\\-]*|[\(\{][\w\~%\.@,\?&;=#(){}+:\'\\\\-]*)*[/\w\~%@\?;=#}\\\\-]?)`i',
@@ -705,19 +705,19 @@
  {
  // Modified from SMF code, adding support for [center], [li], [td] and closing tags.
  $input = strtr($input, array('&#039;' => '\'', '&quot;' => '>">', '"' => '<"<', '&lt;' => '&lt;'));
  $input = preg_replace(
  array(
  '`(^|[\s>\.(;\'"]|\[(?:center|li|td|youtube|/\w+)])((?:http|https|ftp|ftps)://[\w%@:|-]+(?:\.[\w%-]+)*(?::\d+)?(?:/[\w\~%\.@,\?&;=#+:\'\\\\-]*|[\(\{][\w\~%\.@,\?&;=#(){}+:\'\\\\-]*)*[/\w\~%@\?;=#}\\\\-]?)`i',
  global $context, $modSettings, $txt, $aeva_timer;
 
  $aeva_timer = (isset($aeva_timer) ? (int) $aeva_timer : 0) - array_sum(explode(' ', microtime()));
 
  if (strlen($message) > 10 & empty($context['uninstalling']))
  {
- if (!empty($modSettings['aeva_enable']) && empty($context['aeva_disable']) && stripos($message, 'http://') !== false && $smileys !== 'print' && strpos($cache_id, 'sig') === false)
+ if (!empty($modSettings['aeva_enable']) && empty($context['aeva_disable']) && stripos($message, '://') !== false && $smileys !== 'print' && strpos($cache_id, 'sig') === false)
  $message = aeva_main($message);
  else
  {
  // Removes any noembed
  $message = aeva_protection(
  array('noembed' => false),
@@ -1070,27 +1070,27 @@
  $message = aeva_main($message);
  else
  {
  // Removes any noembed
  $message = aeva_protection(
  array('noembed' => false),
  global $embed_album, $embed_folder, $context, $force_id;
 
  $link = preg_replace(array('~\[url=([^]]*)]([^[]*)\[/url]~', '~\[url]([^[]*)\[/url]~'), array('$1', '$1'), $link);
  $thumbs = array(
  'YouTube' => array(
  'func' => 'youtubeCreateThumb',
- 'pattern' => 'http://(?:video\.google\.(?:com|com?\.[a-z]{2}|[a-z]{2})/[^"]*?)?(?:(?:www|[a-z]{2})\.)?youtube\.com/[^"#[]*?(?:&|&amp;|/|\?|;|\%3F|\%2F)(?:video_id=|v(?:/|=|\%3D|\%2F))([\w-]{11})',
+ 'pattern' => 'https?://(?:video\.google\.(?:com|com?\.[a-z]{2}|[a-z]{2})/[^"]*?)?(?:(?:www|[a-z]{2})\.)?youtube\.com/[^"#[]*?(?:&|&amp;|/|\?|;|\%3F|\%2F)(?:video_id=|v(?:/|=|\%3D|\%2F))([\w-]{11})',
  ),
  'Dailymotion' => array(
  'func' => 'dailymotionCreateThumb',
  'pattern' => 'http://(?:www\.)?dailymotion\.(?:com|alice\.it)/(?:[^"]*?video|swf)/([a-z0-9]{1,18})',
  ),
  'GoogleVideo' => array(
  'func' => 'googleCreateThumb',
- 'pattern' => 'http://video\.google\.(com|com?\.[a-z]{2}|[a-z]{2})/(?:videoplay|url|googleplayer\.swf)\?[^"]*?docid=([\w-]{1,20})',
+ 'pattern' => 'https?://video\.google\.(com|com?\.[a-z]{2}|[a-z]{2})/(?:videoplay|url|googleplayer\.swf)\?[^"]*?docid=([\w-]{1,20})',
  ),
  'GoogleMaps' => array(
  'func' => 'gmapsCreateThumb',
  'pattern' => 'http://maps\.google\.[^">]+/\w*?\?[^">]+',
  ),
  'MetaCafe' => array(

8
Aeva Media / Re: NEW METHOD for purchasing Aeva Media 2.10
« le: 10 Mai 2015 à 14h01 »
Hi Nao,

I'm still using Avea 1.4c. I'm still considering Wedge in the future but in the meantime was looking into purchasing Avea 2.1

Could you please answer some questions for me?

1. Do you plan to continue supporting Avea 2.x
No. That's why I slashed its price. You have the choice between unsupported old versions, or supported new versions (i.e. Wedge), although Wedge is also a problem these days because of the lack of buzz around it.
Citer
2. Where is the best place to obtain support for it? Here or @ wedge.org
Nowhere, if you're planning to get support for AeMe from me. At wedge.org, if it's a Wedge bug... (And AeMe is Wedge, as far as I'm concerned.)
Citer
3. Is there any fix for 2.x for YouTube embedding? As of this week, new embeds on 1.4c redirect to a video saying that the method to view YouTube is out of date
I don't know. I haven't met this problem yet. Is it an issue with the secure protocol thing? If yes, then there was a fix floating around that I posted somewhere years ago. Maybe search on wedge.org... aeva + https, or something. Dunno. Or maybe just http://aeva.noisen.com/6477/hello/msg265800/#msg265800 ...?
Citer
I'd really prefer to continue to use your software rather than try and convert everything to another platform or just trashing existing albums.
Other software sucks, mostly. Anything media-related in the SMF universe sucks. And I make next to zero bucks with AeMe so I have no financial interests either way. They just suck horribly, which is why I worked so hard on AeMe in the first place. But even these days -- last time I looked into it, the SMF team had entirely removed AeMe from their servers, and never told me about it. Look at how good they are with slashing the competition. Even if the only relationship between AeMe and Wedge.org is the short link at the end of the mod pages.

Oh, sorry, I shouldn't bother to speak my feelings... It's not like they matter.

9
Aeva Media / Re: NEW METHOD for purchasing Aeva Media 2.10
« le: 11 Décembre 2014 à 12h13 »
Wedge uses aeme 2.
I'm planning to get rid of swf uploads but I'm not selling enough copies to even want to get started...

10
Aeva Media / NEW METHOD for purchasing Aeva Media 2.10
« le: 10 Février 2014 à 14h02 »
I've been forced, I'm afraid, to change the way Aeva Media subscriptions are taken.
Because PayPal only allows one website to be linked to one e-mail address, I've moved my website to be the new I'm working on. This just makes sense.

http://wedge.org/

- Create an account over there.
- Go to your profile, and click the Subscriptions link. You should be taken there.
- Click to purchase Aeva Media.
- You'll be redirected to PayPal. Proceed with your payment.
- You'll be redirected to Wedge.org.
- You should be receiving an e-mail with a link to the software. If you didn't receive it, just go to the Media section of wedge.org, and look for the "Aeva Media" folder. If you can't find it, please drop me a PM and I'll look into it.
- Download the package.
- ???
- Profit!

11
Aeva Media / Re: Bug Aeva-Media-1.4w on 2.0 fresh install
« le: 27 Novembre 2013 à 14h36 »
It is in private alpha for now. I hope to be able to release a public alpha or beta in the next couple of months.
You can also try Elkarte. It's modern, too, and is in public beta.

12
Aeva Media / Re: Bug Aeva-Media-1.4w on 2.0 fresh install
« le: 26 Novembre 2013 à 18h12 »
Well you certainly copied the profile code to the wrong place. You should ask for support at sm.org because I'm not providing support for anything that isn't running on Wedge...

13
Aeva Media / Re: Hello
« le: 7 Mars 2013 à 12h20 »
C'est techniquement difficile, et surtout pas très intéressant du fait que YouTube, de son côté, propose déjà un compteur...

14
Aeva Media / Re: Hello
« le: 13 Décembre 2012 à 16h31 »
There is no Aeva Media logo... The package was abandoned over 2 years ago following various tensions within the SMF team.

You may use any Wedge logo you like to link to wedge.org, though :P

15
Well, obviously he spammed his signature...
Which doesn't show up until the user has posted 10+ messages or so.

So basically it was a waste of time for everyone :P
I removed his account.

Pages: [1] 2 3 ... 13