Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares
Reply
Thread Tools
  #1  
Old 28th February 2014, 10:31
Catralkid Catralkid is offline
Member
 
Join Date: Sep 2013
Spain
Posts: 12
Default Invites
Hi,

Is there any way of getting a list of members for my site and how many invites that they have. V 7.2
Reply With Quote
  #2  
Old 28th February 2014, 18:11
firefly007's Avatar
firefly007 firefly007 is offline
SUPPORT GURU
 
Join Date: Jun 2010
P2P
Posts: 721
Default
Quote:
Originally Posted by Catralkid View Post
Hi,

Is there any way of getting a list of members for my site and how many invites that they have. V 7.2
Try this but it might not work

Code:
 <?

 include "include/ts_functions.php";

  if (isset($_GET["action"])){$lim = $_GET["action"];}else{$lim = "10";} 

$result = sql_query("SELECT * FROM users ORDER BY class DESC,invites LIMIT 10");

echo "<table width='100%' cellspacing='4' cellpadding='4'>
<tr>
<th>name</th>
<th>Registered</th>
<th>Last Login</th>
<th>Last Access</th>
<th>invite</th>
</tr>";

while($row = mysql_fetch_array($result))
  {
  echo "<tr>";
  echo "<td>" . $row['username'] . "</td>";
  echo "<td>" . $row['added'] . "</td>";
  echo "<td>" . $row['last_login'] . "</td>";
  echo "<td>" . $row['last_access'] . "</td>";
  echo "<td>" . $row['invites'] . "</td>";
  echo "</tr>";
  }
Or try this

Code:
 if (isset($_GET["action"])){$lim = $_GET["action"];}else{$lim = "10";}
 
$db=mysqli_connect("localhost","root","PASSWORD","DB_NAME");  
  $result = mysqli_query($db,"SELECT * FROM users ORDER BY class DESC,invites LIMIT $lim");

echo "<table width='100%' cellspacing='4' cellpadding='4'>
<tr>
<th>name</th>
<th>Registered</th>
<th>Last Login</th>
<th>Last Access</th>
<th>invites</th>
</tr>";

while($row = mysqli_fetch_array($result))
  {
  echo "<tr>";
  echo "<td>" . $row['username'] . "</td>";
  echo "<td>" . $row['added'] . "</td>";
  echo "<td>" . $row['last_login'] . "</td>";
  echo "<td>" . $row['last_access'] . "</td>";
  echo "<td>" . $row['invites'] . "</td>";
  echo "</tr>";
  }
echo "</table>";
remember if you are going to use the second one, you will need to add your db info

If you want more results then do the following..

Code:
/filename.php?action=1000
and change the number to how many you wont all just add the TS7.2 pager function
__________________




Please Support Majority Report


You can contact me on Skype live:phesadent.elect but please let me know first.


If you are ever need me desperately then please email me at dan.oak44@gmail.com and I will contact u within a week.


Due to free time I'm able to help interested member's with their tracker.

Please Note!
Depending on your requests I will charge you for my assistance for Tracker installs and mods.
All my mods are custom and prices will very depending on the request.
I'm able to install any tracker and mods including themes.

Please PM me

Reply With Quote
The Following User Says Thank You to firefly007 For This Useful Post:
Marco (30th March 2014)
  #3  
Old 1st March 2014, 11:33
Catralkid Catralkid is offline
Member
 
Join Date: Sep 2013
Spain
Posts: 12
Default
Thank you for your reply Firefly, but that is all greek to me. Where do I add that to?
Reply With Quote
  #4  
Old 27th March 2014, 07:27
mehr672 mehr672 is offline
Member
 
Join Date: Mar 2014
P2P
Posts: 10
Default
You can add easily in 7.2 Just invite your friends to this site.
Reply With Quote
Reply

Tags
invites


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 11:36. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.