Help - Search - Members - Calendar
Full Version: Silly CC script questions
Get Paid Forum - Get Paid Discussion > Webmaster's Corner > General Discussion on Building, Running & Making Money from a Website
ladynadiad
Okay, I just have a few questions with the CC script, basically minor issues to make the site appear better. Feel free to explain in geek, I do understand at least html smile.gif

1. How do you get the member count to appear at the bottom? For some odd reason, that is missing on my site, I also don't have the side menu most sites have, is there a piece of the script I should be including that was forgotten in conversion, as CAC scripts lack them?

2. How in the heck do I get member's downline counts to appear? Right now the enter.php page isn't showing the downline or bonus referrals, this one is a bit more major, as members likely soon will get concerned about if their upgrades transferred and how many referrals they have right now (even though they transferred fine).

Basically with that, I have the table with earnings and cash and point credits/debits, but nothing about downline or bonus referrals.

Should be pretty simple to figure out, but I can't just look up the code from another site by viewing source, tried that and it didn't help me (is has all the code bits to make the thing appear)

3. How do you add in the rotating banners? I don't have any on my site right now, but I want them in the header and runner pages, just need to know the code piece for this.

Thanks in advance for the help!

Becky
Halsten
I can help with the member count smile.gif

Ad this to your index.php page:

<table width="520" border="0" cellspacing="5" cellpadding="5" align="center">
<tr><td colspan="2"><center><font size="3"><b>Total Members</b></font></i><b><font size="2"><br>
<? usercount();?></td></center></tr>


With the downline counts, you need to run your cronjobs....my hosting set this up for me, but if you refresh your main page (in cpanel) a cron jobs message should appear....you can run that by clicking the link.... although you need to be online all the time to do it this way.


Cheers!
Lorelle
ladynadiad
Thanks, that's one down at least smile.gif
dedj1234
Here is the code for the referrals.


CODE
<hr width="100%" align="center">
<table border="0" cellspacing="1" cellpadding="1" width="100%" height="237">
<tr>
<td width="34%" valign="top">
<table width="100%" border="1" bgcolor="#f8f8f8">
<tr>
<td align="center" bgcolor="gray"><font size="2"><b><font color="#FFFFFF">Gold
Member</font><br>
<font color="#FFFFFF">Bonus Referrals</font></b></font></td>
</tr>
<tr>
<td align="center"> <font size="2" color="#000000">
<? user("free_refs");?>
</font></td>
</tr>
</table>
<? show_levels();?>
<table border=1 bgcolor=#F8F8F8 width=100%>
<tr bgcolor="gray">
<td colspan=2>
<center>
<font size="2"><b><font color="#FFFFFF">Downline Count</font></b> </font>
</center>
</td>
</tr>
<tr>
<td><font size="2"><b><font color=000000>Total:</font></b></font></td>
<td align=center width="68%"><font size="2"><b><font color=000000>
<? level_total();?>
</font></b></font></td>
</tr>
</table>
</td>
Members marked with a * are people that you have referred.



Or this is the code for the full page.

CODE
<? include("setup.php");?>
<? login();?>
<? include("header.php");?>
<? include("account_menu.php");?>
<p align="center"><? getad('%');?></p>
<h1 align="center"><font size="2"><strong></strong></font>Hello,
<? user('first_name');?>
</h1>
<b><font face="arial" size="2"><br>
</font></b>
<table border=0 width="450" align="center">
<tr>
<td valign=top>
<table width=100% cellpadding=4 border=1 bgcolor=gray>
<tr>
<td align=right><font size="2"><b><font color="ffffff">You have directly earned:</font></b></font></td>
<td align=right><font size="2"><b><font color="yellow">$
<? cash_earnings();?>
</font></b></font></td>
</tr>
<tr>
<td align=right><font size="2"><b><font color="ffffff">You have earned from your
Downline:</font></b></font></td>
<td align=right><font size="2"><b><font color="yellow">$
<? dlcash_earnings();?>
</font></b></font></td>
</tr>
<tr>
<td align=right><font size="2"><b><font color="ffffff">Your account balance after
all transactions:</font></b> </font>
<td align=right><font size="2"><b><font color="yellow">$
<? cash_totals();?>
</font></b></font></td>
</tr>
</table>
<table width=100% cellpadding=4 border=1 bgcolor=#f8f8f8>
<tr>
<td align=right> <font size="2"><b><font color="000000">You have directly earned:</font></b></font></td>
<td align=right><font size="2"><b><font color="blue">
<? points_earnings();?>
&nbsp;Points</font></b></font></td>
</tr>
<tr>
<td align=right><font size="2"><b><font color="000000">You have earned from your
Downline:</font></b></font></td>
<td align=right><font size="2"><b><font color="blue">
<? dlpoints_earnings();?>
&nbsp;Points</font></b></font></td>
</tr>
<tr>
<td align=right><font size="2"><b><font color="000000">Total available points
after all transactions:</font></b></font></td>
<td align=right><font size="2"><b><font color="blue">
<? points_totals();?>
&nbsp;Points</font></b></font></td>
</tr>
</table>
<hr width="100%" align="center">
<table border="0" cellspacing="1" cellpadding="1" width="100%" height="237">
<tr>
<td width="34%" valign="top">
<table width="100%" border="1" bgcolor="#f8f8f8">
<tr>
<td align="center" bgcolor="gray"><font size="2"><b><font color="#FFFFFF">Gold
Member</font><br>
<font color="#FFFFFF">Bonus Referrals</font></b></font></td>
</tr>
<tr>
<td align="center"> <font size="2" color="#000000">
<? user("free_refs");?>
</font></td>
</tr>
</table>
<? show_levels();?>
<table border=1 bgcolor=#F8F8F8 width=100%>
<tr bgcolor="gray">
<td colspan=2>
<center>
<font size="2"><b><font color="#FFFFFF">Downline Count</font></b> </font>
</center>
</td>
</tr>
<tr>
<td><font size="2"><b><font color=000000>Total:</font></b></font></td>
<td align=center width="68%"><font size="2"><b><font color=000000>
<? level_total();?>
</font></b></font></td>
</tr>
</table>
</td>
Members marked with a * are people that you have referred.
<td width="66%" valign="top">
<table border=1 bgcolor=#f8f8f8 width=100%>
<tr bgcolor=gray>
<td align=center colspan=2><font size="2"><b><font color="#FFFFFF">Account Transactions</font></b></font></td>
</tr>
<tr bgcolor=gray>
<td colspan=2 align=center><font size="2"><b><font color="#FFFFFF">Cash Credits</font></b></font></td>
</tr>
<? cash_transactions("credits","<tr><td align=right><font size=-2 face=arial color=000000>","</td><td align=right><font size=-2 face=arial color=000000>$","</td></tr>");?>
<tr>
<td align=right><font size="2"><b><font color="000000">Total Cash Credits:</font></b></font></td>
<td align=right><font size="2" color="000000"><b>$
<? cash_totals("credits");?>
</b></font></td>
</tr>
<tr bgcolor=gray>
<td align=center colspan=2><font size="2"><b><font color="#FFFFFF">Cash Debits</font></b></font></td>
</tr>
<? cash_transactions("debits","<tr><td align=right><font face=arial size=-2 color=000000>","</td><td align=right><font size=-2 face=arial color=000000>$","</td></tr>");?>
<tr>
<td align=right><font size="2"><b><font color="000000">Total Cash Debits:</font></b></font></td>
<td align=right><font size="2" color="000000"><b>$
<? cash_totals("debits");?>
</b></font></td>
</tr>
<tr bgcolor=gray>
<td colspan=2 align=center><font size="2"><b><font color="#FFFFFF">Point Credits</font></b></font></td>
</tr>
<? point_transactions("credits","<tr><td align=right><font size=-2 face=arial color=000000>","</td><td align=right><font size=-2 face=arial color=000000>","</td></tr>");?>
<tr>
<td align=right><font size="2"><b><font color="000000">Total Point Credits:</font></b></font></td>
<td align=right><font size="2" color="000000"><b>
<? points_totals("credits");?>
</b></font></td>
</tr>
<tr bgcolor=gray>
<td align=center colspan=2><font size="2"><b><font color="#FFFFFF">Point Debits</font></b></font></td>
</tr>
<? point_transactions("debits","<tr><td align=right><font face=arial size=-2 color=000000 >","</td><td align=right><font size=-2 face=arial color=000000>","</td></tr>");?>
<tr>
<td align=right> <font size="2"><b><font color="000000">Total Point Debits:</font></b></font></td>
<td align=right><font size="2" color="000000"><b>
<? points_totals("debits");?>
</b></font></td>
</tr>
<tr align="center">
<td colspan="2"><font size="2"><b><font color="000000"> Ready to cash out?</font><br>
<font color="000000"> <a href="/pages/redeem.php">Visit your Redemption page.</a></font></b></font></td>
</tr>
</table>
</td>
</tr>
</table>
<hr width="100%" align="center">
</td>
</tr>
</table>
<table border=0 cellpadding=4 align="center">
<tr>
<td>
<center>
<font size="2"><b>Recent advertiser that you have received credit for visiting</b>
</font>
</center>
<hr>
<font size="2"><b>
<? latest_visits(5);?>
</b></font></td>
</tr>
</table>
<b><font face="arial" size="2"><br>
</font></b><b><font face="arial" size="2">
<? include("footer.php");?>
</font></b><font face="arial" size="2"></font>
EliteClicks
QUOTE (ladynadiad @ Mar 27 2004, 02:31 AM)
3.  How do you add in the rotating banners?  I don't have any on my site right now, but I want them in the header and runner pages, just need to know the code piece for this.


I believe this is what you need to put there.

<? getad("%");?>



ladynadiad
Thanks guys! You are awesome!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.