The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Need Help with wide image automatic resize
Hi Com
I used this one for wide image automatic resize Code:
[vB 3.0.3] - Wide image automatic resize [IMG] TAG //replace (around line 1015) in includes/functions_bbcodeparse.php return '<img src="' . $link . '" border="0" alt="" />'; //with return '<img src="' . $link . '" border="0" alt="" OnLoad="if(this.width > 500) {this.width=500; this.style.cursor=\'hand\'; this.title=\'Click Here to open the image in a new window\';}" onClick="javascript:window.open(\'' . $link . '\',\'\',\'scrollbars=1,toolbar=0,resizable=1,menubar=0,directories=0,status=0\' )" />'; http://www.gamesbay.de/showpost.php?p=45128&postcount=2 Under the posting there is a part of the code. I hope someone can help. I know, there is ithis code too: https://vborg.vbsupport.ru/showthread.php?t=67743 but this one, is extreme slow and have some probs. with dead links. |
#2
|
|||
|
|||
you will receive help on this hack by posting in the THREAD related to the hack... that's why forums are built for...
thanks! |
#3
|
||||
|
||||
Quote:
|
#4
|
||||
|
||||
Questions about modifying vBulletin's default behaviour and asking about modifications in general, should be posted in General vBulletin Questions. Please read the forum descriptions more carefully in future. I've moved your thread there for you
Thanks, - Dean |
#5
|
|||
|
|||
<a href="https://vborg.vbsupport.ru/showthread.php?t=67743" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=67743</a>
|
#6
|
||||
|
||||
Quote:
I mean this Version: Code:
[vB 3.0.3] - Wide image automatic resize [IMG] TAG //replace (around line 1015) in includes/functions_bbcodeparse.php return '<img src="' . $link . '" border="0" alt="" />'; //with return '<img src="' . $link . '" border="0" alt="" OnLoad="if(this.width > 500) {this.width=500; this.style.cursor=\'hand\'; this.title=\'Click Here to open the image in a new window\';}" onClick="javascript:window.open(\'' . $link . '\',\'\',\'scrollbars=1,toolbar=0,resizable=1,menubar=0,directories=0,status=0\' )" />'; |
#7
|
|||
|
|||
I replied to your PM, and I should also mention it here. I had the same error with WYSIWYG editor. Since vB staff reported the editor to have serious security issues, I disabled it! Using such editor is not really a big factor for my board, so I dont care much about it.
I created the image resize code, as its simple and doesnt slow down my servers. If you have a fix to my code or can find a solution to this problem, then do post it here. Cheers Aurous |
#8
|
||||
|
||||
Quote:
https://vborg.vbsupport.ru/showthrea...900#post556900 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|