Uutiset:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu
Advertisement:

Aeva 6.9.99 and earlier (old)

Aloittaja karlbenson, lokakuu 14, 2007, 06:22:33 IP

« edellinen - seuraava »

Nao 尚

@weightman> wow... They suck!
@rune> you forgot enclosing the $sites lines in a {} block. As it is now, it will add a 'hq' size to all sites and it'll break it. Also, you don't need to set a size for 'hq', because it's got nothing to do with being widescreen or not. (Technically, I think neither has 'hd', but it's not today's topic.)
Did you regenerate the site list after that?
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

Akyhne

Embedding code from 5.2.42:
<object classid="CLSID:D27CDB6E-AE6D-11CF-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0" type="application/x-shockwave-flash" width="425px" height="344px"><param name="movie" value="http://www.youtube.com/v/ZjJJwnfHyYc&amp;ap=%2526fmt%3D18&amp;rel=0" /><param name="wmode" value="transparent" /><param name="quality" value="high" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="never" /><param name="pluginspage" value="http://www.macromedia.com/go/getflashplayer" /><param name="autoplay" value="false" /><param name="autostart" value="false" /><embed type="application/x-shockwave-flash" src="http://www.youtube.com/v/ZjJJwnfHyYc&amp;ap=%2526fmt%3D18&amp;rel=0" width="425px" height="344px" wmode="transparent" quality="high" allowFullScreen="true" allowScriptAccess="never" pluginspage="http://www.macromedia.com/go/getflashplayer" autoplay="false" autostart="false" /><noembed><a href="http://www.youtube.com/v/ZjJJwnfHyYc&amp;ap=%2526fmt%3D18&amp;rel=0" target="_blank">http://www.youtube.com/v/ZjJJwnfHyYc&amp;ap=%2526fmt%3D18&amp;rel=0</a></noembed></object>

Embed code from 5.2.52:
<object classid="CLSID:D27CDB6E-AE6D-11CF-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0" type="application/x-shockwave-flash" width="425px" height="344px"><param name="movie" value="http://www.youtube.com/v/ZjJJwnfHyYc&amp;rel=0" /><param name="wmode" value="transparent" /><param name="quality" value="high" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="never" /><param name="pluginspage" value="http://www.macromedia.com/go/getflashplayer" /><param name="autoplay" value="false" /><param name="autostart" value="false" /><embed type="application/x-shockwave-flash" src="http://www.youtube.com/v/ZjJJwnfHyYc&amp;rel=0" width="425px" height="344px" wmode="transparent" quality="high" allowFullScreen="true" allowScriptAccess="never" pluginspage="http://www.macromedia.com/go/getflashplayer" autoplay="false" autostart="false" /><noembed><a href="http://www.youtube.com/v/ZjJJwnfHyYc&amp;rel=0" target="_blank">http://www.youtube.com/v/ZjJJwnfHyYc&amp;rel=0</a></noembed></object>

weightman

It does suck that Brightcove has gone pay for service, but they were by far the best video hosting service until now. You could host your flv files with them so that they didn't re-encode, you could set your own bitrates, you could combine multiple videos into some really nice players, etc.

Nao 尚

Fix for lookups in SMF Media Gallery:

Open Subs-MGallery.php
Find
function smg_utf2entities($source, $is_file = true, $limit = 255)
{
global $context, $mgalSettings;

Replace with
function smg_utf2entities($source, $is_file = true, $limit = 255)
{
global $context, $mgalSettings, $modSettings;

if (isset($modSettings['aeva_enable']) && function_exists('aeva_onposting'))
$source = aeva_onposting($source);


Tested, it works on my site.

@akyhne> What is it for?
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.


Nao 尚

Fix for Ultimate Profile's comments:

Open Profile.php (if under SMF1) or Profile-Modify.php (if under SMF2, but I guess you aren't, because I never released my SMF2 version of the mod, lol), find:

if (isset ($_GET['add'])) {
if (!$_POST['comment'])
fatal_error ($txt['profile_comment_field'], false);

Replace with:
if (isset ($_GET['add'])) {
if (!$_POST['comment'])
fatal_error ($txt['profile_comment_field'], false);
global $modSettings;
if (isset($modSettings['aeva_enable']) && function_exists('aeva_onposting'))
$_POST['comment'] = aeva_onposting($_POST['comment']);


This one is UNTESTED... This is because I just realized profile comments are broken on noisen.com (lol, again). I don't have time to fix this right now.

Lainaus käyttäjältä: akyhne - tammikuu 28, 2009, 12:48:29 IP
Lainaus käyttäjältä: Nao 尚 - tammikuu 28, 2009, 12:43:43 IP
@akyhne> What is it for?
That embeding in 5.2.52 doesn't work: http://www.simplemachines.org/community/index.php?topic=200401.msg1900359#msg1900359
I don't understand. Please state exactly what your problem is and how to reproduce.
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

runebergen


:P :P :P :P thank you!

You almost had it, but missed the include part...

This code will POST hq videos from Youtube at Ultimate Profile


if (isset ($_GET['add'])) {
      if (!$_POST['comment'])
         fatal_error ($txt['profile_comment_field'], false);
      global $modSettings, $sourcedir; // added sourdir
@include_once($sourcedir . '/Subs-Aeva.php');  // ADDED
      if (isset($modSettings['aeva_enable']) && function_exists('aeva_onposting'))
         $_POST['comment'] = aeva_onposting($_POST['comment']);




What about all the videos posted PRIOR to such a fix?
Any way to get them right? Or maybe a preg_replace adding #hq-ws to them on the fly?





Nao 尚

Lainaus käyttäjältä: runebergen - tammikuu 28, 2009, 01:34:15 IP

:P :P :P :P thank you!

You almost had it, but missed the include part...

This code will POST hq videos from Youtube at Ultimate Profile
Cool.
However, it's still missing a few things -- if the Subs-Aeva.php file isn't found, etc...
I edited my post above to fix it all, and it came up as unmodified after I submitted... Lol. I'm not doing a second time in a row! I'll post an updated version later.
Oh crap, in the end I'm simply updating your own changes:


global $modSettings, $sourcedir;
if (isset($modSettings['aeva_enable']) && @file_exists($sourcedir . '/Subs-Aeva.php'))
{
@include_once($sourcedir . '/Subs-Aeva.php');
if (function_exists('aeva_onposting'))
$_POST['comment'] = aeva_onposting($_POST['comment']);
}


LainaaWhat about all the videos posted PRIOR to such a fix?
I'm afraid you'll have to edit them...!
There is no way to fix this automatically, unless you write a script to submit all comments to aeva_onposting in a loop and save them.

LainaaAny way to get them right? Or maybe a preg_replace adding #hq-ws to them on the fly?
No... If I only had YouTube to modify...! But most of the sites in the site list use lookups. If they're disabled, then these sites won't work. The preg_replace would need to deal with them, too.
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

Akyhne

Lainaus käyttäjältä: akyhne - tammikuu 28, 2009, 12:48:29 IP
Lainaus käyttäjältä: Nao 尚 - tammikuu 28, 2009, 12:43:43 IP
@akyhne> What is it for?
That embeding in 5.2.52 doesn't work: http://www.simplemachines.org/community/index.php?topic=200401.msg1900359#msg1900359

Tried in a SMF 2.0 beta4 forum where 5.1.47 is installed. HQ Youtube worked ok. Then I uploaded 5.2.52 and now I have no HQ videos anymore.
I can't be the only one with this issue! The code &amp;ap=%2526fmt%3D18 is missing in AEVA 5.2.52

ryangruhn


Nao 尚

Thanks, Morpheus.

@akyhne> Okay, you mean viewing videos posted BEFORE the upgrade?
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

runebergen

#3031
Lainaus käyttäjältä: Nao 尚 - tammikuu 28, 2009, 01:43:55 IP

There is no way to fix this automatically, unless you write a script to submit all comments to aeva_onposting in a loop and save them.

No... If I only had YouTube to modify...! But most of the sites in the site list use lookups. If they're disabled, then these sites won't work. The preg_replace would need to deal with them, too.

No worries ;)

Its AWESOME for new postings comming, and the HD youtube is such a great thing, far better sound and image...


Thanks a lot for this great mod, and for the help on the Ultimate Profile fix...


Akyhne

Lainaus käyttäjältä: Nao 尚 - tammikuu 28, 2009, 02:07:35 IP
Thanks, Morpheus.

@akyhne> Okay, you mean viewing videos posted BEFORE the upgrade?
Of course I have tried EVERYTHING before posting here ;)

But then again I just tried to repost the video in the SMF 2 forum. Now it embeds in HQ, but in the SMF 1.1.7 it doesn't help to repost.

bear21211

Hi
I am running  SMF 1.1.7
I install this mod and get no errors. When someone trys to upload a link from photobucket for a video is Shows the video. If you click on the video to view it gives error that object has been removed. It seems to me it is linking to a .jpg and not the video.
If i just put the direct link in it shows the link as text and works fine. It just will not work while showing thumbnail of video. What am I doing wrong?

Thanks

Akyhne


bear21211


ryangruhn

Neo,

I think that's it.  The URL is www.currentsite.mysite.com [nofollow] rather than www.currentsite.com.  I need to figure out how to change this.

Akyhne

Lainaus käyttäjältä: bear21211 - tammikuu 28, 2009, 02:40:58 IP
no is a video of pouring a fish bait

What I was asking btw. the lines... do you have a link - the link the guy posted. Or else it's impossible to help you.

bear21211

excuse my ignorance I apologize. I am trying to learn this as I go.
here is the link he posted


bear21211

#3039
well it works here but will not work on my forum.

   URL=http://s101.photobucket.com/albums/m60/davehu/?action=view&current=59bf3b52.pbr][/IMG]http://i101.photobucket.com/albums/m60/davehu/th_59bf3b52.jpg[/IMG][/URL 

I removed the Brackets [ so the link does not work so you could see what was posted

this is where it sends me on my forum
http://i101.photobucket.com/albums/m60/davehu/59bf3b52.jpg

Advertisement: