Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 19, 2012, 06:54:18 AM
News:
Our Forum is moving FAST. Updates happen daily so do not be alarmed !
Home
Help
Search
Login
Register
auroraadmintraining.info
>
Fixes, Mods, Help etc.
>
Aurora Fixes
>
Fix for Aurora: Click bonus not working correctly
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: Fix for Aurora: Click bonus not working correctly (Read 211 times)
757jterrell
Administrator
Hero Member
Offline
Posts: 1637
Fix for Aurora: Click bonus not working correctly
«
on:
September 23, 2011, 10:13:17 PM »
We have found some errors created when the daily click bonus was rewritten to no longer run through the site settings.
This fix as been added to the SDR 3 October 1, 2011 Update.
1st item to fix:
Go to your members/contest.php file around lines 108 and add what has been added in bold:
if($settings[cbonus_on]==1) {
$sqlw=$Db1->query("SELECT * FROM cbs WHERE id='1'");
$tempw = $Db1->fetch_array($sqlw);
$sqlz=$Db1->query("SELECT * FROM specials WHERE cbonus='1'");
$tempb = $Db1->fetch_array($sqlz);
$sqlh=$Db1->query("SELECT * FROM special_benefits WHERE special='$tempb[id]'");
while($tempz = $Db1->fetch_array($sqlh)) {
$benefits_speciallist.="
Now go down to line 129 and make it look like this (what is in bold is what changed)
<p>Each day, the members who have clicked <b>at least
$tempw[macbonus]
ads</b> will receive as follows:
2nd item to fix:
Now you will want to go to your members/profile file to update some of the settings there so the members can see the number of clicks required to get the bonus:
go to line 280, change this line:
$remainads=$settings[min_ads_cbonus]-$thismemberinfo[viewz];
to this, add what is in bold:
$sqlw=$Db1->query("SELECT * FROM cbs WHERE id='1'");
$tempw = $Db1->fetch_array($sqlw);
$remainads=
$tempw[macbonus]
-$thismemberinfo[viewz];
now go down to lines 619 to 634 and make it look like this (what is in bold has changed):
".iif($settings[cbonus_on]==1,"
<tr>
<td colspan=2 class=\"tableHead\"><b>Daily Click Status (PTC, PTR, xChange & eMails)</b></td>
</tr>
<tr>
<td>Total Ads Count: </td>
<td>
$tempw[tads]
</td>
</tr>
<tr>
<td>Min Ads to Click: </td>
<td>
$tempw[macbonus]
</td>
</tr>
<tr>
<td>Your total click Today: </td>
<td>$thismemberinfo[viewz]</td>
</tr>
3rd item to fix:
Now we go to the actual working of the bonus, go to your source/clicking/verifyClick.php file lines 158 and make it look like this (what is in bold is what was added or changed):
$sqlw=$Db1->query("SELECT * FROM cbs WHERE id='1'");
$tempw = $Db1->fetch_array($sqlw);
$sqll=$Db1->query("SELECT viewz,cbonus FROM user WHERE username='$username'");
$checkusr = $Db1->fetch_array($sqll);
if(($checkusr[viewz] >=
$tempw[macbonus]
) and ($settings[cbonus_on] == 1) and ($checkusr[cbonus] == 0)) {
$sqlh=$Db1->query("SELECT * FROM special_benefits WHERE special='$settings[cbonus]'");
while($bonus = $Db1->fetch_array($sqlh)) {
$sqls=$Db1->query("UPDATE user SET $bonus[type]=$bonus[type]+$bonus[amount], cbonus='1' WHERE username='$username'");
}
}
«
Last Edit: September 24, 2011, 09:38:03 AM by 757jterrell
»
Logged
Check out the SDR 3 NOW!!
Upgrade Now!!!
Upgrade to an SDR 3
Buy4Less
SDR Reseller
Jr. Member
Offline
Posts: 50
Scripts, Premade Website & Low Cost Hosting
Re: Fix for Aurora: Contest page not showing # of clicks for Daily click bonus need
«
Reply #1 on:
September 23, 2011, 10:20:10 PM »
Thanks for your help & support John
Buy4Less
Logged
Get a SDR 3 NOW at http://ptcfactory.info
The best and most up to date Aurora script in the market!!
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Forum
-----------------------------
=> General Information
=====> Things going into the premium
-----------------------------
Fixes, Mods, Help etc.
-----------------------------
=> Aurora Help & Support
=> SDR 3 Help
=> Aurora Fixes
=> Aurora Security Updates
=> Free Mods
=> Developers
=> Designs & Layouts
=> Cpanel Help
=> Unauthorized Sellers
-----------------------------
Owners Corner
-----------------------------
=> Tips & Recommendations
=> Advertising Exchange Offers
=> Cheaters List
-----------------------------
Chit-Chat
-----------------------------
=> Chit-Chat
=> Member Introductions
=> List Your Website
=> Non-English Forum
-----------------------------
Resources
-----------------------------
=> Templates for Sale
=> Addons for Sale
=> Forums
=> Great Traffic
=> Hosting
-----------------------------
SDR 3 (& SDR 2s after 2-15-11 Update) Operating Instructions
-----------------------------
=> General Info
=> Site Functions
=> Selling
=> Orders
=> Payouts
=> Ad Functions
=> Manage Ads
=> Members
=> Find Cheaters
=> Communication
=> Tools
-----------------------------
Aurora Script General Instructions
-----------------------------
=> Admin Panel: Support Tickets
=> Admin Panel: Stats
=> Admin Panel: Orders
=> Admin Panel: Lottery
=> Admin Panel: Payouts
=> Admin Panel: Manage Ads
=> Admin Panel: Members
===> Manage
===> Referrals
=> Admin Panel: Communication
=> Admin Panel: Tools
===> Anti Cheating
===> Point Store
===> Site Content
===> Specials
=> Admin Panel: Settings
===> Selling
===> Site Settings
===> Members Settings
===> Admin Panel
Loading...