Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 12-31-2008, 11:51 AM
lasto lasto is offline
 
Join Date: Jan 2002
Posts: 1,514
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Problem with Pulling images from last 5 threads

I have a hack which pulls images from the last 5 latest threads which are made in a certain section.
Now the problem is this : When someone ups a preview the preview image is lets say for example : 250kb.
Now on my last 5 which is displayed on forum home in a set box the preview images are small sizes (100x80) but their size is the size (250kb).
And because of this there is some load because 5x pics means you have to download 1.25 meg just to view the last 5 preview images on forumhome.

Does anyone know a better way to do this so the smaller images which go on forumdisplay are actually smaller in size without affecting the actual pic in the thread.
Reply With Quote
  #2  
Old 12-31-2008, 01:57 PM
vbplusme vbplusme is offline
 
Join Date: Sep 2008
Location: CyberSpace
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sounds like the hack you are using ought to be rendering a thumbnail instead of working with the full size image. Both GD and Imagemagick have utilities to convert images to thumbnails and I'm guessing a hack has already been done that you could add to yours. I know for sure a few utilities are here that do image processing. May be you should check into something like that ?

HTH
Reply With Quote
  #3  
Old 12-31-2008, 02:35 PM
lasto lasto is offline
 
Join Date: Jan 2002
Posts: 1,514
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well it pulls the image and makes it appear in a box (5 of them) but if i grab the small shot it still exactly the same size as the orginal one in the thread except it made to look smaller on forum index.

How do i fix this problem - or does the hack have to be recoded from scratch ?
Reply With Quote
  #4  
Old 12-31-2008, 11:48 PM
vbplusme vbplusme is offline
 
Join Date: Sep 2008
Location: CyberSpace
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you have two different size images and they both produce the same size display then I think something is wrong with the hack. What hack is it ? I just did a youtube MOD to display a row of thumbnails in CMPS and they can not be mixed up between the full size and the thumbnail so I am guessing something is wrong with your hack that its grabbing the same image for both display or is configuring the image to be the same size no matter what it grabs.

HTH
Reply With Quote
  #5  
Old 01-01-2009, 04:23 PM
lasto lasto is offline
 
Join Date: Jan 2002
Posts: 1,514
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cant help there m8 as it was custom built.But i need to get this sorted ASAP so i can expand on displaying more pics from different sections.
Is anyone willing to take a look at the hack in question for me - it was pre-installed on my live board.
Reply With Quote
  #6  
Old 01-16-2009, 06:17 AM
lasto lasto is offline
 
Join Date: Jan 2002
Posts: 1,514
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

still having problems with this.

Instead of pulling the image by way way of :

threadthumb.php?thread=53890&size=230

mine is pulling them this way :

attachment.php?attachmentid=77743&stc=1&d=12320554 82

so size is big just for previews.Does anyone know how to fix this.Like i say its a custom hack so it has to be in the hack somewhere wont it.
Reply With Quote
  #7  
Old 01-16-2009, 06:32 AM
vbplusme vbplusme is offline
 
Join Date: Sep 2008
Location: CyberSpace
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry you are still having a problem with this but I have offered to take a look at the script and see if I can fix it but you haven't responded?
Reply With Quote
  #8  
Old 01-16-2009, 07:49 AM
lasto lasto is offline
 
Join Date: Jan 2002
Posts: 1,514
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry m8 i missed that.

will send u a pm now
Reply With Quote
  #9  
Old 01-17-2009, 10:24 AM
lasto lasto is offline
 
Join Date: Jan 2002
Posts: 1,514
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have the hack in question if someone is willing to take a look at it.
I have the product file and the templates in a txt file.

I need someone to see how it can be altered so instead of the images being big it uses thumbnail to make them smaller.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:04 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03952 seconds
  • Memory Usage 2,228KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete