![]() |
Bump!
|
?hm, the attach in 1st posting are stable running? Or must I modify the code with answer of this thread??
.. on vB 3.0.3 (sorry for the bad english :)) |
This script takes forever to load on my forum, is becoming a pain! Anyway of fixing this?
|
Hi,
Quote:
|
Quote:
Steve, any thoughts on how to make this more friendly with multiple images? |
Works great for me. Tahnks
|
Quote:
|
I've removed the hack because it slowed down the forums.. I then installed dis.pater's instead and it works great. Just a note for people with the inline moderation tools. I used this for the <body onload:
Code:
<body onload="$onload; inline_init($thread[threadid], 'post'); fiImageResize()"> Nice work Dis.pater! |
I'm using the javascript version above. Any reason why this would cause my Post Reply (bottom) button to have the same dotted border when there is a post that has been resized?
|
The server downloads the image, then resizes it, gives all of the images to the client and only then the html must been sent to the browser. That?s probably why it takes so long.
This will also probably timeout the spiders. :( |
Here?s the one I just found. It?s client side and very quick!
https://vborg.vbsupport.ru/showthread.php?t=68677 I thought i should inform some of the people that didn?t notice that hack. Have a nice day. |
I went through a few pages but haven't seen this question. Apologies if someone asked this. I just want to turn all outside images into links rather than an inline display while leaving attached images to thumbnails (as it works now)
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
$bbtag = '<table><tr><td align="center"><a href="' . $link . '"><img src="' . $link . '" width="'.$max_imgsize.'" border="0"'.substr($bbtag,$linkclose+1,strlen($bbt ag)-$linkclose+1).'<br>Picture has been resized, click for full size pic</a></td></tr></table>'; to this: $bbtag = '<table><tr><td align="center"><a href="' . $link . '">' . $link . '</a></td></tr></table>'; and lines 214 & 215 of the hack file from: $biglink = '<table><tr><td align="center"><a href="' . $link . '" ><img src="' . $link . '" width="'.$max_imgsize.'" border="0" alt=""><br>Picture has been resized, click for full size pic</a></td></tr></table>'; to: $biglink = '<table><tr><td align="center"><a href="' . $link . '" >' . $link . '</a></td></tr></table>'; That should do what you are looking for. If you want to add some text in there as well as the link address put it right after the > just before ' . $link If you want to replace the link address with text remove the ' . $link . ' between the > and < and place whatever text you want there. |
this hack really rox, thx Steve!
[high]* Gnappy install ^^ [/high] but i have a little question.. on my forums many ppl uses to upload images on forum, and for these images i added this tag, used to see this kind of pictures(with url dont finish with .jpg, .gif, .jpeg, etc..) i called this tag [card] (i think many other ppl here uses this tag) and it works like this: Code:
<img src="{param}"> thx a lot for replies :o |
alright, I used this on my forums when we were hosted by a hosting company called EPGservers, but we recently rented a dedicated machine from http://servermatrix.com/, the 2.4 machine, and now this hack doesnt work. Any suggestions?
|
Quote:
|
Apache version 1.3.33 (Unix)
PHP version 4.3.9 MySQL version 4.0.22-standard |
Quote:
|
Error message, something about T-Strings. I replaced the files with the originals so i forget what teh exact message was...
|
Quote:
|
Quote:
|
Quote:
|
were switching to a new more powerful server soon, so hopefully it will work after that
|
ive got this installed, and i have a section where people post more then 1 image and its taking FOREVER for a page to load with all the images....any ideas ?
|
Quote:
|
Quote:
|
Fit perfectly. There is some display probleme if you are using The "Attachments Styles with Attachments in Events" but hey .. that only in Template ;)
Thanks u |
flawless install on vb 3.0.6
thanks |
it works fine with me on 3.0.6
but i wonder is there a way to make the pic open in new window ,also adding alt var for the pic to give "Picture has been resized, click for full size pic" msg, it is better than shown below the pic.... many thax to the coder :D *install |
Quote:
You would add it into these lines: in the first part: $bbtag = '<table><tr><td align="center"><a href="' . $link . '"><img src="' . $link . '" width="'.$max_imgsize.'" border="0"'.substr($bbtag,$linkclose+1,strlen($bbt ag)-$linkclose+1).'<br>Picture has been resized, click for full size pic</a></td></tr></table>'; would become: $bbtag = '<table><tr><td align="center"><a href="' . $link . '" target="_blank"><img src="' . $link . '" width="'.$max_imgsize.'" border="0"' alt="Picture has been resized, click for full size pic".substr($bbtag,$linkclose+1,strlen($bbtag)-$linkclose+1).'<br>Picture has been resized, click for full size pic</a></td></tr></table>'; and in the second section: $biglink = '<table><tr><td align="center"><a href="' . $link . '" ><img src="' . $link . '" width="'.$max_imgsize.'" border="0" alt=""><br>Picture has been resized, click for full size pic</a></td></tr></table>'; would become: $biglink = '<table><tr><td align="center"><a href="' . $link . '" target="_blank"><img src="' . $link . '" width="'.$max_imgsize.'" border="0" alt="Picture has been resized, click for full size pic"><br>Picture has been resized, click for full size pic</a></td></tr></table>'; If you want to remove the "Picture has been resiz".... text from below the pic just remove the <br>Picture has been resize, click for full size pic text out of both of those sections. |
*installed* great hack cheers mate
|
Does this work for Sigs as well?
|
My thanks to you for this.
Now I don't have to worry about the idiots that can't read the forum rules for image restrictions. :banana: |
This is absolutely superb!!!! Clicks install
|
Quote:
|
thank u very much and *installed*
greetZ knetgummi |
All times are GMT. The time now is 09:20 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|