![]() |
a very nice idea.
Heard from it in the german vB-Forums and tried it. But , unfortunately the hack did not work quite properly. Esp. in Mozilla and Netscape the window with the picture did not open itself. Also it is not working with IE5, only with IE 6. The 2nd problem: If there is a thread with many pictures u can not klick one of the samll replacements pics at once. u have to wait until all pictures in the thread are loaded. If u klick to early no picture will load properly anymore and the pics will open for example 1/ 3rd of its size. But when these problems are dealed with then i might insatll again because its a good idea. THX |
There was a problem with Javascript. Not the actual JS, but the code executed an extra command that is NOT needed (This is a personal mod I did on my forum and forgot to undo changes)
Fix is attached (Tried just putting it in the reply but VB was replacing my code for some reason) Dimitry |
Tnx for the fix, works great now. :)
|
Another Problem:
Sometimes i get this Error: Quote:
And if a whole Thread isnt reachable this Hack is not so good at all. Without this Error it is an absolut galant and beautiful way to solve this Problem. But can you fix this error? That would be great! |
This is the error I seemed to be getting a LOT lately on my server after it took about 2 mins of loading time.
The problem seems to be with that function retrieving the image at times. This is not the code's fault. It's either server's, GD library's, or PHP, I have yet to figure it out. Ill post here as soon as I get more info on this. On my forum I had to completely disable the hack which sux because I made it :p Dimitry |
Yes, i know that the fault isnt in the code. But there must be a way to handle it. :ermm:
|
I figured everything out.
Had to restart some processes on my server to get it working so it wasnt the hacks fault. Ive added a security check that checks if the file actually exists or not. And also added a Slowdown function, which will wait 1500 miliseconds before checking each minute. This helps the previous check to be finished and server doesnt get overloaded with constant outgoing connections piled up one on one (if you have a bunch [img] in thread). This barely slows down the load of the thread, 1500 miliseconds is nothing really, but enough (or SHOULD be enough) for server to complete previous task). I will post the upgrade and update the hack later today when I get home :) Dimitry [edit] Here's what broken images look like :) Replaced with text: http://www.designworldwide.com/forum...id=172#post172 |
Quote:
Thats awesome! |
Something new bout the security check update?
|
to check if the file/image exists, replace the following in functions_bbcodeparse.php
Code:
// ###################### Start handle_bbcode_img_match ####################### Code:
// ###################### Start handle_bbcode_img_match ####################### |
All times are GMT. The time now is 07:56 AM. |
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:
|