The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
SQL Statement request - Easy if you know how! ;)
hi, could anyone help me write a sql code to do the following:
Every hour, I wish to ask cron to run my /forum/admincp/includes/cron/postnuke.php Inside theis file I put: PHP Code:
It connects to the DB and deletes all my post nuke users, but nothing else. Thanks again! |
#2
|
||||
|
||||
Hmm ... wouldn't it be easier to modify PostNuke to verify accounts against your existing vB 3 user table?
|
#3
|
|||
|
|||
Quote:
Ive been playing with this for 5 hours now Would you help me with some guidance? or could anyone else commment or advise this? i seache dthis forum but to no avail |
#4
|
|||
|
|||
I agree with KirbyDE... once your member list gets large that'll become one intensive script.
It's hard to say how difficult it would be to make postnuke use your vb database, but it would be the better way to go. |
#5
|
|||
|
|||
well, maximum 10,000 ever members i suppose, so not too bad
|
#6
|
||||
|
||||
I'll take a look into it within the next few days and keep you posted.
|
#7
|
|||
|
|||
Would this work?
<FONT size=2> PHP Code:
|
#8
|
|||
|
|||
I don't believe you can do an insert like that... I believe you'd have to insert each member separately.
replacing Code:
$query=mysql_query("INSERT INTO ".$user_prefix."_users (uid,uname,email,url,pass,user_icq,user_aim,user_yim) select userid,username,email,homepage,password,icq,aim,yahoo from user"); Code:
while($user = mysql_fetch_array($result)) { $query=mysql_query("INSERT INTO ".$user_prefix."_users (uid,uname,email,url,pass,user_icq,user_aim,user_yim) VALUES ('$user[userid]', '$user[username]', '$user[email]', '$user[url]', '$user[password]', '$user[icq]', '$user[aim]', '$user[yahoo]'"); } |
#9
|
|||
|
|||
hmmm, well, i so love the hacked postnuke ive made, but i cannot bear to have it and require two seperate logins, its madness.
|
#10
|
|||
|
|||
it shouldn't be too difficult to make postnuke use your vbulletin login. I haven't had time to try it yet... will soon
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|