Customizing SMF > Modifications and Packages

General support topic for Aeva Media (Latest release: July 28, 2010)

<< < (1288/1411) > >>

ivanr:
I have uninstalled the SMF Gallery and installed Aeva Media V1.4 in it's place.

I cannot get the media webpage up. I have found the old gallery button in my:
/forum/Themes/UKVGA/index.template.php

in this file I have the line:

// Show the [gallery] button.
   if ($context['user']['is_logged'])
   {
   echo '
            <a href="', $scripturl, '?action=gallery">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/gallery.gif" alt="Gallery" style="margin: 2px 0;" border="0" />' : 'Gallery'), '</a>', $context['menu_separator'];
   }

What do I need to change here to get Aeva Gallery working or should this line go elsewhere some where in my directory?

Kindred:
that line has nothing to do with AEVA. You did not fully uninstall SMF Gallery.
You will have to add the AEVA menu item... and ensure that all the other code edits for aeva got made

ivanr:

--- Quote from: Kindred on June 12, 2012, 02:11:31 PM ---that line has nothing to do with AEVA. You did not fully uninstall SMF Gallery.
You will have to add the AEVA menu item... and ensure that all the other code edits for aeva got made

--- End quote ---
Well SMF told me that it was all uninstalled, anyway I got it working by changing action=gallery to action=media and the media page came up  :) as all the Avea script got written to all the correct areas in the forum.

Shuban:
Is there a way of adding a php block to a portal that displays similar videos added to aeva to the topic title of a thread?

For instance, if the topic title is "Beautiful Cars"... the block displays all videos (maximum 3) with the keyword "Beautiful" or "Car" in its title.

I found this block, but this only displays random videos... I need the videos to match the title of the thread...


--- Code: ---global $sourcedir, $context, $txt, $galurl, $scripturl, $settings;

require_once($sourcedir . '/Subs-MGallery.php');
loadMGal_Settings();

if (loadlanguage('MGallery') == false)
  loadLanguage('MGallery', 'english');

$items = getMediaItems(0, 2, 'rand()');

echo '
<center><table border="0">
  <tr>';

foreach ($items as $item)
  echo '
    <td>
      <div class="smalltext" style="text-align: center; line-height: 1.4em; border: 1px #000000 solid; padding: 5px;">
      <a href="',$galurl,'sa=item;id=',$item['id'],'">',$item['title'],'</a><br />
      <a href="',$galurl,'sa=item;id=',$item['id'],'"><img alt="" src="',$galurl,'sa=media;id=',$item['id'],';thumb" alt="" /></a><br />
      ',$txt['mgallery_views'],': ',$item['views'],'<br />
      ',$txt['mgallery_posted_by'],': <a href="',$scripturl,'?action=profile;u=',$item['poster_id'],'">',$item['poster_name'],'</a><br />
      ',$txt['mgallery_in_album'],': <a href="',$galurl,'sa=album;id=',$item['id_album'],'">',$item['album_name'],'</a>
      ',$item['is_new'] ? '<br /><img alt="" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" border="0" />' : '','
      </div>
    </td>';
echo '
  </tr>
</table></center>';
--- End code ---

http://www.tinyportal.net/index.php?topic=27392.0

:
There probably is but it's going to be performance intensive (read: very very slow)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version