collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 207
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

Welcome to SimplePortal.net! You can download SimplePortal from the Downloads Area!

Author Topic: Image in Gallery box too small  (Read 5427 times)

0 Members and 1 Guest are viewing this topic.

Offline simplelynoob

  • Semi Newbie
  • *
  • Posts: 21
Image in Gallery box too small
« on: December 01, 2008, 01:50:16 AM »
Hi, am having SMF117 / SP211 / Default core theme.
Happly spend my weekend re-install everything, welcoming SP211.
Everything works super fine. Many thanks for all the new features,
now looks very professional. (link removed, guess not necessary).

SP left Width was set to 265, youtube fill-in very nicely after
adjustment to it code provided. I have three boxes on my left
very nicely aligned.

Only thing now is the thumbnail images in both
SMF Gallery Pro and Media Gallery, oddly out off proportion.
They are a littel tiny compared to the rest.

Any way to adjust the thumbnail size to fill up
the entire space in the box?

Thanks
« Last Edit: December 01, 2008, 04:12:38 AM by simplelynoob »
I am always in fear of changing theme

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Image in Gallery box too small
« Reply #1 on: December 02, 2008, 07:35:36 AM »
I believe original thumbnail images are used there. So not something related to SP probably. I guess you can shrink them by editing the block code, but images' quality will dramatically decrease.
And slowly, you come to realize... It's all as it should be...

Offline ionia

  • Newbie
  • Posts: 4
Re: Image in Gallery box too small
« Reply #2 on: December 02, 2008, 08:30:08 PM »
Thanks for your reply, I wanted it expand, not shrink.
Anyway, so matter, getting used to it now.

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Image in Gallery box too small
« Reply #3 on: December 03, 2008, 02:52:22 AM »
Well, same is for expand; unless you create new thumbnails, which would require a lot of work.
And slowly, you come to realize... It's all as it should be...

Offline ibm450

  • Semi Newbie
  • *
  • Posts: 49
  • Gender: Male
    • yarrie health & safety
Re: Image in Gallery box too small
« Reply #4 on: December 03, 2008, 03:16:35 AM »
i must say the new gallery pic is abit too small, this is what i use, create php block and insert the below code. hope this helps

yarriesafety.mine.nu





Code: [Select]
global $modSettings, $context, $user_info, $scripturl, $sc, $ID_MEMBER, $db_prefix, $txt, $func;

$GD_Installed = function_exists('imagecreate');

$dbresult = db_query("
SELECT p.ID_PICTURE
FROM {$db_prefix}gallery_pic as p
ORDER BY ID_PICTURE DESC
LIMIT 1", __FILE__, __LINE__);

$max = mysql_fetch_assoc($dbresult);
$check = 0;

while($check == 0) {

$idpic = rand(1, $max['ID_PICTURE']);

$dbresult = db_query("
SELECT p.ID_PICTURE, p.commenttotal, p.filesize, p.views, p.thumbfilename, p.filename, p.height, p.width, p.title, p.ID_MEMBER,
m.memberName, m.realName, p.date, p.description
FROM {$db_prefix}gallery_pic as p
LEFT JOIN {$db_prefix}members AS m on ( p.ID_MEMBER = m.ID_MEMBER)
WHERE p.approved = 1 AND p.ID_PICTURE = $idpic
ORDER BY ID_PICTURE DESC", __FILE__, __LINE__);
$gallery_picture = array();
while($row = mysql_fetch_assoc($dbresult))
{

$row['description'] = strip_tags(strtr(parse_bbc($row['description'], 1), array('<br />' => '')));
if ($func['strlen']($row['description']) > 128)
$row['description'] = $func['substr']($row['description'], 0, 60) . '<a href="' . $scripturl . '?action=gallery;sa=view;id=' . $row['ID_PICTURE'] . '">...</a>';

$gallery_picture = array (
'id' => $row['ID_PICTURE'],
'title' => $row['title'],
'desc' => $row['description'],
'views' => $row['views'],
'senderid' => $row['ID_MEMBER'],
'sendername' => $row['realName'],
'thumbfilename' => $row['thumbfilename'],
'filename' => $row['filename']
);
}

mysql_free_result($dbresult);

if(!empty($gallery_picture) || empty($max))
$check = 1;
}

if (!empty($gallery_picture)) {
echo '<div align="center">';
echo '
<a href="' . $scripturl . '?action=gallery;sa=view;id=' . $gallery_picture['id'] . '"><img ' . ($GD_Installed == true ?  'src="gallery/' . $modSettings['gallery_url'] . $gallery_picture['filename'] . '" ' : 'src="' . $modSettings['gallery_url'] . $gallery_picture['filename'] . '" height="90" width="90" ')  . ' border="3" /></a>
<br />' . $gallery_picture['title'] . '<span class="smalltext"><br />
' . $gallery_picture['desc'] . '<br />
<b>' . $txt['sp-grpictureviews'] . '</b> ' . $gallery_picture['views'] . '<br />';

echo '<li><a href="', $scripturl, '?action=register">' , $txt[97] , '</a></li>';

if ($gallery_picture['sendername'] != '')
echo '<b>' . $txt['sp-grpicturesender'] . '</b> <a href="' . $scripturl . '?action=profile;u=' . $gallery_picture['senderid'] . '">'  . $gallery_picture['sendername'] . '</a><br />';
else
echo '<b>' . $txt['sp-grpicturesender'] . '</b> ' . $txt['sp-grpictureguest'] . '<br />';
echo '</span>';



echo '</div>';




}
else
echo 'There is no picture in the gallery.';

//thumbfilename'


 8)

Offline ibm450

  • Semi Newbie
  • *
  • Posts: 49
  • Gender: Male
    • yarrie health & safety
Re: Image in Gallery box too small
« Reply #5 on: December 03, 2008, 03:17:45 AM »
Hi, am having SMF117 / SP211 / Default core theme.
Happly spend my weekend re-install everything, welcoming SP211.
Everything works super fine. Many thanks for all the new features,
now looks very professional. (link removed, guess not necessary).

SP left Width was set to 265, youtube fill-in very nicely after
adjustment to it code provided. I have three boxes on my left
very nicely aligned.

Only thing now is the thumbnail images in both
SMF Gallery Pro and Media Gallery, oddly out off proportion.
They are a littel tiny compared to the rest.

Any way to adjust the thumbnail size to fill up
the entire space in the box?

Thanks


whats your website link?

Offline simplelynoob

  • Semi Newbie
  • *
  • Posts: 21
Re: Image in Gallery box too small
« Reply #6 on: December 03, 2008, 05:47:26 AM »



whats your website link?
[/quote]

Mine, a very plain site, www.viewonscreen.com compared to yours.
Like the weather report and the custom theme, lovely.
Thanks ibm450. for your kind contribution, will use your code, probably this weekend.
I am always in fear of changing theme

Offline ibm450

  • Semi Newbie
  • *
  • Posts: 49
  • Gender: Male
    • yarrie health & safety
Re: Image in Gallery box too small
« Reply #7 on: December 05, 2008, 10:06:29 PM »
no worries, thanks for your input,


Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Image in Gallery box too small
« Reply #8 on: December 20, 2008, 07:12:33 AM »
Any updates?
And slowly, you come to realize... It's all as it should be...

Offline simplelynoob

  • Semi Newbie
  • *
  • Posts: 21
Re: Image in Gallery box too small
« Reply #9 on: December 24, 2008, 08:05:50 AM »
After many try & error, finally discovered the thumbnail setting in Gallery actually can determine the
size of the display image. Changing the thumbnail setting in the Setting menu did not able to re-size
immediately and even not after, unless new photos were uploaded to effect the changes. Now it is resolved.

Merry Christmas and Happy New Year 2009 to each and everyone reading this thread.  :thumbsup:
I am always in fear of changing theme

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Image in Gallery box too small
« Reply #10 on: January 01, 2009, 08:32:57 AM »
For you too.
And slowly, you come to realize... It's all as it should be...