mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-12 19:26:21 +00:00
album link will automatically be shown if uploaded more than one image via webinterface
This commit is contained in:
@@ -73,6 +73,7 @@ If you're a blogger like myself, you can use it as storage for your images so th
|
|||||||
- Uploads without logins or validation (that's a good thing, right?)
|
- Uploads without logins or validation (that's a good thing, right?)
|
||||||
- Simple API to upload any image from remote servers to your instance [via URL](#upload-from-url) and [via Base64](#upload-from-base64-string)
|
- Simple API to upload any image from remote servers to your instance [via URL](#upload-from-url) and [via Base64](#upload-from-base64-string)
|
||||||
- 100% file based - no database needed
|
- 100% file based - no database needed
|
||||||
|
- Simple album functions with embedding support
|
||||||
- Converts gif to (much smaller) MP4
|
- Converts gif to (much smaller) MP4
|
||||||
- MP4 resizing
|
- MP4 resizing
|
||||||
- PictShare removes all exif data so you can upload photos from your phone and all GPS tags and camera model info get wiped
|
- PictShare removes all exif data so you can upload photos from your phone and all GPS tags and camera model info get wiped
|
||||||
@@ -101,7 +102,7 @@ If there is some option that's not recognized by PictShare it's simply ignored,
|
|||||||
<width>**x**<height> | -none- | https://pictshare.net/20x20/b260e36b60.jpg | 
|
<width>**x**<height> | -none- | https://pictshare.net/20x20/b260e36b60.jpg | 
|
||||||
forcesize | -none- | https://pictshare.net/100x400/forcesize/b260e36b60.jpg | 
|
forcesize | -none- | https://pictshare.net/100x400/forcesize/b260e36b60.jpg | 
|
||||||
**Albums** | | |
|
**Albums** | | |
|
||||||
just add multiple image hashes | -none- | https://www.pictshare.net/b260e36b60.jpg/32c9cf77c5.jpg/163484b6b1.jpg | Takes the **images** you put in the URL and makes an album out of them
|
just add multiple image hashes | -none- | https://www.pictshare.net/b260e36b60.jpg/32c9cf77c5.jpg/163484b6b1.jpg | Takes the **images** you put in the URL and makes an album out of them. All filters are supported!
|
||||||
embed | -none- | https://www.pictshare.net/b260e36b60.jpg/32c9cf77c5.jpg/163484b6b1.jpg/embed | Renders the album without CSS and with transparent background so you can embed them easily
|
embed | -none- | https://www.pictshare.net/b260e36b60.jpg/32c9cf77c5.jpg/163484b6b1.jpg/embed | Renders the album without CSS and with transparent background so you can embed them easily
|
||||||
responsive | -none- | https://www.pictshare.net/b260e36b60.jpg/32c9cf77c5.jpg/163484b6b1.jpg/responsive | Renders all images responsive (max-width 100%) according to screen size
|
responsive | -none- | https://www.pictshare.net/b260e36b60.jpg/32c9cf77c5.jpg/163484b6b1.jpg/responsive | Renders all images responsive (max-width 100%) according to screen size
|
||||||
<width>**x**<height> | -none- | https://www.pictshare.net/b260e36b60.jpg/32c9cf77c5.jpg/163484b6b1.jpg/150x150 | Sets the size for the thumbnails in the album
|
<width>**x**<height> | -none- | https://www.pictshare.net/b260e36b60.jpg/32c9cf77c5.jpg/163484b6b1.jpg/150x150 | Sets the size for the thumbnails in the album
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ function renderAlbum($data)
|
|||||||
|
|
||||||
foreach($data['album'] as $hash)
|
foreach($data['album'] as $hash)
|
||||||
{
|
{
|
||||||
$content.='<a href="/'.$filters.$hash.'"><img src="/'.$size.$forcesize.$filters.$hash.'" /></a>';
|
$content.='<a href="/'.$filters.$hash.'"><img class="picture" src="/'.$size.$forcesize.$filters.$hash.'" /></a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if($data['embed']===true)
|
if($data['embed']===true)
|
||||||
|
|||||||
@@ -499,10 +499,18 @@ class PictshareModel extends Model
|
|||||||
$o.= '<h2>'.$this->translate(4).' '.++$i.'</h2><a target="_blank" href="'.DOMAINPATH.$data['hash'].'">'.$data['hash'].'</a><br/>';
|
$o.= '<h2>'.$this->translate(4).' '.++$i.'</h2><a target="_blank" href="'.DOMAINPATH.$data['hash'].'">'.$data['hash'].'</a><br/>';
|
||||||
else
|
else
|
||||||
$o.= '<h2>'.$this->translate(4).' '.++$i.'</h2><a target="_blank" href="'.DOMAINPATH.$data['hash'].'"><img src="'.DOMAINPATH.'300/'.$data['hash'].'" /></a><br/>';
|
$o.= '<h2>'.$this->translate(4).' '.++$i.'</h2><a target="_blank" href="'.DOMAINPATH.$data['hash'].'"><img src="'.DOMAINPATH.'300/'.$data['hash'].'" /></a><br/>';
|
||||||
|
|
||||||
|
$hashes[] = $data['hash'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(count($hashes)>1)
|
||||||
|
{
|
||||||
|
$albumlink = DOMAINPATH.implode('/',$hashes);
|
||||||
|
$o.='<hr/><h1>Album link</h1><a href="'.$albumlink.'" >'.$albumlink.'</a>';
|
||||||
|
}
|
||||||
|
|
||||||
return $o;
|
return $o;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
<meta name="rating" content="general">
|
<meta name="rating" content="general">
|
||||||
|
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
img {
|
.picture {
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if($data['responsive']===true)
|
if($data['responsive']===true)
|
||||||
|
|||||||
@@ -22,8 +22,7 @@
|
|||||||
body {
|
body {
|
||||||
background: none transparent;
|
background: none transparent;
|
||||||
}
|
}
|
||||||
img {
|
.picture {
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if($data['responsive']===true)
|
if($data['responsive']===true)
|
||||||
echo ' display: block;
|
echo ' display: block;
|
||||||
|
|||||||
Reference in New Issue
Block a user