View Single Post
  #566  
Old 05-21-2009, 09:49 PM
Stubbed's Avatar
Stubbed Stubbed is offline
 
Join Date: Dec 2007
Location: New Zealand
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I use this script purely for ncode, but to allow users to customise the height and width of the images that they want displayed. It works perfectly on 3.8.2 for this, APART from one small bug, inline attached images. Rather than displaying a thumbnail, I get this:

Quote:
rel="Lightbox"?attachmentid=3328&thumb=1&d=1241928 178" class="thumbnail" border="0" alt="Click image for larger version Name: premierecs3.png Views: 16 Size: 45.9 KB ID: 3328" style="margin: 2px" />
The html looks like this:

Code:
<a href="/forum/attachments/pub/3328d1241928178-hd1080i-video-editing-program-premierecs3dtpng" rel="Lightbox_1191788" id="attachment3328" >rel="Lightbox"?attachmentid=3328&amp;thumb=1&amp;d=1241928178" class="thumbnail" border="0" alt="Click image for larger version

Name:    premierecs3.png
Views:    16
Size:    45.9 KB
ID:    3328" style="margin: 2px" /></a>
If I could clean that up, I'd be 100% stoked. Will have a look into it myself and see if I can figure out what is going on.

*edit*

voter - I should have read your post first... I see what's going on now. Will have a play.

HTML needs to be:

Code:
<a href="/forum/attachments/pub/3328d1241928178-hd1080i-video-editing-program-premierecs3dtpng" rel="Lightbox_1191788" id="attachment3328" ><img src="/forum/attachments/pub/3328d1241928178t-hd1080i-video-editing-program-premierecs3dtpng" class="thumbnail" border="0" alt="HD1080i Video Editing Program-premierecs3dtpng" style="margin: 2px" /></a>
For the same block.

*edit 2*

Alright - Sorted. This is what to do on 3.8.2 if you want it to work properly. Note, that I don't want to use the "flash" replacement Lightboxes, and to be honest I highly doubt any of your users would either, all I wanted was someway to stop my theme from being broken, but not at the expensive of people with large monitors only being able to see tiny images. These are the options I use:

Image Resizer Enabled: Yes
Default Resize Mode: Enlarge in same window
Javascript downsize mode: Ncode
--Colours, just what ever---
Highslide: outline Type: drop-shadow
Image size: What ever, I set mine at both 900/900 for default, since most people use at least 1280x1024
Resize external images in sigs: No. I don't allow images in sigs anyhow, so don't know if this is working.
Resize Images in vB's Albums: Yes
Album Size: Same as above
Replace vb's default lightbox for attached files: No
Resize attached images with no thumb?: No
IMGLink tag, resize it?: Yes
IMGLink tag, kill in signatures?: Yes
User Options: Allow only change dimensions

That disables all of the options that "break" this modification in some way and allows your users to set at what size they want their images to be resized. You don't need the attachment resizing because vb3.8 takes care of that it's self.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02906 seconds
  • Memory Usage 1,772KB
  • 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
  • (2)bbcode_code
  • (1)bbcode_quote
  • (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