vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Big Picture messing up your design? Install this (https://vborg.vbsupport.ru/showthread.php?t=63458)

Boofo 04-05-2004 10:58 AM

Is there a way to have the button say "Close this image" (or something like that) after clicking it to open it? I had to play with it to figure out I had to hit the same button to close the image. ;)

Dimitrix 04-05-2004 11:26 AM

I dont have VB3 myself (Have Vb2 installed on my server), so I cant test the hack. It was made blindfolded (after testing with Vb2 of course).

If anyone whos having trouble is willing to give me access to their server, Ill be willing to figure it out and fix the hack.

Sorry, not much time this morning, Ill reply to all posts in a few hours
Dimitry

Aceman 04-05-2004 02:07 PM

Installed at: www.scifi-meshes.com and working fine.

It turns on a layer with the image when you click on the button. I'm concerned that this will work in all browsers.. but it looks fine in IE for me.

Aceman

Aceman 04-05-2004 02:29 PM

I've found that for images that are say 1024x768 the icon shows up fine. But for some reason I have to reload the page sometimes to get it to work and show the layer with the image when you click on it. Additionally, some images only showed part of the images, it's like it would only show upto the hieght of the post. I think this pertained to threads that were posted before I put in the hack. But new threads seemed to show all the image. It's like it didn't know how tall the image was. (pulled this hack from server pending a revision.. but I really would like to use it.)

Is it possible to modify the code so that it just pops up another window completely with just the image, rather then show it in a hidden layer?

Aceman

Dimitrix 04-05-2004 02:48 PM

Quote:

Originally Posted by Aceman
Installed at: www.scifi-meshes.com and working fine.

It turns on a layer with the image when you click on the button. I'm concerned that this will work in all browsers.. but it looks fine in IE for me.

Aceman

Yes, I always work in Mozilla, so it'll work in it for sure (FireFox). In IE I noticed that the layer comes up but <select> form objects appear on top of the image. After doing further reading this is an IE bug that has been an issue since IE 4 (Thanks Microsoft). There are ways to go around it but would require some template edits.

Yes, it's really easy to make it open in a new window. I will add 2 revisions of the hack later today. One will be so you can use text instead of an image. And 2nd, to open in a new window.

Thanks for the ideas
Dimitry

NuclioN 04-05-2004 02:56 PM

Any solution for the javascript error? :)

Dimitrix 04-05-2004 03:45 PM

Quote:

Originally Posted by NuclioN
Any solution for the javascript error? :)

Can you post a link so I can view JS?
Dimitry

mtha 04-05-2004 09:32 PM

very nice mod.
I would still display the image with the limitation of width=$img_max_width

PHP Code:

 $inp_string "<a href=\"#\" onclick=\"window.open('".$link."','OgiginalImage','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=".$img_width[0].",height=".$img_width[1]."'); return false;\"><img src=\"".$link."\" alt=\"Original Image is too big\" border=\"0\" width=\"".$img_max_width."\"/></a><br />\n";
return 
$inp_string


vau7 04-06-2004 02:31 AM

It runs perfectly ( No Problems in Opera with the js )

THANK YOU!

Dimitrix 04-06-2004 02:26 PM

Nice,
Glad to hear that.

I really dont see a reason why JS would give problems. Its very basic code (1 line).
Can you post a link? :)
Dimitry


All times are GMT. The time now is 07:56 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.01101 seconds
  • Memory Usage 1,740KB
  • 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
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete