Output Functions
How to change the default text and/or appearance in any of the output related functions
Each function in the functions.inc.php has defaults. The text you see in there is just the defaults. Actually every bit of text you see - even text that comes from functions.inc.php - can be changed by editing the pages in the pages directory. Here is how:
You are used to use using part of this feature for settings say, in for example the PTSUÂ function. Normally you put:
<?php get_pts_ad('GROUPNAME'); ?>
and that's it - however there is much more that the feature can do. The following parameters can be changed in this function, they start from left to right, wherever you stop, the rest from that point will stay as the defaults. For example if you only put the group name then the rest will be the defaults however here is the entire command:
<?php get_pts_ad('GROUPNAME', '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,'<b><Next Page></b>','<b><Previous Page></b>','Paste your confirmation email message for the above site here','Submit confirmation email'); ?>
So for another example, if you want to change the pts.php page to show '<<' for Previous page and '>>' for Next page, instead of the default you normally see at the bottom of the page, you would replace the get_pts_ad command on the pts.php page to this:
&lt;?php get_pts_ad('GROUPNAME','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,' &gt;&gt; ',' &lt;&lt; '); ?&gt;
You would not need to put any of the remaining settings ('Paste your confirmation email message for the above site here','Submit confirmation email') because you are not wanting to change them. And if you wanted to also change the text that shows in the text box, you would just replace 'Paste your confirmation email message for the above site here' with the text you wanted, and include it in the command above.
This feature has been in the Cash Crusader scripts from day one - output for all pages could be changed without ever changing the files in the scripts directory. The structure of the functions will never change - if something new is added to it, it is added to the end of the function, so any custom templates a person makes will always continue to work. This also allows the CC scripts to support any language, any currency and any wording the site owner would like, without the changes ever being lost in an update. This applies to all the functions that output info to the members.
This section has the following topics.
- The Popup Adstats output field
- The PTSU Adstats output field
- The Banner Adstats output field
- The HTML Adstats output field
- The Email Adstats output field
- The PTC Adstats output field
- The Show Inbox output field
- The Downline Cash Earnings output field
- The Downline Point Earnings output field
- The Point Earnings output field
- The User’s Autosurf URL output field
- The Keyword Totals output field
- The Level Totals output field
- The Latest Visits output field
- The Create Turing output field
- The User Count output field
- The Redemption List output field
- The Get PaidToReview output field
- The Get PaidToSignup output field
- The Total Debits output field
- The Autosurf Links output field
- The Show Start Page output field
- The Show Levels output field
- The Get PaidToClicks output field
- The Get Ad output field
- The Cash Earnings output field
- The Cash Transactions output field
- The Show Autosurf URLs output field
- The Cash Totals output field
- The Point Transactions output field
- The Point Totals output field









CCI Chatterbox RSS Feed