Customizing SMF > Modifications and Packages

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

<< < (1293/1374) > >>

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.

Liam_michael:
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

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

Liam_michael:

--- Quote from: Arantor on June 13, 2012, 12:27:16 PM ---There probably is but it's going to be performance intensive (read: very very slow)

--- End quote ---

But if we limit it to 3, it won't be that bad.

Do you know how it can be done?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version