Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-10-2010, 06:51 PM
Astyanax's Avatar
Astyanax Astyanax is offline
 
Join Date: Dec 2009
Location: Sweden
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default No thumbnail BB Code for vBulletin 4?

Why is it so difficult to find a working thumbnail BB Code for vBulletin 4?
Reply With Quote
  #2  
Old 04-17-2010, 10:13 PM
Astyanax's Avatar
Astyanax Astyanax is offline
 
Join Date: Dec 2009
Location: Sweden
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No one? Something like this one: http://www.phpbb3bbcodes.com/viewtopic.php?f=4&t=324
Reply With Quote
  #3  
Old 04-17-2010, 11:20 PM
mikey1991's Avatar
mikey1991 mikey1991 is offline
 
Join Date: Oct 2008
Location: United Kingdom
Posts: 654
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That'd be easy to do, basically just follow the steps listed there... or look for "Lightbox"
Reply With Quote
  #4  
Old 04-18-2010, 08:36 AM
Astyanax's Avatar
Astyanax Astyanax is offline
 
Join Date: Dec 2009
Location: Sweden
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks mikey! But is there a way to create a thumbnail code that automatically resize an image to for example 800 x 600 no matter how big it is?

In this code you have to link to the thumbnail itself. I used a BB Code in my old phpBB3 forum before that resized all images to one size and you just had to link to the original image link.

This is what I want, but I dont get it to work in my forum: http://www.phpbb3bbcodes.com/viewtop...=0&hilit=image
Reply With Quote
  #5  
Old 04-18-2010, 11:56 PM
mikey1991's Avatar
mikey1991 mikey1991 is offline
 
Join Date: Oct 2008
Location: United Kingdom
Posts: 654
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

https://vborg.vbsupport.ru/showthrea...ghlight=resize
https://vborg.vbsupport.ru/showthrea...ghlight=resize
https://vborg.vbsupport.ru/showthrea...ghlight=resize

These are all lightbox modifications, I don't know of a mod for vB4 which resizes the images IN thread

EDIT: You got me curious, what happens when you go to the last post in THIS thread and click the image? Does it do the desired effect?
Reply With Quote
  #6  
Old 04-19-2010, 04:08 PM
Astyanax's Avatar
Astyanax Astyanax is offline
 
Join Date: Dec 2009
Location: Sweden
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

mikey, this is eaxactly what I am looking for! But in my phpBB3 forum I only had to add a BB Code no need to upload anything.

I want all images larger than (for example) 800 x 600 to be resized to 800 x 600. When clicking on those images you automatically get to the full image size.

Shouldnt be hard to fix?
Reply With Quote
  #7  
Old 04-20-2010, 10:49 AM
mikey1991's Avatar
mikey1991 mikey1991 is offline
 
Join Date: Oct 2008
Location: United Kingdom
Posts: 654
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Right now that BBCode resizes images to basically, 50% smaller than what the image was originally. I don't know how to make it resize images only over a certain size, sorry. I've left the bbcode in that thread for you if you want it.
Reply With Quote
  #8  
Old 07-20-2010, 04:21 AM
midnz's Avatar
midnz midnz is offline
 
Join Date: Jul 2010
Location: New Zealand
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe you could work with a BBCode I made for my own forum today. I wanted to resize images to 200 x 150 and increase to 800 x 600 with onclick and reduce back to 200 x 150 again with ondblclick. It works well for me.

HTML Code:
<img src="http://www.{param}" width="200" height="150" onclick="this.src='http://www.{param}';this.height=600;this.width=800" ondblclick="this.src='http://www.{param}';this.height=150;this.width=200"><!{param}>

I haven't tested this edited version but if it doesn't work the way you want you could play around with it a little:
You must remove the http://www. from any image link for it to work though.

HTML Code:
<img src="http://www.{param}" width="800" height="600" onclick="this.src='http://www.{param}';this.height=;this.width=" ondblclick="this.src='http://www.{param}';this.height=800;this.width=600"><!{param}>
Reply With Quote
Reply


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 01:49 AM.


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.06683 seconds
  • Memory Usage 2,232KB
  • Queries Executed 11 (?)
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
  • (2)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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_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