Member
Member
MK-M   2012-10-28, 14:38
#1
Hallo here my, i think, my finaly question:

I like to make the link visible only for registrd user ( like comments: user logged in=comments works, logged out=commets not works).
The code for show the link is in the image.php and album.php.(Theme is zenpage)

org. Code:

<?php if (function_exists('printSlideShowFlashLink') && isImagePage()) { ?>
<p><?php printSlideShowFlashLink(gettext('View Slideshow')); ?></p>
<?php } ?>

----------------------------------------------------------

can i put this code snipet in : && (zp_loggedin()) ?

My code dont work.I dont can find the place for the argument( is user logged in and funktion slideshow exists then show the link) :

<?php if (function_exists('printSlideShowFlashLink' && (zp_loggedin())) && isImagePage()) { ?>
<p><?php printSlideShowFlashLink(gettext('View Slideshow')); ?></p>
<?php } ?>

I am sorry for my another question,

LG
MK-M
Administrator
Administrator
fretzl   2012-10-28, 16:30
#2
This should work:
`
<?php if (function_exists('printSlideShowFlashLink') && isImagePage() && zp_loggedin()) { ?>

<?php printSlideShowFlashLink(gettext('View Slideshow')); ?>


<?php } ?>
`
Member
Member
MK-M   2012-10-28, 18:44
#3
Thank You! Perfect!

You can see it here:
www.mk-m.de/fotos , come in type Guest and the PW is the same.

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