Digital Point Image Proxy

Digital Point Image Proxy [Paid] 1.0.4

No permission to buy ($75.00)
This code will produce an error:
Code:
[IMG]http://www.directlinkupload.com/uploads/149.254.182.61/FusionX_v1.0_Y300_B199.zip[/IMG]

Test image bb code with direct link
 
This code will produce an error:
Code:
[IMG]http://www.directlinkupload.com/uploads/149.254.182.61/FusionX_v1.0_Y300_B199.zip[/IMG]

Test image bb code with direct link
Because it's not an image, it's a ZIP file. Pretty sure it's not going to work even with the default [IMG] tag because you would end up with a zip file in an HTML <img> tag like so: <img src="http://www.directlinkupload.com/uploads/149.254.182.61/FusionX_v1.0_Y300_B199.zip"> (which would result in a broken link)
 
@digitalpoint and @Chris Deeming, have an issue between Image Proxy and XMG but not sure where the issue lies. My error log is filled with the following:

Server Error Log
Error Info
Zend_Exception: No entry is registered for key 'session' - library/XenForo/Application.php:958
Generated By: Unknown Account, Yesterday at 2:59 PM
Stack Trace
#0 /data/websites/forums.freddyshouse.com.xen/library/XenGallery/Listener.php(68): XenForo_Application::get('session')
#1 [internal function]: XenGallery_Listener::controllerPreDispatch(Object(DigitalPointImageProxy_ControllerPublic_Proxy), 'Image', 'DigitalPointIma...')
#2 /data/websites/forums.freddyshouse.com.xen/library/XenForo/CodeEvent.php(58): call_user_func_array(Array, Array)
#3 /data/websites/forums.freddyshouse.com.xen/library/XenForo/Controller.php(311): XenForo_CodeEvent::fire('controller_pre_...', Array, 'DigitalPointIma...')
#4 /data/websites/forums.freddyshouse.com.xen/library/XenForo/FrontController.php(336): XenForo_Controller->preDispatch('Image', 'DigitalPointIma...')
#5 /data/websites/forums.freddyshouse.com.xen/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#6 /data/websites/forums.freddyshouse.com.xen/index.php(13): XenForo_FrontController->run()
#7 {main}
Request State
array(3) {
["url"] => string(113) "http://forums.freddyshouse.com/prox...f4beK1q90riX7q/Onn09jgeNwaD/ae1QmTZ7tI=/image"
["_GET"] => array(1) {
["/proxy/j3U65nKsps7jM0SBAwu4EyrDef4beK1q90riX7q/Onn09jgeNwaD/ae1QmTZ7tI"] => string(6) "/image"
}
["_POST"] => array(0) {
}
}
 
I think I can put a fix for this in XMG.

It looks like Shawn's proxy runs without setting a session (why would it set a session for a proxy, so that's fine) and my code doesn't account for a fact that the session might not exist.

If you want to give it a try now:

library/XenGallery/Listener.php:

Find:

PHP:
if ($options->xengalleryUnviewedCounter['enabled'])

And change to:

PHP:
if ($options->xengalleryUnviewedCounter['enabled'] && XenForo_Application::isRegistered('session'))

That appears twice in that file.

Finally in:

library/XenGallery/Model/Media.php:

Find:

PHP:
if (XenForo_Application::get('options')->xengalleryUnviewedCounter['enabled'])

And change to:

PHP:
if (XenForo_Application::get('options')->xengalleryUnviewedCounter['enabled'] && XenForo_Application::isRegistered('session'))

That's in the final code, but if you could verify it solves the problem that would be great.

Thanks @Deebs
 
Not sure since I haven't seen the one coming in XF in action, but I assume it's going to write cached items to disk, and this one doesn't.
 
  • Like
Reactions: rdn
Back
Top Bottom