Poll: Did You Find This Tweak Useful?
You do not have permission to vote in this poll.
Yes, that's great (please give me a forum rep like)
100.00%
2 100.00%
No, not really
0%
0 0%
Total 2 vote(s) 100%
* You voted for this item. [Show Results]

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Total System Coins in Circulation
#1
Dear All

A member recently asked how to see the total number of coins in circulation on PES Pro. This tweak will do the job assuming that you are using 1.8.4 (latest version at time of writing this)

IMPORTANT
1. Back up the original page first!
2. Use Dreamweaver (better as it has line numbers) or Notepad only for editing, to avoid adding any spurious code - do not use Front Page or WordPad
3. You may have to re-do this tweak following future version updates that replace the footer.php page - so note it down if it's important to you
4. If in doubt Huh - don't do it!

Tweak - Display Total System Coins to Admin
1. Open footer.php in Notepad or preferably Dreamweaver
2. Look for the following code string - should be in the middle of the page (this is the code that displays the script load and database queries in small black text at the bottom of the screen)

<?if($data['admin'] == 1){?><p align="center" style="font-size:12px">Script: <?=(round(microtime(true)-$starttime - $db->UsedTime, 4))?> sec - Database: <?=(round($db->UsedTime, 4))?> sec - MySQL Queries: <?=$db->GetNumberOfQueries()?>
</p><?}?>

3. Insert this code string immediately before the closing </p>

<?
$sql = $db->Query("SELECT SUM(coins) as system_coins FROM users");
$row = $db->FetchArray($sql);
$totalsystemcoins = $row['system_coins'];
?> &nbsp;System Coins: <?=$totalsystemcoins?>

Save file and replace on server

When you login the total system coins will now display in small black text at the very bottom of your page

PROBLEMS?
Any problems replace the edited file with the original file you backed up earlier.

I hope you find this useful Smile

Steve
Regards

Steve Head, Content Manager
Hidden content for guests

Did we help? Please give us a Forum Rep+1, and/or buy my team a coffee Hidden content for guests

Reply
#2
Thanks for posting this, works well!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)

About MN Shop

MafiaNet Shop is an online store where you can buy powerful scripts, cool templates, graphic components and many other digital goods.

              Quick Links

              User Links

              Advertise