Quantcast
Channel: zenphoto forums Tag: link
Viewing all articles
Browse latest Browse all 30

acrylian on "ZenPhoto as a 3d model library browser?"

0
0

No, actually you would do that on the theme's image.php if. Never modify any zp-core files.

That problem is that Zenphoto is used with a web server even if in LAN or locally. That means it is not OS X directly. So if you click on a web link the browser decides what to do with the file. If it can display it it will do so and if not it will download it.

This would give you basically a link to the OS X filesystem path.
<?php echo '<a href="file://'.pathurlencode($_zp_current_image->getFullImage(SERVERPATH)).'">Link</a>'; ?>

But since that is outside the web server it is not working as a link because browser have disabled that for security reasons. It only works if entered in the address bar manually.

I think there is a plugin for Firefox. Best you take a look.

An alternative would be to tell the browser which program to use for that file type afterwards. Safari does not have any setting for that but e.g. Firefox does.


Viewing all articles
Browse latest Browse all 30

Latest Images

Trending Articles





Latest Images