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:
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.
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.
Members Only Content
This reply is for PremiumPress customers only.
Login Now