News:

Wondering if this will always be free?  See why free is better.

Main Menu

Images in Sp with scroll bars

Started by swoodie, February 19, 2010, 04:25:38 AM

Previous topic - Next topic

swoodie

Hi all i had a issue with simpleportal 2.3.1 with a block recent attachment having scroll bars but i did the change from this advice


Re: Not resize image in block
« Reply #9 on: Yesterday at 08:42:21 PM »QuoteModifyRemoveQuote from: [SiNaN] on January 20, 2010, 11:41:42 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 a post at SP http://simpleportal.net/index.php?topic=3731.0 but not sure what is the issue

i did the above 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?


Nick Whetstone

Try asking on Simple Portal's dedicated support forum. They will be able to help you more than we will. :)
The artist formerly known as (Ha)²

Former Support Specialist

Please do not solicit support via PM. Here's why!

swoodie

hi i posted over at SP  here --->http://simpleportal.net/index.php?topic=4689.0  they advised it is a SMF bug i did the fix they said would fix it --->>> http://simpleportal.net/index.php?topic=4689.0

but i still get the error can any one advise what this would be causing all the errors thanks

Advertisement: