Store Community Support Documentation
Hello,
how can i view the original photo uploaded?
I don't speak about "download" photo, i speak about "View original photo"...
It's possible add new link "View original photo" beside "Download" icon link?
Thanks
antonio
#5

Hello,

after upgrade Photo app the icon Show original image is hide...

I must change this code?

Thanks

Antonio

 

add this to your themes javascript in theme manager: $Ready(function() { if ($('#page_photo_view').length){ $('.showimage').parent().remove(); $('.photos_actions .pull-right').append('

  • Show original image
  • '); $('.showimage').on('click', function() { window.open($('#js_photo_view_image').attr('src'), 'Original Image'); }); } }); this code adds a button to the right bottom corner of the image. clicking on the button opens a window to the imagefile.
Scheinwelt-Media
#6

the new texteditor of this forum has screwed up the code

Last update on October 11, 6:04 pm by Scheinwelt-Media.
Scheinwelt-Media
#7

i have now corrected the old post but here is a new code with small changes. both codes should work also with the new photo app.

$Ready(function() {
if ($('#page_photo_view').length){
if (!$('.original-image').length){
$('.photos_actions .pull-right').append('<li class="original-image"><a href="#" class="js_hover_title showimage"><span class="js_hover_info">Show original image</span><i class="fa fa-image"></i></a></li>');
}
$('.showimage').on('click', function() {
window.open($('#js_photo_view_image').attr('src'),'Original Image');
});
}
});
#8

Perfect, thanks! :)

Antonio

#9

Hello,

this code not works with new default Material theme in Phpfox 4.6 :(

Antonio

i have now corrected the old post but here is a new code with small changes. both codes should work also with the new photo app.

$Ready(function() {
if ($('#page_photo_view').length){
if (!$('.original-image').length){
$('.photos_actions .pull-right').append('
Scheinwelt-Media
#10

updated code for material template. be sure to add this within the $ready function:

if ($('#page_photo_view').length){
if (!$('.original-image').length){
$('.photos_actions ul').append('<li class="original-image"><a href="#" class="showimage"><span><i class="ico ico-photo"></i></span><b class="text-capitalize">View Original Image</b></a></li>');
}
$('.showimage').on('click', function() {
window.open($('#js_photo_view_image').attr('src'),'Original Image');
});
}
Last update on February 17, 3:07 pm by Scheinwelt-Media.
#11

Thanks :)

But when i add code to Javascript the Save button not works :( ( 

The wheel rotates continuously )

Antonio

updated code for material template. be sure to add this within the $ready function:

if ($('#page_photo_view').length){
if (!$('.original-image').length){
$('.photos_actions ul').append('
#12

Thanks :)

But when i add code to Javascript the Save button not works :( ( 

The wheel rotates continuously )

Antonio

Add this code to autoload.js

#13

 

Add this code to autoload.js

Thanks, but where is the file?

Antonio

#14

 

Thanks, but where is the file?

Antonio

PF.Site\flavors\material\assets\

Scheinwelt-Media
#15

Thanks :)

But when i add code to Javascript the Save button not works :( ( 

The wheel rotates continuously )

Antonio

 

be sure to add it within the $ready function before these lines:

 

});
//Scroll to top

 

 

Last update on February 18, 1:41 pm by Scheinwelt-Media.
#16

 

PF.Siteflavorsmaterialassets

Thanks :)

#17

Yes, thanks, now it woks! :)

 

Antonio

 

 

be sure to add it within the $ready function before these lines:

 

});
//Scroll to top

 

 

#18

Hello,

i update this post because i noticed this problem: the link "View original image" appears only after the page refresh.

If I click on a photo the link not appears, i must refresh the page.

Thanks

Antonio

 

 

 

be sure to add it within the $ready function before these lines:

 

});
//Scroll to top

 

 

Scheinwelt-Media
#19

hmm, for me it works without reloading the page. please send me a link to your site and i will have a look.