vb.org Archive

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

qualif 04-02-2004 09:00 PM

Big Picture messing up your design? Install this
 
hello

how two install this hack ?

Waht this file in the zip

sorry for my english is french

thk

Dimitrix 04-03-2004 03:01 PM

What does this hack do?
This hack will check if an image that a member of your forums has inserted in the post is below the allowable width. If not, the image will be replaced with a small button that basicly says "Image too big, click here to view". When clicked, the image will appear right in the post but without messing up your forum design one bit.

Example?
Working example can be found here:
http://www.designworldwide.com/forum/t35-s.html
You can also test anything in the thread (in fact, I encourage testing)

Please post any bugs/comments/questions here.
While making this hack I had some trouble with reg. expressions and had to go around them a little (php developers can see this). Ive been coding for years now but never had the need to learn those :p

Anyways,
Enjoy!
Dimitry

P.S. This hack is available for VB3 now, thread here:
https://vborg.vbsupport.ru/showthread.php?p=495676

Dimitrix 04-03-2004 03:06 PM

If you don't want to use a replacement image and would rather use a simple text link, do the following:

Change this line:
Code:

$img_replacement = "images/dww/button_imagebig.gif";
to:
Code:

$img_txtreplace = "[Image too big. Click here to view it]";
Then change this line:
Code:

$inp_string = "<a href=\"javascript:toggle_imgview('bigimg".$number."');toggle_imgview('bigimg".$number."a')\"><img src=\"".$img_replacement."\" alt=\"\" border=\"0\" /></a><br />\n";
to:
Code:

$inp_string = "<a href=\"javascript:toggle_imgview('bigimg".$number."');toggle_imgview('bigimg".$number."a')\">".$img_txtreplace."</a><br />\n";
Change the $img_txtreplace to whatever text you would like to use.
Dimitry

mello_mike 04-04-2004 05:54 PM

I downloaded this before I noticed this was made for vB2.

Do you think this can work on vB 3 gold?

Dimitrix 04-04-2004 06:36 PM

I have changed the ZIP file.
Sorry I saved the instructions file as .php, which probably made everything confusing.

qualif: Open the text file and follow directions
mello_mike: I will have to download vb3 and look at it, Ill do that today and PM you with the results.

Dimitry

Dimitrix 04-04-2004 06:48 PM

Update on the VB3:
I have found where in VB3 this is located and the way it's parsed is pretty much identical.
However I would still require some testing to be done and since I can only run one instance of VB on my server, I cant install VB3 and test.

Im willing to work along with anyone who has VB3 on their server if they give me access to one file (Im a good person I wont steal your files I SWEAR! :))

Dimitry
[edit]
Never mind, I just copy & pasted the necessary functions into a new file and did the testing manually w/o Vb3. Hack works even better, the way Vb3 does [img] parsing is much more efficient and after releasing this hack for v.3 I will rewrite this hack to be more efficient.

Dimitrix 04-04-2004 07:50 PM

Hack for VB3 done
Please PM me if anyone wants it. I want at least one forum to install it to see if it works (it should) and to also test everything out.

Thanks
Dimitry

MeTaL_oRgY 04-04-2004 07:59 PM

hummm... WTF??... I want to install this.. but the zip file only has a file with no extension (maybe a jsp file?)... how do I install this!! it´s GREAT!!!!

Dimitrix 04-04-2004 08:30 PM

If you dont see an extension maybe you have them disabled.
Enable extension view in Windows.

Javascript file is: bigimg.js
If you dont see an extantion by it, just upload it. You dont need to edit it anywyas
Dimitry

Dimitrix 04-05-2004 12:39 AM

Hack edited massively :p
Works like a charm now

Enjoy
Dimitry


All times are GMT. The time now is 10:58 PM.

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.01573 seconds
  • Memory Usage 1,735KB
  • 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
  • (4)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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