Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Big Picture messing up your design? Install this Details »»
Big Picture messing up your design? Install this
Version: 1.00, by qualif qualif is offline
Developer Last Online: Nov 2005 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 04-02-2004 Last Update: Never Installs: 2
 
No support by the author.

hello

how two install this hack ?

Waht this file in the zip

sorry for my english is french

thk

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 04-03-2004, 04:01 PM
Dimitrix Dimitrix is offline
 
Join Date: Mar 2002
Location: Pittsburgh, PA
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Anyways,
Enjoy!
Dimitry

P.S. This hack is available for VB3 now, thread here:
https://vborg.vbsupport.ru/showthread.php?p=495676
Reply With Quote
  #3  
Old 04-03-2004, 04:06 PM
Dimitrix Dimitrix is offline
 
Join Date: Mar 2002
Location: Pittsburgh, PA
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 04-04-2004, 06:54 PM
mello_mike mello_mike is offline
 
Join Date: Jan 2004
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Do you think this can work on vB 3 gold?
Reply With Quote
  #5  
Old 04-04-2004, 07:36 PM
Dimitrix Dimitrix is offline
 
Join Date: Mar 2002
Location: Pittsburgh, PA
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 04-04-2004, 07:48 PM
Dimitrix Dimitrix is offline
 
Join Date: Mar 2002
Location: Pittsburgh, PA
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 04-04-2004, 08:50 PM
Dimitrix Dimitrix is offline
 
Join Date: Mar 2002
Location: Pittsburgh, PA
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 04-04-2004, 08:59 PM
MeTaL_oRgY MeTaL_oRgY is offline
 
Join Date: Jul 2003
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!!!!
Reply With Quote
  #9  
Old 04-04-2004, 09:30 PM
Dimitrix Dimitrix is offline
 
Join Date: Mar 2002
Location: Pittsburgh, PA
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #10  
Old 04-05-2004, 01:39 AM
Dimitrix Dimitrix is offline
 
Join Date: Mar 2002
Location: Pittsburgh, PA
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hack edited massively
Works like a charm now

Enjoy
Dimitry
Reply With Quote
Reply

Thread Tools

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 06:59 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04901 seconds
  • Memory Usage 2,284KB
  • Queries Executed 23 (?)
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
  • (4)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete