Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 282
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 280
Total: 280

Author Topic: Align Download Screenshots verticaly, not horizontaly  (Read 4391 times)

0 Members and 1 Guest are viewing this topic.

Offline Draffi

  • Menu Editor Pro Customer
  • Jr. Member
  • *****
  • Posts: 76
    • View Profile
Align Download Screenshots verticaly, not horizontaly
« on: November 02, 2013, 07:14:46 pm »
Hello!

When i add a Download with (maybe) 4-5 Pictures, all of them are shown horizontaly.

How can i adjust them verticaly?

Thank you!

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Align Download Screenshots verticaly, not horizontaly
« Reply #1 on: November 02, 2013, 10:12:07 pm »
Would require an edit to the Downloads.template.php would need to add a <br> tag after each image shown.

Also need to get my pm about the Activity Stream mod package?
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Draffi

  • Menu Editor Pro Customer
  • Jr. Member
  • *****
  • Posts: 76
    • View Profile
Re: Align Download Screenshots verticaly, not horizontaly
« Reply #2 on: November 03, 2013, 06:47:00 am »
PM send!

Offline Draffi

  • Menu Editor Pro Customer
  • Jr. Member
  • *****
  • Posts: 76
    • View Profile
Re: Align Download Screenshots verticaly, not horizontaly
« Reply #3 on: November 03, 2013, 07:03:22 am »
Yes...good work with the Activity Stream-Mod !!!

Please can you give me more details? I was adding many <br> in different positions around the line 2100-2140, but no one is function.

Looks like this is more a table...

Thank you

Offline Draffi

  • Menu Editor Pro Customer
  • Jr. Member
  • *****
  • Posts: 76
    • View Profile
Re: Align Download Screenshots verticaly, not horizontaly
« Reply #4 on: November 03, 2013, 07:15:21 am »
Found the solution:

change line 2105 and 2106 in:
Code: [Select]
echo '<tr><center><a href="', $modSettings['down_url'], $picRow['filename'],'" id="thumb' . $picRow['ID_PICTURE'] . '" class="highslide" onclick="return hs.expand(this, {captionId: \'caption' . $picRow['ID_PICTURE'] . '\'})"><img src="',$modSettings['down_url'],$picRow['mediumfilename'],'" alt="', htmlspecialchars($picRow['title'],ENT_QUOTES),'" /></a>
<div class="highslide-caption" id="caption' . $picRow['ID_PICTURE'] . '"></div></center></tr>';

Please can you confirm, that this is OK?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Align Download Screenshots verticaly, not horizontaly
« Reply #5 on: November 03, 2013, 08:55:29 am »
That;s the area I would actually change the following
Find
Code: [Select]
if ($numberofPics > 0)
{
echo '<tr class="windowbg2"><td>
<table align="center">';
$rowlevel = 0;
while ($picRow = $smcFunc['db_fetch_assoc']($dbresult))
{
if ($rowlevel == 0)
echo '<tr class="windowbg2">';

// Show picture with link to view picture
echo '
<td align="center">';

if (!empty($picRow['mediumfilename']) && $modSettings['down_showmediumimg_on_download'] == 1 )
{
echo '<a href="', $modSettings['down_url'], $picRow['filename'],'" id="thumb' . $picRow['ID_PICTURE'] . '" class="highslide" onclick="return hs.expand(this, {captionId: \'caption' . $picRow['ID_PICTURE'] . '\'})"><img src="',$modSettings['down_url'],$picRow['mediumfilename'],'" alt="', htmlspecialchars($picRow['title'],ENT_QUOTES),'" /></a>
<div class="highslide-caption" id="caption' . $picRow['ID_PICTURE'] . '"></div>';
}
else
{
echo '<a href="',$scripturl,'?action=downloads;sa=viewpic&id=' . $picRow['ID_PICTURE'] . '">
<img src="',$modSettings['down_url'],$picRow['thumbfilename'], '" alt="',addslashes($picRow['title']),'" />
</a>';
}


echo '
</td>';

if ($rowlevel == 3)
{
echo '</tr>';
$rowlevel = 0;
}
else
$rowlevel++;

}

if ($rowlevel != 0)
echo '</tr>';

echo '</table></td></tr>';

}

Change to
Code: [Select]
if ($numberofPics > 0)
{
echo '<tr class="windowbg2"><td>
<table align="center">';
$rowlevel = 0;
while ($picRow = $smcFunc['db_fetch_assoc']($dbresult))
{
if ($rowlevel == 0)
echo '<tr class="windowbg2">';

// Show picture with link to view picture
echo '
<td align="center">';

if (!empty($picRow['mediumfilename']) && $modSettings['down_showmediumimg_on_download'] == 1 )
{
echo '<a href="', $modSettings['down_url'], $picRow['filename'],'" id="thumb' . $picRow['ID_PICTURE'] . '" class="highslide" onclick="return hs.expand(this, {captionId: \'caption' . $picRow['ID_PICTURE'] . '\'})"><img src="',$modSettings['down_url'],$picRow['mediumfilename'],'" alt="', htmlspecialchars($picRow['title'],ENT_QUOTES),'" /></a>
<div class="highslide-caption" id="caption' . $picRow['ID_PICTURE'] . '"></div>';
}
else
{
echo '<a href="',$scripturl,'?action=downloads;sa=viewpic&id=' . $picRow['ID_PICTURE'] . '">
<img src="',$modSettings['down_url'],$picRow['thumbfilename'], '" alt="',addslashes($picRow['title']),'" />
</a>';
}


echo '
</td>';

if ($rowlevel == 0)
{
echo '</tr>';
$rowlevel = 0;
}
else
$rowlevel++;

}

if ($rowlevel != 0)
echo '</tr>';

echo '</table></td></tr>';

}
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
4 Replies
5678 Views
Last post May 03, 2009, 08:26:28 am
by SMFHacks
0 Replies
3278 Views
Last post June 24, 2011, 09:39:47 pm
by Marcel
3 Replies
4383 Views
Last post September 29, 2011, 04:46:42 pm
by SMFHacks
6 Replies
5465 Views
Last post October 06, 2011, 01:15:58 am
by cosmicx
5 Replies
2930 Views
Last post October 03, 2018, 08:12:50 am
by jamesdeignan

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal