get pts ad

From CashCrusaderWiki

Jump to: navigation, search

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 get_pts_ad('%'); ?>


Example usage to show PTS ads from adgroup "freebies":

<?php 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>');
?>
Personal tools
Administration manual