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 OldManWillow OldManWillow is offline
Developer Last Online: Mar 2002 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 02-23-2002 Last Update: Never Installs: 23
 
No support by the author.

Ok. I have edited PPN's new member in a forum hack to welcome someone into any forum on your board.
Basically if you want to welcome a member and have your current members welcome them this is the hack for you.
Check out the text file it has all you need to do it.
Thanks to PPN for the majority of this hack! 99% of the credit goes to him.
You can see it in action here:
http://www.lotronline.com/forums/for...p?s=&forumid=3
Comments and questions are appreciated!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 03-27-2002, 03:36 PM
Karri's Avatar
Karri Karri is offline
 
Join Date: Feb 2002
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bump...
Reply With Quote
  #43  
Old 04-08-2002, 01:37 PM
diettalk's Avatar
diettalk diettalk is offline
 
Join Date: Jan 2002
Location: Maryland
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I cannot run a sql query.. can someone please make me an Install script for the query.. thanks.

Also is there a FAQ about how to read about queries? I'm interested. Thanks.
Reply With Quote
  #44  
Old 04-10-2002, 02:48 AM
hypedave's Avatar
hypedave hypedave is offline
 
Join Date: Nov 2001
Location: Dallas, Tx
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

in stead of it haveing the post created from autoposter
how do I get it to have my name as the thread creator ?
Reply With Quote
  #45  
Old 05-02-2002, 10:37 AM
sub's Avatar
sub sub is offline
 
Join Date: Apr 2002
Location: Va.
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is my first contribute to help ppl so here is some of you all answers to your questions and something more. :laugh:


PHP Code:
(NULL,'".addslashes(htmlspecialchars("$username"))."','".time()."',
'$newregthreadforumid','1','0','".addslashes("YOURUSERNAME")."','USERID#','"
.addslashes("Auto Poster")."'
,'".time()."XXX','0','1','0')"); 
Edit the these feilds to your desire:
YOURUSERNAME: This is where you put your username at
USERID#: Your user ID # goes there too like mine is 1
XXX: SIGGIE Option Variable: 0 for OFF and 1 for ON
(I renamed the feilds to above for easy reading but you get the idea)

as for the welcome text in the subject:
PHP Code:
$DB_site->query("INSERT INTO thread (threadid,title,lastpost,forumid,open,replycount,postusername,postuserid,lastposter,dateline,iconid,visible,attach) VALUES (NULL,'".addslashes(htmlspecialchars("Welcome $username"))."','".time()."','$newregthreadforumid','1','0','".addslashes("YOURUSERNAME")."','USERID#','".addslashes("YOURUSERNAME")."','".time()."','0','1','0')"); 
Look above and see "Welcome $username" thats where you edit the subject feild. Take care and have fun!

I hope I helped you all and no pun to the creator of this hack, just helping out.

Oh and BTW. GREAT HACK! Congrats!
Reply With Quote
  #46  
Old 09-20-2002, 09:42 PM
Dark Shogun Dark Shogun is offline
 
Join Date: Aug 2002
Location: The Underworld
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can anyone tell me how to make it so that my account is the account that introduces the new people because I tried these instructions and it doesn't work for me.

Dark Shogun
Reply With Quote
  #47  
Old 01-05-2003, 09:53 PM
MGSteve MGSteve is offline
 
Join Date: Aug 2002
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent stuff, cheers!
Reply With Quote
  #48  
Old 01-06-2003, 03:17 AM
Bison's Avatar
Bison Bison is offline
 
Join Date: Jun 2002
Location: Virginia Beach, Virginia
Posts: 522
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'd like to know how to get this to work if you manually add(+) a user! I added this to my admin/user.php file but the thread came up blank!

Update:

I did get it to post the username into the thread title but the "welcome_newuser" template contents wouldn't print inside the thread ....

Any suggestions?
Reply With Quote
  #49  
Old 07-30-2003, 03:06 AM
eyeman eyeman is offline
 
Join Date: Jul 2003
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was looking for some help and some select have helped while I was searching for my membership info...I have it now and just wanted to say thank you for the help...
Reply With Quote
  #50  
Old 08-05-2003, 06:10 PM
eyeman eyeman is offline
 
Join Date: Jul 2003
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am learning php, mysql is limited, do I need to mess with the database to install this welcome script?
Reply With Quote
  #51  
Old 10-09-2003, 07:39 PM
dontpanic dontpanic is offline
 
Join Date: Jun 2003
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you want to update the post count of the user you have configured the welcome to come from, just add this code:

PHP Code:
$DB_site->query("UPDATE user SET posts=posts+1+WHERE+userid=XX"); 
Change the XX to match the userid of the user you have configured. This code gets added just above the tail end of the hack:

PHP Code:
  }

//END Hack to Post userinfo to a forum 

Great hack! I have been personally welcoming new users manually...not it will be done automatically for me, invisibly to them. Sweet!
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 09:55 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.04607 seconds
  • Memory Usage 2,310KB
  • 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
  • (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