vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   No thumbnail BB Code for vBulletin 4? (https://vborg.vbsupport.ru/showthread.php?t=237969)

Astyanax 03-10-2010 06:51 PM

No thumbnail BB Code for vBulletin 4?
 
Why is it so difficult to find a working thumbnail BB Code for vBulletin 4?

Astyanax 04-17-2010 10:13 PM

No one? Something like this one: http://www.phpbb3bbcodes.com/viewtopic.php?f=4&t=324

mikey1991 04-17-2010 11:20 PM

That'd be easy to do, basically just follow the steps listed there... or look for "Lightbox"

Astyanax 04-18-2010 08:36 AM

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

mikey1991 04-18-2010 11:56 PM

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?

Astyanax 04-19-2010 04:08 PM

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? :)

mikey1991 04-20-2010 10:49 AM

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.

midnz 07-20-2010 04:21 AM

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}>


All times are GMT. The time now is 11:55 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.01067 seconds
  • Memory Usage 1,727KB
  • 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
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete