Version: 1.00, by Scott MacVicar
Developer Last Online: Mar 2016
Version: 2.2.x
Rating:
Released: 01-21-2002
Last Update: Never
Installs: 20
No support by the author.
This hack was requested by Joe and is ideal for review of users in a private mod / admin forum. This involves very little effort to install and is a great asset, to dealing with problem users as it allows other mods to report on a user. I've found that mods and admins aren't always on at the same time.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
In addition. Tough thing to do? I'd prefer that my mods not have to go to the bio, with 60+ new members each day, I need to save them all the time I can.
Originally posted by Okiewan What info is it supposed to supply?
I'm getting :
Which is cool, but really need :
In addition. Tough thing to do? I'd prefer that my mods not have to go to the bio, with 60+ new members each day, I need to save them all the time I can.
same here using 2.2.9 all works except it does not make the post, no errors just no post
Edit
made new forum the forum id is 116 so what I change in the queries and also the code below.
PHP Code:
INSERT INTO setting (settingid, settinggroupid, title, varname, value, description, optioncode, displayorder) VALUES (NULL, '6', 'New Thread on Registration', 'newregthread', '1', 'Post a new thread to the forum identified below when a user registers', 'yesno', '18')
INSERT INTO setting (settingid, settinggroupid, title, varname, value, description, optioncode, displayorder) VALUES (NULL, '6', 'Forum to post to for a new registration', 'newregthreadforumid', '1', 'The Forumid to post a new thread to when a user registers', '', '19')
you should immediately go change the forumid specified via the admin panel so new users won't have problems when registering
-------------
register.php
-------------
go to line 459, look for
$DB_site->query("UPDATE_session_SET_userid=$userid_WHERE_sessionhash='".addslashes($session['dbsessionhash'])."'");
below it add
//Start Hack to Post userinfo to a forum
if($newregthread) {
$DB_site->query("INSERT INTO thread (threadid,title,lastpost,forumid,open,replycount,postusername,postuserid,lastposter,dateline,iconid,visible,attach) VALUES (NULL,'".addslashes(htmlspecialchars("$username"))."','".time()."','$newregthreadforumid','1','0','".addslashes("Auto Poster")."','0','".addslashes("Auto Poster")."','".time()."','0','1','0')");
$threadid=$DB_site->insert_id();
eval("\$message = \"".gettemplate("email_newuser")."\";");
$message=parseurl($message);
$DB_site->query("INSERT_INTO_post_(postid,threadid,title,username,userid,dateline,attachmentid,pagetext,allowsmilie,showsignature,ipaddress,iconid,visible)_VALUES_(NULL,'$threadid','".addslashes(htmlspecialchars("$username"))."','".addslashes("Auto Poster")."','0','".time()."','0','".addslashes($message)."','0','','','0','1')");
$postid=$DB_site->insert_id();
$foruminfo=getforuminfo($newregthreadforumid);
$DB_site->query("UPDATE forum SET replycount=replycount+1,threadcount=threadcount+1,lastpost='".time()."',lastposter='".addslashes("Auto Poster")."'_WHERE_forumid_IN_($foruminfo[parentlist])");
}
//END Hack to Post userinfo to a forum