Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: 1.00, by Scott MacVicar Scott MacVicar is offline
Developer Last Online: Mar 2016 Show Printable Version Email this Page

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.

Comments
  #22  
Old 04-08-2002, 12:55 AM
Okiewan's Avatar
Okiewan Okiewan is offline
 
Join Date: Dec 2001
Posts: 199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #23  
Old 07-16-2002, 07:37 PM
*AKA*Geo*A* *AKA*Geo*A* is offline
 
Join Date: Dec 2001
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #24  
Old 12-06-2002, 04:38 PM
Cyberhouse Cyberhouse is offline
 
Join Date: Jun 2002
Location: Sweden
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ?
Reply With Quote
  #25  
Old 01-02-2003, 06:39 PM
fla5h's Avatar
fla5h fla5h is offline
 
Join Date: Dec 2002
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #26  
Old 01-26-2003, 09:23 AM
rburns's Avatar
rburns rburns is offline
 
Join Date: Mar 2002
Location: Tonbridge, Kent
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #27  
Old 01-27-2003, 08:34 AM
rburns's Avatar
rburns rburns is offline
 
Join Date: Mar 2002
Location: Tonbridge, Kent
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, sorted that, but it doesn't post a new thread, no errors either, anyone help?
Reply With Quote
  #28  
Old 02-01-2003, 01:31 PM
webhost's Avatar
webhost webhost is offline
 
Join Date: Oct 2001
Location: St. Louis
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 
Reply With Quote
  #29  
Old 02-01-2003, 04:36 PM
fla5h's Avatar
fla5h fla5h is offline
 
Join Date: Dec 2002
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
  #30  
Old 02-02-2003, 03:22 AM
webhost's Avatar
webhost webhost is offline
 
Join Date: Oct 2001
Location: St. Louis
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks got it working you were correct
Reply With Quote
  #31  
Old 02-02-2003, 11:09 AM
BaBa2002 BaBa2002 is offline
 
Join Date: Nov 2001
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:33 PM.


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.04941 seconds
  • Memory Usage 2,326KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete