Member
Member
lastico31   2018-03-27, 10:50
#1
Hello everyone,

i need a little help :) , i have a small issue, i need to view gif animated on thumb or list of image. It's work on zentheme and not to mobile theme.

I found my issue on image.php on line 41 :

i change by this with : getFullImageURL()

if (isImagePhoto()) {
?>
[img]<?php echo html_encode(pathurlencode(getFullImageURL())); ?>[/img]" style="max-width:<?php echo getDefaultWidth(); ?>px"/>
<?php

It's work.

But i need this option on list view in album .

In album.php i found this code but it doesn't work.
I change by album.php from zen theme , i have the same issue, i don't think is the right file.


<?php
$count = '';
while (next_image()):
$count++;
switch($count) {
case 1:
$imgclass = ' ui-block-a';
break;
case 2:
$imgclass = ' ui-block-b';
break;
case 3:
$imgclass = ' ui-block-c';
break;
case 4:
$imgclass = ' ui-block-d';
$count = ''; // reset to start with a again;
break;
}
?>
<a class="image<?php echo $imgclass; ?>" href="<?php echo html_encode(getImageURL());?>" title="<?php printBareImageTitle();?>">
<?php printCustomSizedImage(getAnnotatedImageTitle(), NULL,230, 230, 230, 230, NULL, NULL, NULL, NULL, True, NULL); ?>
</a>
<?php endwhile; ?>



Can you help me please ? :)


Thanks
Administrator
Administrator
acrylian   2018-03-27, 11:48
#2
Please escape code correctly using backticks like this `some code ` (for inline) or using four spaces before the code:

somecode

https://daringfireball.net/projects/markdown/syntax#precode (tabs don't really work here)

Actually that should be the right place. You need to replace the `printCustomSizedImage()` functiom call with a full image one as you did above.

Member
Member
lastico31   2018-03-27, 12:34
#3
Thanks acrylian :)


I don't understand, my zen theme don't display gif animated. i don't find the setting.
Is there a general setting for this ?


When i change
<pre>[code]
<a class="image<?php echo $imgclass; ?>" href="<?php echo html_encode(getImageURL());?>" title="<?php printBareImageTitle();?>">
<?php printCustomSizedImage(getAnnotatedImageTitle(), NULL,230, 230, 230, 230, NULL, NULL, NULL, NULL, true, NULL); ?>
</a>
[/code]</pre>

by
<pre>[code]
<a class="image<?php echo $imgclass; ?>" href="<?php echo html_encode(getImageURL());?>" title="<?php printBareImageTitle();?>">
<?php getFullImageURL()
</a>
[/code]</pre>

i have the same problem.

Thanks you

Administrator
Administrator
acrylian   2018-03-27, 12:42
#4
`get` functions don't print anything, they just "get" data. You have to use `echo` with it. In this case you have to use it with an `img` element of course as it just returns an url.
Example: `[img]<?php echo html_encode(getFullImageURL()); >[/img]`
Member
Member
lastico31   2018-03-28, 21:14
#5
Hi,
Thank you so much ! It's perfect :)

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.