vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Wide image automatic resize for html and vB tags in posts - fixes template problems (https://vborg.vbsupport.ru/showthread.php?t=67743)

Steve St.Lauren 07-05-2005 03:50 AM

Quote:

Originally Posted by theinz
Steve,

This hack saved us a lot of trouble thanks so much!! It's working perfectly. I do have a question however. At the end of your install notes you say:

"That's it. Set the max_imagesize at the beginning of the each of the large edits and that will be your max image size."

Where can I set the max_imagesize?

Look in the hack text file and you'll see two instances of "$mag_imgsize=560;" - just change the 560 in those two instances to whatever size you want. Before the first one it says " // set max_imgsize to the max size you want pictures to be"

Steve St.Lauren 07-05-2005 03:51 AM

Quote:

Originally Posted by JohnBee
I installed this hack it worked nicely but for all our signatures that involved images
they were replaced with a message that said "Image link is broken"

any ideas what might cause this, is there a way to turn this off for signatures?

Where are those signature images coming from? The server they are on may be restricting your server from opening a file from their server which will cause that error. Give me a link to a page showing a signature doing that and I will take a look.

Steve St.Lauren 07-05-2005 03:52 AM

Quote:

Originally Posted by dansgts
can this work with 3.0.7???
i followed the instructions exactly and it dosent do anything.

You must have missed something - look back over the entire hack file and make sure that you did everything in it. It works fine on 3.0.7

Steve St.Lauren 07-05-2005 03:56 AM

Quote:

Originally Posted by mustang_lex
I heard that "client side" would be faster. Can we mod this hack to load the html page as its resizing the images.

I seen some sites that says "loading images" then the photo appears. Can we implement something like that. just so the page loads first then the photos.

I really love this hack over the others but I do understand people removing because of the lag.

No, there's no way to do that because the server has to have loaded the images so that it knows the size of the image so that it can decide if it needs to be resized or not. If it needs to be resized then it generates the html code to make that resize happen on the client side - if the html was already loaded there wouldn't be any way to modify that. The only other option would be to resize all pictures to the size you specify but that will make images smaller than that size look horrible. If you did that there would be no need to check the image size.

mustang_lex 07-05-2005 04:11 PM

This hack was so promising , and was my favorite. I don't know what happened, but 2 days after this hack was installed, it took longer and longer to load pages with images, so like many others i had to remove it and made another one work 100% (minus the text at the bottom as i liked about this one)

Thanks though. I hope someday this can be revised to be more friendly to larger image forums.

Steve St.Lauren 07-05-2005 04:23 PM

Quote:

Originally Posted by mustang_lex
This hack was so promising , and was my favorite. I don't know what happened, but 2 days after this hack was installed, it took longer and longer to load pages with images, so like many others i had to remove it and made another one work 100% (minus the text at the bottom as i liked about this one)

Thanks though. I hope someday this can be revised to be more friendly to larger image forums.

The more images you have on a post the longer it will take because every image has to be loaded. If there are images on a server that is down or that the server blocks access to it will take even longer because it will have to hit the timeout before continuing. If you have a forum where people put LOTS of images in each thread then it isn't going to work out well for you until I (or someone else) have time to add the optimization recommended by BRC2 above. It'd take me most of a day probably and I just don't have the time right now :( .

mustang_lex 07-06-2005 12:00 PM

Quote:

Originally Posted by Steve St.Lauren
The more images you have on a post the longer it will take because every image has to be loaded. If there are images on a server that is down or that the server blocks access to it will take even longer because it will have to hit the timeout before continuing. If you have a forum where people put LOTS of images in each thread then it isn't going to work out well for you until I (or someone else) have time to add the optimization recommended by BRC2 above. It'd take me most of a day probably and I just don't have the time right now :( .

Don't sweat man, you got a top family priority, I hope to have your experience someday with my wife to be

tommyxv 07-07-2005 05:55 AM

It seems to work great, but on some large images, i get, Image link broken. If i got to edit the post, the images are there, but wont show on the forum. Any ideas?? Maybe it cant handle large images?

Images are 1280 x 960 and were already posted before the hack. I tried to edit the post and redo the links but still no good.

????

Actually, its just images that this one user is posting. Some of smaller images coming from cardomain, they show Image Link Broken too.

Not sure why... hrmmm.

mustang_lex 07-07-2005 12:28 PM

Your server maybe timing out before the images get resized by the server

tommyxv 07-08-2005 02:46 PM

Well, I rehosted the images myself as a test and they came up fine. It was just with this one user. Large or small images, but its fixed now and working great.

Awesome Hack!


All times are GMT. The time now is 06:25 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01362 seconds
  • Memory Usage 1,747KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete