Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support Image Resize Doesn't Work
1 2
William
Posted on 15 Jun 2010, 13:04:17

Access: Member
Total Posts: 38
Joined: 2010-02-12

Hello Chris, or anyone that can help :)

Ive tried to get the image max heigh and max width includes to work, however they dont. I have the include on my wifes blog site and we just created a post with an image attached (via URL) and it still blows out the page, def. NOT resizing the image as it should.

Please help.

Link to Blog
Thank you in advance,
William Garrison
#2493
Rayc
Posted on 15 Jun 2010, 13:44:53

Access: Member
Total Posts: 74
Joined: 2010-06-13

I'm not Chris, but have a look here:

Known Bugs and Fix

Post back if that works.

-RayC
#2494
William
Posted on 15 Jun 2010, 13:55:47

Access: Member
Total Posts: 38
Joined: 2010-02-12

I just tried that. When I replaced the bbparser.php file it shut down the blog completely. Made it not viewable anymore.
#2495
Last edited by William at 2010-06-15 13:59:23 Reason:
Chris
Posted on 15 Jun 2010, 19:08:13

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

The link that Rayc linked to is the one that fixed the problem. Kind of worrying that you said it completely killed your blog? Can you link me to it so I can see the problem?
#2497
Rayc
Posted on 16 Jun 2010, 02:44:52

Access: Member
Total Posts: 74
Joined: 2010-06-13

FWIW, I just tried the modification and is seems to work fine.

I just edited my existing bbparser.php file, changing one instance of $adminpath to ADMINPATH, rather than replacing with the new file, as I have other mods done as well.

Then I changed my 'include' statemtent to

Code:
<?php
$image_maxheight 
= ###;
$image_maxwidth = ###;
include '../../n13news/index.php';
?>


where ### is my desired height and width in pixels.

This raises a couple of questions. This thread mentions that resized images will be linked to a full size image. This is not happening in my case. Is there a setting or template rule needed for this?

Also, if the images do not open up in a "lightbox", what is the lightbox.js file for? EDIT -- I see: it is used in the Admin area when looking at images in the "Image Uploads" section.

-RayC
#2501
Last edited by Rayc at 2010-06-16 02:57:01 Reason:
William
Posted on 16 Jun 2010, 14:12:13

Access: Member
Total Posts: 38
Joined: 2010-02-12

Its still not working for me. I have updated the system to ver.3.6 and have updated thebbparser. I have no idea how to change any adminpath. but regardless the resize still doesnt work.

Please advise.
#2503
Chris
Posted on 16 Jun 2010, 16:28:04

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

How are you adding the images? images can only be resized if you add it using bbcode, so something like[img="asdsad"][/img]. If you add an image manually using HTML the system won't be able to resize it for you.
#2507
William
Posted on 16 Jun 2010, 21:29:47

Access: Member
Total Posts: 38
Joined: 2010-02-12

Quote:
How are you adding the images? images can only be resized if you add it using bbcode, so something like[img="asdsad"][/img]. If you add an image manually using HTML the system won't be able to resize it for you.

@Chris

I went into the system and copied her direct post. (below)

[img="http://fc06.deviantart.net/fs12/f/2006/329/4/1/leap_of_faith_by_nickoreal.jpg"][/img]
#2510
Last edited by William at 2010-06-16 21:30:16 Reason:
Chris
Posted on 16 Jun 2010, 21:36:36

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Just tested this and it resized the image as expected

http://dev.network-13.com/test.php

One thing you can try is if you edit bbparser.php, on line 29~ you'll see this

Code:
list($width, $height, $type, $attr) = @getimagesize("$str");


If you change that to

Code:
list($width, $height, $type, $attr) = getimagesize("$str");


Then view the blog post to see if it gives any error messages. The @ symbol in front suppresses error messages so if the server is unable to grab the image and resize it by removing the @ symbol it will hopefully give an error.
#2511
William
Posted on 16 Jun 2010, 21:42:52

Access: Member
Total Posts: 38
Joined: 2010-02-12

No luck. I didnt even get an error code. Whats that mean? lol. Wow this is frustrating. I feel like there is something simple that I am not doing. I have used this on another site before it it resized the image. But for whatever reason this one just doesnt work.
#2512
1 2
Network-13.com © 2013