The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Take a look at the second-to-last line (DB_site).
Code:
// ###################### Start do moderate and coppa #######################
if ($HTTP_POST_VARS['action']=="domoderate") {
while (list($key,$val)=each($validate)) {
if ($val==1) {
$user=$DB_site->query_first("SELECT username,email FROM user WHERE userid=$key");
$username=unhtmlspecialchars($user[username]);
eval("\$message = \"".ereg_replace("\"","\\\"",$email)."\";");
eval("\$subject = \"".ereg_replace("\"","\\\"",$subject)."\";");
mail ($user[email],$subject,$message,"From: $webmasteremail");
$DB_site->query("UPDATE user SET usergroupid=2 WHERE userid=$key");
}
}
echo "<p>Accounts validated and users notified</p>";
}
So, instead of SET usergroupid=2, I'd like it to say, SET usergroupid=field8. Except, this doesn't work - I don't know how to properly insert the value of field8 into usergroupid. Any suggestions? |
|
#2
|
||||
|
||||
|
replace this:
PHP Code:
PHP Code:
|
|
#3
|
|||
|
|||
|
But... it didn't work.
Here's the error message: Quote:
|
|
#4
|
|||
|
|||
|
by the way, my registration form is edited so that users can only select from a menu of values - and admin's not on there!
My URL is http://www.zbths.net/noiz/register.php - if that can help you. |
|
#5
|
||||
|
||||
|
look at the errormessage, you've uploaded a corrupted file, be sure you upload an ascii file
as you can see all spaces have been converted to an Ê, redo this change |
|
#6
|
|||
|
|||
|
The rest of user.php still works... but when I go to process my users (aka, set usergroupid=field8), I get the error message, and an e-mail with the corrupted-looking characters.
Any idea? Thank you so much. -galen |
|
#7
|
||||
|
||||
|
yes it is corrupted, perhaps you use an editor which corrupts the file at the edited lines.
try to use notepad instead |
|
#8
|
|||
|
|||
|
but here's the new error message:
Quote:
-galen |
|
#9
|
|||
|
|||
|
Nevermind! I found the problem - you had added an "s" to userfield.
Thank you for your help. You rock! Is there a way I can commend you? -galen |
|
#10
|
||||
|
||||
|
damn typings
![]() It's my job to help people here
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|