get pts ad

From CashCrusaderWiki

(Difference between revisions)
Jump to: navigation, search
(get_pts_ad function)
Current revision (18:12, 14 August 2013) (edit) (undo)
m
 
Line 8: Line 8:
'''Example usage to show all PTS ads:'''<br />
'''Example usage to show all PTS ads:'''<br />
-
''&lt;?php echo get_pts_ad('%'); ?&gt;''
+
''&lt;?php get_pts_ad('%'); ?&gt;''
'''Example usage to show PTS ads from adgroup "freebies":'''<br />
'''Example usage to show PTS ads from adgroup "freebies":'''<br />
-
''&lt;?php echo get_pts_ad('freebies'); ?&gt;''
+
''&lt;?php get_pts_ad('freebies'); ?&gt;''

Current revision

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