0 Members and 1 Guest are viewing this topic.
global $sourcedir, $user_info, $ID_MEMBER, $context, $txt, $galurl, $galurl2, $scripturl, $settings, $db_prefix;// loadLanguage('Aeva');// @include_once($sourcedir . '/Aeva-Subs.php');// echo aeva_listItems(aeva_getMediaItems(0, 3, 'RAND()'), false, '', 1); require_once($sourcedir . '/Aeva-Subs.php');// loadMGal_Settings(); loadLanguage('Aeva');// Random=0 or Latest = 1 $blocktype = 1;// "thumb" or "preview" $blockimagetype = preview;// $blockFolder = $boarddir . '/Themes/default/aeva';// $blockItemsFile = $scrollerFolder . '/imageScrollerItems.xml';// How many pictures $blockMaxItems = 1; $blockoffset = 0;// width of block in percent $boxwidth = 100;if ($blocktype = 1 ) {//Random$items = aeva_getMediaItems($blockoffset, $blockMaxItems, 'rand()', true, array(), 'm.type = "image" AND a.access LIKE "%-1%" AND a.passwd=""');}else {//Latest$items = aeva_getMediaItems($blockoffset, $blockMaxItems, 'm.id_media DESC', true, array(), 'm.type = "image" AND a.access LIKE "%-1%" AND a.passwd=""');}echo ' <div style="align: center;"> <div class="smalltext" style="text-align: center; width: 100% ; margin-left: auto ; margin-right: auto ;"></div>'; foreach($items as $item) echo ' <div class="smalltext" style="display: inline; padding: 5px;float:left;text-align:center; align:center; width: 100%; margin-left: auto ; margin-right: auto ;"> <a href="',$galurl,'sa=item;id=',$item['id'],'">',$item['title'],'</a><br /> <a href="',$galurl,'sa=media;id=',$item['id'],'" title="',$item['title'],'" class="hs " onclick="return hs.expand(this);"><img alt="" src="',$galurl,'sa=media;id=',$item['id'],';',$blockimagetype,'" alt="" /></a><br /> ',$txt['aeva_views'],' : ',$item['views'],'<br /> ',$txt['aeva_posted_by'],' : <a href="',$scripturl,'?action=profile;u=',$item['poster_id'],'">',$item['poster_name'],'</a><br /> ',$txt['aeva_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>';echo '<br style="clear:both;" /></div>';
Got it working (rebuilt all thumbs and preview files in AEVA - now I get an error message for each thumb or preview that loads when anyone hits the frontpage :http://www........../index.php?8: Use of undefined constant preview - assumed 'preview'File: /home3/......./public_html/........../Themes/default/PortaMx/PortaMx.template.php (portamx_below sub template - eval?)Line: 15Any help would be great - I love the gallery vertically using the thumbs cheers
global $sourcedir, $user_info, $ID_MEMBER, $context, $txt, $galurl, $galurl2, $scripturl, $settings, $db_prefix;// loadLanguage('Aeva');// @include_once($sourcedir . '/Aeva-Subs.php');// echo aeva_listItems(aeva_getMediaItems(0, 3, 'RAND()'), false, '', 1); require_once($sourcedir . '/Aeva-Subs.php');// loadMGal_Settings(); loadLanguage('Aeva');// Random=1 or Latest = 0 $blocktype = 1;// "thumb" or "preview" $blockimagetype = preview;// $blockFolder = $boarddir . '/Themes/default/aeva';// $blockItemsFile = $scrollerFolder . '/imageScrollerItems.xml';// How many pictures $blockMaxItems = 1; $blockoffset = 0;// width of block in percent $boxwidth = 100;if ($blocktype = 1 ) {//Random$items = aeva_getMediaItems($blockoffset, $blockMaxItems, 'rand()', true, array(), 'm.type = "image" AND a.access LIKE "%-1%" AND a.passwd=""');}else {//Latest$items = aeva_getMediaItems($blockoffset, $blockMaxItems, 'm.id_media DESC', true, array(), 'm.type = "image" AND a.access LIKE "%-1%" AND a.passwd=""');}echo ' <div style="align: center;"> <div class="smalltext" style="text-align: center; width: 100% ; margin-left: auto ; margin-right: auto ;"></div>'; foreach($items as $item) echo ' <div class="smalltext" style="display: inline; padding: 5px;float:left;text-align:center; align:center; width: 100%; margin-left: auto ; margin-right: auto ;"> <a href="',$galurl,'sa=item;id=',$item['id'],'">',$item['title'],'</a><br /> <a href="',$galurl,'sa=media;id=',$item['id'],'" title="',$item['title'],'" class="hs " onclick="return hs.expand(this);"><img alt="" src="',$galurl,'sa=media;id=',$item['id'],';',$blockimagetype,'" alt="" /></a><br /> ',$txt['aeva_views'],' : ',$item['views'],'<br /> ',$txt['aeva_posted_by'],' : <a href="',$scripturl,'?action=profile;u=',$item['poster_id'],'">',$item['poster_name'],'</a><br /> ',$txt['aeva_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>';echo '<br style="clear:both;" /></div>';
global $sourcedir, $user_info, $ID_MEMBER, $context, $txt, $galurl, $galurl2, $scripturl, $settings, $db_prefix; require_once($sourcedir . '/Subs-MGallery.php'); loadMGal_Settings(); if(loadlanguage('MGallery') == false) loadLanguage('MGallery', 'english');// Random=0 or Latest = 1 $blocktype = 1;// "thumb" or "preview" $blockimagetype = preview;// How many pictures $blockMaxItems = 1; // offset the array dont change $blockoffset = 0;if ($blocktype = 1 ) {//Random$items = getMediaItems($blockoffset, $blockMaxItems, 'rand()', true, array(), 'm.type = "image" AND a.access LIKE "%-1%" AND a.passwd=""');}else {//Latest$items = getMediaItems($blockoffset, $blockMaxItems, 'm.id_media DESC', true, array(), 'm.type = "image" AND a.access LIKE "%-1%" AND a.passwd=""');}echo ' <div style="align: center;"> <div class="smalltext" style="text-align: center; width: 100% ; margin-left: auto ; margin-right: auto ;"></div>'; foreach($items as $item) echo ' <div class="smalltext" style="display: inline; padding: 5px;float:left;text-align:center; align:center; width: 100%; margin-left: auto ; margin-right: auto ;"> <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'],';',$blockimagetype,'" 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=viewalbum;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>';echo '<br style="clear:both;" /></div>';