The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Big Picture messing up your design? Install this Details »» | |||||||||||||||||||||||||||
Big Picture messing up your design? Install this
Developer Last Online: Nov 2005
hello
how two install this hack ? Waht this file in the zip sorry for my english is french thk Show Your Support
|
Comments |
#2
|
|||
|
|||
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 |
#3
|
|||
|
|||
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"; Code:
$img_txtreplace = "[Image too big. Click here to view it]"; 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"; Code:
$inp_string = "<a href=\"javascript:toggle_imgview('bigimg".$number."');toggle_imgview('bigimg".$number."a')\">".$img_txtreplace."</a><br />\n"; Dimitry |
#4
|
|||
|
|||
I downloaded this before I noticed this was made for vB2.
Do you think this can work on vB 3 gold? |
#5
|
|||
|
|||
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 |
#6
|
|||
|
|||
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. |
#7
|
|||
|
|||
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 |
#8
|
|||
|
|||
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!!!!
|
#9
|
|||
|
|||
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 |
#10
|
|||
|
|||
Hack edited massively
Works like a charm now Enjoy Dimitry |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|