View Full Version : Welcome Message in Any Forum
OldManWillow
02-23-2002, 10:00 PM
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/forumdisplay.php?s=&forumid=3
Comments and questions are appreciated!
oh sweet, this is awesome.
I'm going to add it to my Newbie forum right away.
Another demo for people thinking about installing:
http://www.teenagedweb.com/forumdisplay.php?s=&forumid=8
http://www.teenagedweb.com/showthread.php?s=&postid=2918#post2918
(Teenaged Web is the auto poster)
I recommend to people thinking of installing.
OldManWillow
02-24-2002, 08:39 PM
Glad you like it
Installed and working, thanks OldManWillow.
I used my default board username to send the autopost, then modified the code in register.php to change its userid from 0 to what it actually is. Now, instead of showing up as a guest and not being able to view its profile, you can view its profile and it shows up as a user.
I've one small bug for you:
When you use vbcode, in specific the [url] code, in the welcome_newuser template, you get a parsing error when you register and nothing but a title in the post. I believe this is with all vbcode, but it's only been tested with the url.
Otherwise, great idea and it works great!
OldManWillow
02-24-2002, 09:57 PM
thanks man! I like the user idea I am gonna do that
Bald Bouncer
02-25-2002, 08:13 PM
I requested this hack quite a while ago, nice one.
I haven't installed it yet but the instructions seem a bit vague, is it posible to elaborate on setting it to post in certain forums other than a set one etc..
Thanks BB
OldManWillow
02-25-2002, 08:18 PM
It is all in the instructions that PPN wrote. You just need to set the forum id to whatever. In the admin panel under user registrations there is a spot where you edit which forum it goes into. Pick one and enjoy!
Bald Bouncer
02-25-2002, 09:55 PM
Cool sorted now I just skipped through it a bit fast and missed it.
All working now :D
OldManWillow
02-25-2002, 09:57 PM
: ) hope you like it!
Raptor
02-27-2002, 01:18 AM
i'd like to know what script changes to make to show an actual member instead of the auto poster and also how to link to the new members profile, pm & email in the template
OldManWillow
02-27-2002, 01:19 AM
User registrations is on the vbulletion options link. : ) Anything else you need feel free to ask!
Raptor
02-27-2002, 01:24 AM
Originally posted by OldManWillow
User registrations is on the vbulletion options link. : ) Anything else you need feel free to ask!
yeah i got that - its 3:30am and i feel so stupid
edited the last bit out of pure embarresment :p
Raptor
02-27-2002, 01:25 AM
i accidentley ran both quereies twice
how to delete them and start again ?
Raptor
02-27-2002, 01:31 AM
sorted now - works great
Raptor
02-27-2002, 01:38 AM
Originally posted by neal
Installed and working, thanks OldManWillow.
I used my default board username to send the autopost, then modified the code in register.php to change its userid from 0 to what it actually is. Now, instead of showing up as a guest and not being able to view its profile, you can view its profile and it shows up as a user.
I've one small bug for you:
When you use vbcode, in specific the [url] code, in the welcome_newuser template, you get a parsing error when you register and nothing but a title in the post. I believe this is with all vbcode, but it's only been tested with the url.
Otherwise, great idea and it works great!
could you post the code you used for your welcome_user template please - thanks :)
OldManWillow
02-27-2002, 01:43 AM
sure
OldManWillow
02-27-2002, 01:44 AM
Welcome $username to $bbtitle!
Enjoy Yourself and post often!
Originally posted by Raptor
could you post the code you used for your welcome_user template please - thanks :)
certainly:
Please welcome $bbtitles's newest member, $username!
$username has just registered to become the newest addition to the Teenaged Web community. Existing members, please welcome $username in!
$username's profile: http://www.teenagedweb.com/member.php?s=$session[sessionhash]&action=getinfo&userid=$userid
Email $username: http://www.teenagedweb.com/member.php?s=$session[sessionhash]&action=mailform&userid=$userid
Send $username a PM: http://www.teenagedweb.com/private.php?s=$session[sessionhash]&action=newmessage&userid=$userid
Thank you for joining $username. We hope you will maximize your experience while at $bbtitle,
The $bbtitle Staff
http://www.teenagedweb.com
Raptor
02-28-2002, 05:14 PM
fantatsic thanks :)
I combined this with the number of posts to view threads hack and set it up so they HAD to reply to their welcome message before they could use the forum
gives them a good introduction to the forum
OldManWillow
02-28-2002, 06:38 PM
cool man!
Lionel
03-01-2002, 05:13 PM
I already installed PPN autoposter hack. Will this interfere?
OldManWillow
03-01-2002, 05:14 PM
I don't think so.
ForKmaN
03-03-2002, 11:53 AM
Originally posted by Raptor
fantatsic thanks :)
I combined this with the number of posts to view threads hack and set it up so they HAD to reply to their welcome message before they could use the forum
gives them a good introduction to the forum
Can I have that?
ForKmaN
03-03-2002, 12:16 PM
Hmm I tried installing but got an error..the instructions wernt really that clear...
do I have to replace anyhting with froum ID before I do it?
Can someone post it with detailed instructions for us try hard hackers?
NYI Fan
03-03-2002, 09:51 PM
This is great! I installed this along with the auto PM, in which i put a link tothe forum their welcome message is posted!
Thank you!
Sigon
03-03-2002, 09:53 PM
You need to add the forum ID in your Admin CP>>Vbulletin Options section
ForKmaN
03-04-2002, 12:42 AM
I dont get it ...
I need detailed instructions :p
WreckRman2
03-07-2002, 07:52 PM
Originally posted by neal
I used my default board username to send the autopost, then modified the code in register.php to change its userid from 0 to what it actually is. Now, instead of showing up as a guest and not being able to view its profile, you can view its profile and it shows up as a user.
How did you get it to count the posts? I added the number to show a name and that works but it doesn't increase his post count...
what code do I need to change to make the "auto poster" an actual user ?
Karri
03-13-2002, 12:56 AM
Yes I would love to know that too, what part of the code do I nee dto change to make it look like the auto post is coming from me and not an automated response.
Thanks!!!
Karri
03-18-2002, 12:08 AM
Still trying to figure out how to make the autopost look as though it came from me, and not having very much luck so any assistance would be appreciated. :)
Tim Wheatley
03-18-2002, 06:21 AM
Works on 2.2.4
it works great !! I'd just like to know how to set it up so that the welcome post comes from me rather than the "auto poster"
Sigon
03-18-2002, 06:27 PM
You need to add it so that instead of saying autoposter it says its from your name
Karri
03-18-2002, 07:10 PM
ok so for example this line in the code reads
(NULL,'".addslashes(htmlspecialchars("$username"))."','".time()."',
'$newregthreadforumid','1','0','".addslashes("Auto Poster")."','0','"
.addslashes("Auto Poster")."','".time()."','0','1','0')");
so I should change "Auto Poster" to "My User Name"? Do I need to put my user ID# in there somewhere as well?
Thanks!!!
Karri
03-21-2002, 03:55 AM
bump...
Karri
03-25-2002, 04:14 PM
OK I was able to get the auto post to come from my name and user ID, changed the "Auto Poster" to my user name and the first "0" after it to my user ID#. Now the new posts come from me which is great, it looks much more personalized to my users to see a post welcoming them from me than from an automated response.
Now I have a new question. :) How do I get my auto posts to include my signature? Which variable in the code to I need to change to have it do that?
Thanks!!!
HellRazor
03-25-2002, 04:22 PM
Rather than having this welcome everyone who registers, I'd like to see the welcome message generated when I provide someone a certain access group. I.E., when I provide someone a selected access, the welcome message is generated in a certain forum.
Is there anyone who could modify this hack to do something like that?
Karri
03-27-2002, 03:36 PM
bump...
diettalk
04-08-2002, 01:37 PM
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.
hypedave
04-10-2002, 02:48 AM
in stead of it haveing the post created from autoposter
how do I get it to have my name as the thread creator ?
This is my first contribute to help ppl so here is some of you all answers to your questions and something more. :laugh:
(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:
$DB_site->query("INSERT INTO thread (threadid,title,lastpost,forumid,open,replycount,p ostusername,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! :D
Dark Shogun
09-20-2002, 09:42 PM
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
MGSteve
01-05-2003, 09:53 PM
Excellent stuff, cheers! :D
Bison
01-06-2003, 03:17 AM
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?
eyeman
07-30-2003, 03:06 AM
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...
eyeman
08-05-2003, 06:10 PM
I am learning php, mysql is limited, do I need to mess with the database to install this welcome script?
dontpanic
10-09-2003, 07:39 PM
If you want to update the post count of the user you have configured the welcome to come from, just add this 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:
}
//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!
Milhouse
11-19-2003, 04:15 AM
if one installed this hack but no longer wants it how does one go abouts of removing it??? like the sql queries oringaly ran.. how can you remove those?
webhost
12-21-2003, 02:56 PM
Have you or do you know of anyone that has this hack working for vb3 gamma,
Would appreicate if you do.
Stasik
12-30-2003, 07:39 PM
i have edited it a bit so u can use it on Gamma now
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.