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
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?
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.
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.
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.
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)
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.
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.