31
Support / Re: Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header
« Last post by Michel68 on March 30, 2024, 01:37:01 am »Ahh I found my Post from 2013, this I need for SMF 2.1.4 Default Theme - Curve2
https://www.smfhacks.com/index.php/topic,7904.msg35814.html
Or can you please provide a mod? I would like to have as little manual intervention in the code as possible in the future, I'm getting older.
There is already something like this for the gallery, but I would like to see the random pictures above the forum.
https://www.smfhacks.com/index.php/topic,7904.msg35814.html
Or can you please provide a mod? I would like to have as little manual intervention in the code as possible in the future, I'm getting older.
Code: [Select]
// SMF Gallery Recent Images on Index
if (allowedTo('smfgallery_view'))
{
global $boardurl;
// Check if the gallery url has been set if not use the default
if(empty($modSettings['gallery_url']))
$modSettings['gallery_url'] = $boardurl . '/gallery/';
echo '
<table cellspacing="0" cellpadding="5" border="0" align="center" width="100%" class="tborder">
';
$rowlevel = 0;
$maxrowlevel = 4;
foreach ($context['gallery_recent'] as $picture)
{
if ($rowlevel == 0)
echo '<tr>';
echo '
<td align="center"><a href="' . $scripturl . '?action=gallery;sa=view;id=' .$picture['id_picture'] . '"><img src="' . $modSettings['gallery_url'] . $picture['thumbfilename'] . '" alt="" /></a><br />
<span class="smalltext">';
echo $picture['title'] . ' - ' . $picture['profilelink'] ;
if (!empty($modSettings['gallery_set_t_filesize']))
echo $txt['gallery_text_filesize'] . $picture['filesize'] . '<br />';
if (!empty($modSettings['gallery_set_t_date']))
echo $picture['date'] . '<br />';
echo '</span></td>';
if($rowlevel < ($maxrowlevel-1))
$rowlevel++;
else
{
echo '</tr>';
$rowlevel = 0;
}
}
if($rowlevel !=0)
{
echo '</tr>';
}
echo '</table>';
}
// End SMF Gallery Recent Images on Index
There is already something like this for the gallery, but I would like to see the random pictures above the forum.