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

Thanks for having an interest with our portal. If you have any requests for features, have a look at the Feature Requests board.

Author Topic: Not resize image in block  (Read 6709 times)

0 Members and 1 Guest are viewing this topic.

Offline trehol

  • Semi Newbie
  • *
  • Posts: 7
  • SMF Version: 2 RC1.2
  • SP Version: 2.3.1
Not resize image in block
« on: October 24, 2009, 06:32:52 PM »
I am sorry for bad English. Machine translation.
There was a problem: after an upgrade with 1.1.10 on 2.0RC1-2 pictures in the right block do not change the resize. Very much it is not beautiful.
http://laserforum.ru
I ask the help, in advance thanks.

http://simpleportal.net/index.php?topic=3260.msg20929#msg20929 not help
« Last Edit: October 24, 2009, 06:53:01 PM by trehol »

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Not resize image in block
« Reply #1 on: October 24, 2009, 07:46:18 PM »
I can't the issue on your website. The only images I can see, are being resized properly (in your articles).
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline trehol

  • Semi Newbie
  • *
  • Posts: 7
  • SMF Version: 2 RC1.2
  • SP Version: 2.3.1
Re: Not resize image in block
« Reply #2 on: October 24, 2009, 08:42:35 PM »
No articles. Images in right block. See screenshot.


Now in the right block of a portal as the last pictures, but to the utmost before are displayed. I.e. pictures have the size превью a forum, and not in pixel it is less that is ugly. Before picture upgrade were small and accurate.
Has not helped:
Resizes images on portal on\off
Cleaning of a cache by forum resources, service of files, check on errors forum resources
Manipulations with the size thumbs at a forum

Permission for guest edited. See link. http://laserforum.ru
« Last Edit: October 24, 2009, 09:17:07 PM by trehol »

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Not resize image in block
« Reply #3 on: October 25, 2009, 02:40:36 AM »
That is a 'Recent Image Attachments' block, correct?

Does the same problem occur in the default theme?
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline trehol

  • Semi Newbie
  • *
  • Posts: 7
  • SMF Version: 2 RC1.2
  • SP Version: 2.3.1
Re: Not resize image in block
« Reply #4 on: October 25, 2009, 07:09:56 AM »
Yes. You have correctly written.

Offline trehol

  • Semi Newbie
  • *
  • Posts: 7
  • SMF Version: 2 RC1.2
  • SP Version: 2.3.1
Re: Not resize image in block
« Reply #5 on: October 26, 2009, 02:09:42 PM »
Prompt please, what code snippet, in what file, is responsible for my problem?

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Not resize image in block
« Reply #6 on: October 28, 2009, 11:04:54 PM »
Make sure that the 'Resize images when showing under posts' setting is enabled, it can be found in your admin panel, under 'Forum' -> 'Attachments and Avatars ' -> 'Attachment Settings'.
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline trehol

  • Semi Newbie
  • *
  • Posts: 7
  • SMF Version: 2 RC1.2
  • SP Version: 2.3.1
Re: Not resize image in block
« Reply #7 on: October 31, 2009, 04:29:37 PM »
It is included. The result is not present.

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Not resize image in block
« Reply #8 on: January 20, 2010, 12:41:42 PM »
I think it's because your attachment thumbnails are quite large to fit in that block.

./Sources/PortalBlocks.php

Code: (Find) [Select]
$item['file']['image']['link']
Code: (Replace) [Select]
str_replace('<img', '<img width="100"', $item['file']['image']['link'])
You can change 100 in the code as you like. It's in pixels.
And slowly, you come to realize... It's all as it should be...

Offline swoodie

  • Jr. Member
  • **
  • Posts: 63
  • Gender: Male
Re: Not resize image in block
« Reply #9 on: February 18, 2010, 09:42:21 PM »
I think it's because your attachment thumbnails are quite large to fit in that block.

./Sources/PortalBlocks.php

Code: (Find) [Select]
$item['file']['image']['link']
Code: (Replace) [Select]
str_replace('<img', '<img width="100"', $item['file']['image']['link'])
You can change 100 in the code as you like. It's in pixels.
i did this to remove scroll bars in the block but now i get errors
http://www.xxxx.com/forum/index.php?action=dlattach;topic=131.0;attach=71;image8: Undefined index: is_guestFile: C:/xampp/htdocs/webpage/forum/Sources/Subs-Portal.php
Line: 257

 C:/xampp/htdocs/webpage/forum/Sources/Subs-Portal.php
Line: 203

 C:/xampp/htdocs/webpage/forum/Sources/Load.php
Line: 1820


 C:/xampp/htdocs/webpage/forum/Themes/default/languages/SPortal.english.php
Line: 119

would u have any idea why i get this error now?


Offline swoodie

  • Jr. Member
  • **
  • Posts: 63
  • Gender: Male
Re: Not resize image in block
« Reply #10 on: February 21, 2010, 07:42:36 PM »
any 1 have any idea?

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Not resize image in block
« Reply #11 on: February 27, 2010, 05:35:22 AM »
And slowly, you come to realize... It's all as it should be...

Offline swoodie

  • Jr. Member
  • **
  • Posts: 63
  • Gender: Male
Re: Not resize image in block
« Reply #12 on: April 20, 2010, 07:02:19 AM »
I think it's because your attachment thumbnails are quite large to fit in that block.

./Sources/PortalBlocks.php

Code: (Find) [Select]
$item['file']['image']['link']
Code: (Replace) [Select]
str_replace('<img', '<img width="100"', $item['file']['image']['link'])
You can change 100 in the code as you like. It's in pixels.


I have this issue again in RC3 but can't seem to find code in file 

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Not resize image in block
« Reply #13 on: April 20, 2010, 03:27:12 PM »
Looks like you already replaced $item['file']['image']['link'] with $item['file']['image']['thumb']?
 
So you can try
Code: (Find) [Select]
$item['file']['image']['thumb']
Code: (Replace) [Select]
str_replace('<img', '<img width="100"', $item['file']['image']['link'])
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline swoodie

  • Jr. Member
  • **
  • Posts: 63
  • Gender: Male
Re: Not resize image in block
« Reply #14 on: April 20, 2010, 04:35:50 PM »
thanks that worked removed scroll bars but removed the link to the post can it be done with keeping link as well as remove scroll bars ?.

it also filled up the error logs of about 80 pages with that change
« Last Edit: April 20, 2010, 04:42:26 PM by swoodie »

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Not resize image in block
« Reply #15 on: April 20, 2010, 07:20:07 PM »
I am sorry I did not look into it more deeply -- I only told you how to get from where you were to where you said you wanted to go.
 
First -- what error did you get from that change?
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline swoodie

  • Jr. Member
  • **
  • Posts: 63
  • Gender: Male
Re: Not resize image in block
« Reply #16 on: April 21, 2010, 01:46:56 AM »
Don't be sorry prob me eror

Looks like you already replaced $item['file']['image']['link'] with $item['file']['image']['thumb']?
 
So you can try
Code: (Find) [Select]
$item['file']['image']['thumb']
Code: (Replace) [Select]
str_replace('<img', '<img width="100"', $item['file']['image']['link'])

i put the change back in again but i only got 1 error this time
PortalBlocks.php
Line: 1598


but haven't had any other at this time i may have put a extra charter in by mistake, can i link it to the post  with this code added?
« Last Edit: April 21, 2010, 08:47:20 AM by swoodie »

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Not resize image in block
« Reply #17 on: April 21, 2010, 09:09:21 AM »
i put the change back in again but i only got 1 error this time
PortalBlocks.php
Line: 1598


but haven't had any other at this time i may have put a extra charter in by mistake, can i link it to the post  with this code added?

I feel a little lost. Please help me.
 
1) What change did you put in -- which code are you using?
2) What is the entier error message -- not just the line number?
3) I don't know what is on line 1598 of your PortalBlocks.php -- can you show the line?
4) To avoid typing errors, you can use the "Select" on code in a message, then copy and paste the code into your file.
 
5) In the end, it might be easier to save the images in a width that is a good fit for your block. This avoids the problem of editing SimplePortal code by hand.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline swoodie

  • Jr. Member
  • **
  • Posts: 63
  • Gender: Male
Re: Not resize image in block
« Reply #18 on: April 21, 2010, 08:57:32 PM »
Hi thanks for your help i resolved the issue i used this
<a href="' . $item['topic']['href'] . '">', str_replace('<img', '<img width="100"', $item['file']['image']['thumb']), '</a>

from topic http://simpleportal.net/index.php?topic=4118.msg30022#msg30022   post#31
so the image would still link to the post with no scroll bars on image


thanks again

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Not resize image in block
« Reply #19 on: April 22, 2010, 10:00:45 AM »
@swoodie -- I am glad I could help
 
@trehol -- Is your problem solved, or do you need more help?
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?