eMoneySpace
Welcome, Guest. Please login or register.
Did you miss your activation email?
News: Welcome to eMoneySpace! Dec 01, 2022 01:42 am




[FREE] Aurora mod.....Show number of referrals available for sale.
Print
Author Topic: [FREE] Aurora mod.....Show number of referrals available for sale.  (Read 1040 times)
friendishan
Reputation: (+64)
*

Offline

Gender: Male
Posts: 4204
Referrals: 6


Meet The Weirdos!

View Profile WWW
Jun 17, 2010 09:07 am

1) Open prices.php file and buyreferrals.php file in public_html
Find:-
Code:
$sql=$Db1->query("SELECT userid FROM user WHERE refered='' and username!='$username'");
$totalrefsavailable=$Db1->num_rows();
Add Above It:-
Code:
$sql=$Db1->query("SELECT userid FROM user WHERE refered=''");
$total=$Db1->num_rows();

Now find:-
Code:
<td>".iif($totalrefsavailable >= $packages['referrals'][0],"<input type=\"button\" onclick=\"buyref()\" value=\"Buy Now!\">")."</td>
</tr>
</table>
below that add
Code:
<p> Total Number of refs available is $total</p>

Very simple coding.

Enjoy~

If you need installation...Drop a PM Smiley

Note:- You may not sell the addon but you are free to sell installation of the addon Smiley
« Last Edit: Jun 19, 2010 02:27 am by friendishan » Logged

worthy
Reputation: (+20)
*

Offline

Gender: Male
Posts: 1143
Referrals: 8


Worthy Designs

View Profile
Reply #1: Jun 17, 2010 11:32 am

thanks
Logged

friendishan
Reputation: (+64)
*

Offline

Gender: Male
Posts: 4204
Referrals: 6


Meet The Weirdos!

View Profile WWW
Reply #2: Jun 19, 2010 02:27 am

thanks
Your Welcome,

Feel free to use it Smiley
Logged

Print
 
Jump to:  
Copyright © 2008-2022 eMoneySpace. All rights reserved.