Thread: Major Additions - Links and Downloads Manager
View Single Post
  #1340  
Old 10-05-2008, 08:05 PM
vbboarder's Avatar
vbboarder vbboarder is offline
 
Join Date: Jun 2008
Location: Silicon Valley, CA
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the links_imgpage template. I tested Shadowbox with 6 image filetypes - no problems with jpg, png, & gif in IE7 & Firefox 2.

Image Bug: My current image processing library doesn't create thumbnails for bmp, tif, psd images. So I manually created jpg, png, gif thumbnails and added it to my bmp, tif, psd image entries. When I click on the magnifier, the Shadowbox appears but it shows the thumbnail, not the full-size bmp, tif, psd image. I know browsers can show bmp images, but can they show tif & psd images? If not, can you disable the magnifier link for them? If yes, can you enable Shadowbox for them?

links_imgpage Bug: There are some minor bugs with this template:
1. Image is not centered aligned for IE7, both horizontally & vertically.
2. No scrollbars in IE7 so larger images are cut off.
3. Template background/ "canvas" shows for smaller images.

Template Fix: Here's the template that I'm using:
1. Fixes horizontal alignment in IE7; still can't vertically align (even if I use tables).
2. Scrollbars in IE7 shows so larger images can be fully seen.
3. Template background/ "canvas" is minimized for smaller images.
HTML Code:
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title></title>
$headinclude
</head>
<body>
<div style="width: 100%; height: 100%; text-align: center; vertical-align: middle;">
    <img border="0" src="$pic_source" alt="" />
</div>
</body>
</html>
.
Image Tip: Currently, the plugin sets the image template width & height to the link_imagemagsize setting. This causes unnecessary scrollbars to appear for images equaling that size, probably because Shadowbox adds some margin or padding.
Solution: to show the full image without unnecessary scrollbars, add about 60 pixels to shadowbox_imgmag_width & shadowbox_imgmag_height in LDM settings. For example, my link_imagemagsize is set to 1024, so I used 1080.

Slow Image Loading: The images load slower than flash videos in Shadowbox. I have images about 1.5 Mb and flash about 15 Mb. Although the flash video is 10x larger, it loads up to 2x faster (~2 secs testing locally, whereas 1.5 Mb images can take up to ~4 secs - IE7 slower than Firefox 2, surprise.... surprise). Is it because the flash video is streamed but the image requires to be fully loaded? If that's the case, can you use the "lowsrc" attribute for <img> to load the thumbnail first?

Missed Click: Ok maybe I'm clumsy with my clicks , but can you make the 'X' button to close Shadowbox larger? When you implement the Next & Previous buttons for the gallery feature, please make them larger also.

Anticipating...: I'm looking forward to the gallery features & 'naked' players/ images that you'll be implementing in the next version of the Shadowbox plugin. I'll be glad to test it for you!
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01218 seconds
  • Memory Usage 1,776KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete