Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
Auto confirm users
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2008-03-28 14:48:36
add somwhere in admin panel:

#======================================================================
#

#    Auto Conf Reg

#    By Fyver

#    ported from V1.XX to V2.XX

#======================================================================#

if($action == "Autoconfirmall")

{

stdhead("Auto Registration Confirm");

navmenu();

begin_frame("Auto Confirm");

$res = mysql_query("SELECT id,username,status FROM users WHERE status = 'pending'");

if (mysql_num_rows($res) < 1){

echo"<BR><BR>None Found, please remember that pending accounts expire after 3 days<BR><BR>";

end_frame();

stdfoot();

die;

}

while ($row = mysql_fetch_array($res)) {

$id = $row["id"];

$name = $row["username"];

mysql_query("UPDATE users SET status='confirmed' WHERE id=$id");

echo "User " . $name . " Changed to 'confirmed' \n";

echo " \n";

}

End_frame();

}

Then find:

<td align="center"><a href=admincp.php?action=censor><img src="images/admin/censor.png" border=0 width=32 height=32><BR>Word Censor</a><BR></td>


After add:

<td align="center"><a href=admincp.php?action=Autoconfirmall><img src="images/admin/autoconfirm.gif" border=0 width=32 height=32><BR> Auto Confirm Accounts</a><BR></td>


The problems are:

-the data you get is a bit sticked together.

-Someone should add a confirm button or even better some check boxes so you can select who you like to confirm.

I have tested it and it worked perfectly!
Unknown User
2008-03-28 18:33:05
v2.03 and 2.04 has a Manual Registration Confirm in the admincp.php just look at that code and take what you need.
Unknown User
2008-03-28 19:18:08
if ($action == "confirmall") {

stdhead("Confirm Accounts");

navmenu();

begin_frame("Confirm Accounts");



$res = mysql_query("SELECT id, username, status FROM users WHERE status = 'pending'");



if (mysql_num_rows($res) < 1)

show_error_msg("Error", "No users found, please remember that pending accounts expire after 3 days", 0);



while ($row = mysql_fetch_array($res)) {

mysql_query("UPDATE users SET status='confirmed' WHERE id=$row[id]");

echo "User '$name' changed to 'confirmed'<BR>";

}



end_frame();

stdfoot();

}

<td align="center"><a href=admincp.php?action=confirmall><img src="images/admin/autoconfirm.gif" border=0 width=32 height=32><BR>Confirm All Accounts</a><BR></td>
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728