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: 690
  • 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]

NEED HELP? If you're looking for support with Simple Portal, look no further than the Support Board!

Author Topic: problem of tumbnail not showing with the 'SMF Gallery' block?!  (Read 6551 times)

0 Members and 1 Guest are viewing this topic.

Offline Matt5L

  • Semi Newbie
  • *
  • Posts: 26
problem of tumbnail not showing with the 'SMF Gallery' block?!
« on: October 15, 2008, 08:53:22 PM »
Hey all, finally got the portal pretty much all sorted out and I love it.  Just another problem...

www.sn95forums.com/forum is a link to my portal, I have the 'Latest Gallery Image' block on the left side at the bottom.

I just get a 'red X' where the thumbnail should be. 

Anyone have any idea what is going on?!

Thanks in advance!

Offline ccbtimewiz

  • Hero Member
  • *****
  • Posts: 2185
  • Gender: Male
  • $("div.content:dd").hide();
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
  • EhPortal Version: None
Re: problem of tumbnail not showing with the 'SMF Gallery' block?!
« Reply #1 on: October 15, 2008, 09:00:02 PM »
I think it's your reference link.

"<img src="thumb_1_11_10_08_8_21_59.jpg" border="0">" doesn't seem like something valid. Perhaps check that?

Offline Matt5L

  • Semi Newbie
  • *
  • Posts: 26
Re: problem of tumbnail not showing with the 'SMF Gallery' block?!
« Reply #2 on: October 16, 2008, 01:41:34 PM »
well when I right click on the red X and see the location its:
http://www.sn95forums.com/forum/thumb_1_11_10_08_8_21_59.jpg

I have to have it point to:
http://www.sn95forums.com/forum/gallery/thumb_1_11_10_08_8_21_59.jpg

So what file do I edit?

Thanks
« Last Edit: October 16, 2008, 01:45:30 PM by Matt5L »

Offline ???1031

  • ... feel not as a dev at the moment ...
  • Comrade
  • *
  • Posts: 789
  • Gender: Male
  • Overworked <<
  • SMF Version: None
  • SP Version: None
Re: problem of tumbnail not showing with the 'SMF Gallery' block?!
« Reply #3 on: October 17, 2008, 12:28:28 AM »
well when I right click on the red X and see the location its:
http://www.sn95forums.com/forum/thumb_1_11_10_08_8_21_59.jpg

I have to have it point to:
http://www.sn95forums.com/forum/gallery/thumb_1_11_10_08_8_21_59.jpg

So what file do I edit?

Thanks
Do you become any errors on the log?
And which Version of SP your are using? :X

On Version 2.0.5 this should be fixed... i don't understand why it not work on your version...

Bye
DIN1031
Again... I'm having time problems...Normal Monday to Friday I'm at office from 6:00-16:00 (On my local time ;P).

Offline Matt5L

  • Semi Newbie
  • *
  • Posts: 26
Re: problem of tumbnail not showing with the 'SMF Gallery' block?!
« Reply #4 on: October 21, 2008, 08:48:21 PM »
Weird I have SimplePortal 2.0.4  installed, although I downloaded it off the download page.  How do I upgrade to 2.0.5, without losing all my blocks etc?

Thanks,
Matt

Offline ???1031

  • ... feel not as a dev at the moment ...
  • Comrade
  • *
  • Posts: 789
  • Gender: Male
  • Overworked <<
  • SMF Version: None
  • SP Version: None
Re: problem of tumbnail not showing with the 'SMF Gallery' block?!
« Reply #5 on: October 22, 2008, 12:31:42 AM »
Weird I have SimplePortal 2.0.4  installed, although I downloaded it off the download page.  How do I upgrade to 2.0.5, without losing all my blocks etc?

Thanks,
Matt
What do you mean by that? ;)
If you only mean you current setup of blocks or did you insert custom blocks into the SPFile?

If you upload the Version 2.0.5 and click on upgrade it will update all file to the lates Version and leave the current settings of your blocks.
If you've create custom blocks, i mean if you insert something in the SPortal Files than this changes will be lost after the upgrade.

Bye
DIN1031
Again... I'm having time problems...Normal Monday to Friday I'm at office from 6:00-16:00 (On my local time ;P).

Offline ibm450

  • Semi Newbie
  • *
  • Posts: 49
  • Gender: Male
    • yarrie health & safety
Re: problem of tumbnail not showing with the 'SMF Gallery' block?!
« Reply #6 on: October 24, 2008, 06:22:50 AM »
here is the code i used , create php block and pate this in

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['thumbfilename'] . '" ' : 'src="' . $modSettings['gallery_url'] . $gallery_picture['filename'] . '" height="250" width="250" ')  . ' border="0" /></a>
<br />' . $gallery_picture['title'] . '<span class="smalltext"><br />
' . $gallery_picture['desc'] . '<br />
<b>' . $txt['sp-grpictureviews'] . '</b> ' . $gallery_picture['views'] . '<br />';
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.';

just change the location of your gallery folder in here:

Code: [Select]
"><img ' . ($GD_Installed == true ?  'src="gallery/

Offline Matt5L

  • Semi Newbie
  • *
  • Posts: 26
Re: problem of tumbnail not showing with the 'SMF Gallery' block?!
« Reply #7 on: October 25, 2008, 05:54:11 PM »
awesome thanks  ;D

could you maybe edit that code so it displays 4 latest images, across?