Buy button

0
Can i hide the buy button to non registered users??
Thanks
Responses (8)
  • Accepted Answer

    Tuesday, December 13 2011, 11:04 AM - #Permalink
    0
    I meant , show the buy button only for registerd.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, December 13 2011, 12:01 PM - #Permalink
    0
    hmm. no, if it's available, it will be displayed to everyone..
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, December 13 2011, 12:10 PM - #Permalink
    0
    Thank you
    Any other way to place an emule link, for users only?
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, December 13 2011, 12:11 PM - #Permalink
    0
    well if you want a link to appear only for registered users then it must be codded.. it's not a big thing, but some PHP code must be added to the right file...!
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, December 13 2011, 12:13 PM - #Permalink
    0
    yes please.
    i want to place a link in the album page.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, April 20 2012, 12:51 PM - #Permalink
    0
    HI GERMI

    IS IT POSSIBLE FOR ME TO HAVE MULTIPLE DOWNLOAD/BUY LINKS
    IF SO HOW ??

    THANKS
    FRED
    The reply is currently minimized Show
  • Accepted Answer

    Monday, April 23 2012, 05:35 PM - #Permalink
    0
    hello!

    it's not possible out of the box, no.
    if you need more buy links they should be added as custom coding work..
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, April 24 2012, 10:27 PM - #Permalink
    0
    All you'd need to do to display the buy link to registered users only would be to check if the user is logged in using the Joomla user object. To do this, add the following code into the view '/[view_type]/tmpl/default.php' file, right before the button is rendered;


    $user =& JFactory::getUser();
    $myid = $user->id;

    // Check if user logged in...
    if(is_numeric($myid) && $myid >0){
    // Put the if allowsongdownload bit in here... //
    }
    // End - You could add an else {block} to give a different link to users not logged in


    Hope this helps!

    Gez
    The reply is currently minimized Show
Your Reply