Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - smap
1
The Pub / Embed code Aeva Albums
« on September 9th, 2014, 03:10 PM »
Hi

@Nao - hope there's no problem in me doing this, or that I'm inflicting any license. Just think this is a good idea that you can use to improve Aeva on Wedge.

Just did a really small "mod" on your splendid Aeva Media 1.4w package (I'm still using SMF). I always missed the BBCode per album, since it was only available per item.

On file /Themes/default/Aeva.template.php

where it was

Code: [Select]
function template_aeva_viewAlbum()
{
global $context, $txt, $galurl, $scripturl, $amSettings, $settings, $user_info;

add ", $boardurl" to the end
   
Code: [Select]
function template_aeva_viewAlbum()
{
global $context, $txt, $galurl, $scripturl, $amSettings, $settings, $user_info, $boardurl;


where it was

Code: [Select]
</form>' : '', '
</div>';

}

function template_aeva_unseen()

insert this code bellow the "</div>';"

Code: [Select]
// BBCode Albums
if ($amSettings['show_linking_code'])
{
$i = $context['aeva_items'];

echo '
<div class="titlebg" style="margin: 0 -4px 2px -4px; padding: 7px 0 5px 8px">
', $txt['aeva_embed_bbc'], ' :
</div>
<div class="info smalltext" style="margin: 0 -4px 2px -4px; padding: 7px 0 5px 8px" >
    <textarea name="textarea" onclick="return selectText(this);" readonly="readonly">';
foreach ($i as $value)
{
echo '[smg id=' . $value['id'] . ($value['type'] == 'image' ? '' : ' type=av').']'."\n";
}
echo'
</textarea>
</div>';


// Don't show html/direct links if the helper file was deleted
if ($amSettings['show_linking_code'] == 1)
{

echo '
<div class="titlebg" style="margin: 0 -4px 2px -4px; padding: 7px 0 5px 8px">
', $txt['aeva_embed_html'], ':
</div>
<div class="info smalltext" style="margin: 0 -4px 2px -4px; padding: 7px 0 5px 8px" >
<textarea name="textarea" onclick="return selectText(this);" readonly="readonly">';
foreach ($i as $value)
{
if (strpos($value['embed_object'], 'swfobject.embedSWF') === false)
echo
$value['type'] == 'image' ?
htmlspecialchars('<img src="' . $boardurl . '/MGalleryItem.php?id=' . $value['id'] . '" alt="' . $value['title'] . '" />'."\n") :
htmlspecialchars(trim(preg_replace('/[\t\r\n]+/', ' ', $value['embed_object']))."\n");
}
echo'
</textarea>
</div>';

echo '
<div class="titlebg" style="margin: 0 -4px 2px -4px; padding: 7px 0 5px 8px">
', $txt['aeva_direct_link'] , ':
</div>
<div class="info smalltext" style="margin: 0 -4px 2px -4px; padding: 7px 0 5px 8px" >
<textarea name="textarea" onclick="return selectText(this);" readonly="readonly">';
foreach ($i as $value)
{
if ($value['type'] != 'embed')
echo $boardurl . '/MGalleryItem.php?id=' . $value['id']."\n";
}
echo '
</textarea>
</div>';

}
}

Feel free to improve my poor code, if you think this is an interesting improvement to Aeva Media

screenshot

2
The Pub / Re: Posting from mobile, including Aeva
« on September 7th, 2014, 12:19 AM »
Regarding Aeva in mobile mode in Wedge I found out this that I consider a problem

When creating a new album, the submit button will be out of the screen, to able to see you have to expand the right tab



Also the box to write something about the album is not correctly centered

3
The Pub / Re: Posting from mobile, including Aeva
« on September 7th, 2014, 12:13 AM »
There's a problem with multi select on android (have no idea about iOS) as I could find out, even with a android phone that can support flash android won't allow more than one file to be select at a time.

Bellow you have an example screenshot of my tries with Piwigo at softaculous with a phone that supports flash, where i had to select file by file although using flash. You can try it yourself
Code: [Select]
https://demos6.softaculous.com/Piwigo/
user:admin
pass:pass




You can also read about the subject on this link
Code: [Select]
https://github.com/Widen/fine-uploader/issues/840
where they have the issue with HTML 5

Or on this link
Code: [Select]
https://github.com/Widen/fine-uploader/issues/840
you can try an uploader using jQuery. With a computer you can do multi select, but if you try with a phone you will only be able to select one file each time.

You can do the same type of test on this link

Code: [Select]
http://www.plupload.com/examples/

I know that you are going to say that it's possible to multi select files on android an send them for instance to Google+, or Instagram, or faceboook. Yes it's possible, but normally what you do is 1st select the files on the phone and then share them with the application that you want to upload the files to.

So using this last principle I tried ReGalAndroid
Code: [Select]
https://play.google.com/store/apps/details?id=net.dahanne.android.regalandroid
which is able to work with Piwigo and was able to do a multi Select and upload of the files to a Piwigo album.
4
The Pub / Re: Posting from mobile, including Aeva
« on September 6th, 2014, 11:54 PM »