vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   NewThread with member info on register (https://vborg.vbsupport.ru/showthread.php?t=34361)

Okiewan 04-08-2002 12:55 AM

What info is it supposed to supply?

I'm getting :
Quote:

MXbillMX
There is a new user, MXbillMX at DRN Forums

To view their profile, go here:

http://xxx.xom/forums3/me...fo&userid=29797

Email Address : mxbilly@dirtrider.net
Homepage : http://
Birthday : 1980-8-22
Which is cool, but really need :
Quote:

Biography :
Location :
Interests :
Occupation :
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.

*AKA*Geo*A* 07-16-2002 07:37 PM

this is almost perfect for my needs, but I need a means of setting up an automatic simple yes or no poll with each request, how would I go about this?

Cyberhouse 12-06-2002 04:38 PM

I don?t know if this one is working on vb2.2.7 but I have some SQL problems when a user register :(

can i post the sql errors in here ?

fla5h 01-02-2003 06:39 PM

Quote:

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.

Maybe an old thread, but this looks a nice hack.

the beginning of this hack where is starts

PHP Code:

  if($newregthread) { 

After it add

PHP Code:

 $userinfo=getuserinfo($userid); 

then you can use
PHP Code:

$userinfo[field1

etc etc

rburns 01-26-2003 09:23 AM

How do i run the 2 SQL queries and I also don't know how to do this:

you should immediately go change the forumid specified via the admin panel so new users won't have problems when registering

Sorry but am new to all this

rburns 01-27-2003 08:34 AM

Ok, sorted that, but it doesn't post a new thread, no errors either, anyone help?

webhost 02-01-2003 01:31 PM

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 (settingidsettinggroupidtitlevarnamevaluedescriptionoptioncodedisplayorderVALUES (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 (settingidsettinggroupidtitlevarnamevaluedescriptionoptioncodedisplayorderVALUES (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 


fla5h 02-01-2003 04:36 PM

go into your admin control panel, Vbulletin Options

Registration Options

And you will see a option for post a thread when member joins ?

Is it on yes ?

Then there is an id of the forum to post the thread in, make sure that is set (116 in your case)

webhost 02-02-2003 03:22 AM

thanks got it working you were correct

BaBa2002 02-02-2003 11:09 AM

where do i have to modify i which thread ID that it have to be located


All times are GMT. The time now is 08:43 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01167 seconds
  • Memory Usage 1,759KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete