slideshow_flash v1.2.2.0 only for registred user

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

Comments

  • fretzl Administrator, Developer
    This should work:
    `
    <?php if (function_exists('printSlideShowFlashLink') && isImagePage() && zp_loggedin()) { ?>


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

    <?php } ?>
    `
  • 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
Sign In or Register to comment.