get pts ad
From CashCrusaderWiki
(Difference between revisions)
Revision as of 19:13, 26 October 2012
Use get_pts_ad() function to show paid to sign up advertisements. There is one required parameter for the adgroup and optional parameters for translating the output.
Required CashCrusader version: 2.00
Required CashCrusader version: 2.27 (with country targeting)
Example usage to show all PTS ads:
<?php echo get_pts_ad('%'); ?>
Example usage to show PTS ads from adgroup "freebies":
<?php echo get_pts_ad('freebies'); ?>
Complete example including translation:
<?php get_pts_ad('%', 'Sign-up for the site above to earn', 'Sorry, no sites are available for you to sign-up for at this time', 'point(s)', 'cent(s)', 1, 'Next Page','Previous Page', 'Paste your confirmation email message for the above site here', 'Completed','<hr><br>'); ?>