an
groups-icon

Change what claim listing button does

Wait a minute... This content is very very old. We no longer sell or support this theme version. New Topics
  • Version 9
    Adrian Jones
    0 points
    Beginner

    I have just amended the PHP for the claim listing button so instead of telling people the email address they are registered with isnt matched, it just loads the contact owner form and they can request to claim the listing.
    I did this using this line:

    <a href="#contactForm" <?php if ( $userdata->ID ){ echo 'onclick="document.ClaimListing.submit();"'; }else{ ?>onclick="alert('<?php echo $PPT->_e(array('ajax','1')); ?>');"<?php } ?> class="button green showform" rel="nofollow"><?php echo $PPT->_e(array('membership','8')); ?></a>

    Problem is that if the user is not logged in, they get the message to say they need to be logged in and THEN the form loads afterwards, how can I get it so that if they are logged in they get the message and then no form.

    July 17, 2013 at 8:49 pm
  • Troy Assaly
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    July 17, 2013 at 10:44 pm

514

Views

1

Replies