Download the referral contest module for the fruit farm script for free
Instruction manual:
1. Upload files to the server
2. Making a dump from SQL.sql
3. Open the root file.htaccess and looking for:
RewriteRule ^account/farm(/?)+$ index.php?menu=account&sel=farm [L]
and below we insert:
RewriteRule ^competition(/?)+$ index.php?menu=competition [L] RewriteRule ^competition/list(/?)+$ index.php?menu=competition&list [L]
4. Open the file inc/_user_menu.php and below:
<div class=”field-gr”><a href=”/account/bonus”>Daily bonus</a></div>
Insert:
<div class=”field-gr”><a href=”/competition”><font color = “red”>Referral contest</font></a></div>
5. Open the file inc/_admin_menu.php and we are looking for:
<div class=”field-gr”><a href=”/?menu=admin4ik&sel=story_sell”>Sales on the market</a></div>
Insert below:
<div class=”field-gr”><a href=”/?menu=admin4ik&sel=compconfig”>Referral contest</a></div>
6. Open the file pages/_admin.php and in any place between the lines of the menu we insert:
case “compconfig”: include(“pages/admin/_compconfig.php “); break; // Contest management
7. Open the root _index.php and we are looking for:
case “account”: include(“pages/_account.php “); break; // Account
insert below:
case “competition”: include(“pages/_competition.php “); break; // Contests
8. Open the merchant’s file and before:
# Updating site statistics
$db->Query(“UPDATE db_stats SET all_insert = all_insert + ‘$ik_payment_amount’ WHERE id = ‘1’”);
Insert:
# Contest
$competition = new competition($db);
$competition->UpdatePoints($user_id, $ik_payment_amount);
#——–
Done 🙂