SimplePortal
Support => English Support => Topic started by: trehol 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
-
I can't the issue on your website. The only images I can see, are being resized properly (in your articles).
-
No articles. Images in right block. See screenshot.
(http://s45.radikal.ru/i110/0910/3b/26c51129f79bt.jpg) (http://radikal.ru/F/s45.radikal.ru/i110/0910/3b/26c51129f79b.jpg.html)
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
-
That is a 'Recent Image Attachments' block, correct?
Does the same problem occur in the default theme?
-
Yes. You have correctly written.
-
Prompt please, what code snippet, in what file, is responsible for my problem?
-
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'.
-
It is included. The result is not present.
-
I think it's because your attachment thumbnails are quite large to fit in that block.
./Sources/PortalBlocks.php
$item['file']['image']['link']
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 think it's because your attachment thumbnails are quite large to fit in that block.
./Sources/PortalBlocks.php
$item['file']['image']['link']
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?
-
any 1 have any idea?
-
It's an SMF bug:
http://simpleportal.net/index.php?topic=3839.msg24415#msg24415
-
I think it's because your attachment thumbnails are quite large to fit in that block.
./Sources/PortalBlocks.php
$item['file']['image']['link']
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
-
Looks like you already replaced $item['file']['image']['link'] with $item['file']['image']['thumb']?
So you can try
$item['file']['image']['thumb']
str_replace('<img', '<img width="100"', $item['file']['image']['link'])
-
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
-
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?
-
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
$item['file']['image']['thumb']
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?
-
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.
-
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
-
@swoodie -- I am glad I could help
@trehol -- Is your problem solved, or do you need more help?