PDA

View Full Version : Automatically Start a Welcome Thread in the Forum of Your Choice


Pages : [1] 2

amykhar
07-08-2005, 10:00 PM
This little mod will start a new thread in the forum of your choice when somebody registers.

The thread message is contained in a template, and easily customizeable on your part.

This version posts the thread when the user registers - but before he activates his email address.

Thanks to flypaper for providing a bugfix.

Installation Instructions: Import the product. Change the welcome_thread template to suit your needs. Change the setup variables in the welcome thread plugin to suit your needs.

Amy

P.Jackson
07-09-2005, 07:30 PM
Got a link to any examples? otherwise great addition! :)

bigcurt
07-09-2005, 07:32 PM
Dang amy, on a roll aren't ya? Good Job!

amykhar
07-09-2005, 07:47 PM
Got a link to any examples? otherwise great addition! :)
I'm just using a simple template for my welcome thread right now. It's not worth showing off yet. :D I'm too busy coding to be write something more fun and creative for a welcome.

http://www.eaforums.com/forums/showthread.php?t=40021

Cloudrunner
07-09-2005, 07:59 PM
Small annoyance--

If you have templates names added in the HTML through you AdminCP, you will get the following when using this unelss you have the template names in THML comments disabled:<!-- BEGIN TEMPLATE: welcome_thread -->...<SNIP>...<!-- END TEMPLATE: welcome_thread -->Just an FYI, most people will not run with template names in HTML to cut down on bandwidth, but I turn them on sometimes when working on a new style...oh and before I forget,

Thank You!


I've been waiting for someone to pop this one in for awhile now ;)

amykhar
07-09-2005, 08:03 PM
Small annoyance--

If you have templates names added in the HTML through you AdminCP, you will get the following when using this unelss you have the template names in THML comments disabled:Just an FYI, most people will not run with template names in HTML to cut down on bandwidth, but I turn them on sometimes when working on a new style...oh and before I forget,

Thank You!


I've been waiting for someone to pop this one in for awhile now ;)
As a workaround, you don't HAVE to use the template. You could hard-code the message within the plugin.

And, you're welcome. :)

Amy

southernlady
07-11-2005, 12:53 PM
Amy, this one has me a tad confused. I got the plugin downloaded...but what is this part:
Change the hook to:
register_activate_process

And, in the plugin code, change:

And on the welcome_thread template, I've never actually created one from scratch..is there a way you could help here, please? Liz

amykhar
07-11-2005, 02:02 PM
Amy, this one has me a tad confused. I got the plugin downloaded...but what is this part:


And on the welcome_thread template, I've never actually created one from scratch..is there a way you could help here, please? Liz
The change the hook part is used only if you want to run this after the user activates their account. Give me a couple of secs, and I'll export that version and zip it up for people to download.

Amy

amykhar
07-11-2005, 02:08 PM
Liz,
I added the alternate plugin. If you decide to use this one instead, just delete the first one and install the second. The only difference is when the thread is created.

Amy

southernlady
07-11-2005, 02:11 PM
Thanks, Amy..I'll let you know in a few mins how the install went. Liz

southernlady
07-11-2005, 03:05 PM
Amy, I'm having trouble making it go to my intro forum. I know I should put in my version of this: <a href="http://www.eaforums.com/forums/forumdisplay.php?f=23"> which for me is: <a href="http://mysouthernlady.com/forum/forumdisplay.php?f=21"> and yet, I ended up with it in a PRIVATE board when I tested it. Liz

Biker_GA
07-11-2005, 04:33 PM
Amy, is it possible on the "welcome after activate" to actually wait until the user is approved by the administrator, and if disapproved/deleted, the post isn't posted? All requests must be manually approved by one of the admins on our site. Cuts down on the spammers like you wouldn't believe. :devious:

amykhar
07-11-2005, 06:33 PM
I'm confused Liz. Which code are you changing? The plugin code or the template?

southernlady
07-11-2005, 06:41 PM
That's in the welcome_thread template, Amy...it's sending them to the Private board for some screwy reason. Liz

amykhar
07-11-2005, 06:43 PM
Amy, is it possible on the "welcome after activate" to actually wait until the user is approved by the administrator, and if disapproved/deleted, the post isn't posted? All requests must be manually approved by one of the admins on our site. Cuts down on the spammers like you wouldn't believe. :devious:
Unfortunately, it can't be a plugin and have it done there at this time. The moderate code is contained in the admincp, which doesn't have hooks.

Amy

amykhar
07-11-2005, 06:51 PM
Amy, I'm having trouble making it go to my intro forum. I know I should put in my version of this: <a href="http://www.eaforums.com/forums/forumdisplay.php?f=23"> which for me is: <a href="http://mysouthernlady.com/forum/forumdisplay.php?f=21"> and yet, I ended up with it in a PRIVATE board when I tested it. Liz
I'd need to see the code in acion to see what's going on. What forumid is it trying to send them to? If you paste the code of the whole template within code tags, I'll try to see if I can spot your error.

Amy

southernlady
07-11-2005, 06:58 PM
<p>Welcome $username!</p>
<p>Southernlady's Forum's is a very diverse place. There is a lot to do here - the trick is just knowing where to look.

First, introduce yourself. We're a friendly bunch and we welcome newcomers to the <a href="http://mysouthernlady.com/forum/forumdisplay.php?f=21"><strong>Welcome to Southernlady's Forum</strong></a>.</p>
<p>Also please read the Rules of the Mansion: <a href="http://mysouthernlady.com/forum/showthread.php?t=145"><strong>Rules of the Mansion</strong></a></p>
<p>We have a "Welcome to the Parlor (Daily Board)". It's usually the first place we stop in the mornings to catch up with each other. <a href="http://mysouthernlady.com/forum/forumdisplay.php?f=7"><strong>Welcome to the Parlor (Daily Board)</strong></a>.</p>
<p>We talk about pop culture, hobbies, raising kids, getting ahead at work, and just about anything else friends talk about around a Parlor or Kitchen Table.</p>
<p> So, if you are trapped in a cubicle at work or if you are a stay at home mom looking for something to do while the kids nap or you are just looking for some company and some fun, this is the place for you.

Here you go, Amy, this is the one on my default, Liz

southernlady
07-13-2005, 12:14 PM
Amy, did we ever figure out this problem or should I just give in? Liz

amykhar
07-13-2005, 06:36 PM
Amy, did we ever figure out this problem or should I just give in? Liz
Sorry. I got sidetracked.

When I check the code, I'm having trouble with the daily board url. You have it set to go to forum 7. If I manually go to forum 7 (not using the code you posted) I get an error message about functions.php (which isn't changed in this mod) and am shown a no-permission page.

The issue seems to be with that forum, not this plugin.

southernlady
07-13-2005, 06:52 PM
Amy, this was the one I was having problems with...it won't go there: http://mysouthernlady.com/forum/forumdisplay.php?f=21 And that is my Welcome board and not the Daily Board.

Right now, it's going to a Private forum where NO one has access without specific approval.

I understand the Daily board isn't accessable uuntil you are registered, but once a person is creating this thread, they will see that board. Liz

amykhar
07-13-2005, 08:15 PM
Amy, this was the one I was having problems with...it won't go there: http://mysouthernlady.com/forum/forumdisplay.php?f=21 And that is my Welcome board and not the Daily Board.

Right now, it's going to a Private forum where NO one has access without specific approval.

I understand the Daily board isn't accessable uuntil you are registered, but once a person is creating this thread, they will see that board. Liz
It goes to forum 21 for me with no problems using the code you posted.

Amy

amykhar
07-15-2005, 08:13 PM
Gang,
In Beta 4, the threads are going to the moderation queue. I'm going to figure out how to fix that, and then update the plugin code.

amykhar
07-15-2005, 08:33 PM
OK. I upgraded the new plugins for both versions of this mod. The changes I made won't hurt Beta 3; so if you are running an earlier version of Vbulletin, it should still work for you - but I don't guarantee it. ;)

Cloudrunner
07-16-2005, 12:37 PM
OK. I upgraded the new plugins for both versions of this mod. The changes I made won't hurt Beta 3; so if you are running an earlier version of Vbulletin, it should still work for you - but I don't guarantee it. ;)

Kewl!

One question though, where's the update zip?

;)

Bro_Joey_Gowdy
07-29-2005, 10:23 PM
Nice!

*Rowdy clicks install, then downloads and installs*

P.Jackson
08-16-2005, 11:00 PM
my threads are being put in moderation queue any ideas?

amykhar
08-17-2005, 02:02 AM
Which version are you using? Before or after activation?

P.Jackson
08-17-2005, 01:37 PM
before

amykhar
08-17-2005, 01:58 PM
Ah. That explains it. Let me update that baby with some changes I made in the other. Back in about 15 minutes with a new before version.

Amy

amykhar
08-17-2005, 02:08 PM
OK. I updated the welcomethread.zip. I made it a PRODUCT this time, not a plugin. So, if you have data in your welcome_thread template, copy it to a safe spot so you can restore it once the product is installed.

Amy

P.Jackson
08-17-2005, 03:07 PM
awsome works amykhar thanks!

amykhar
08-17-2005, 03:10 PM
my pleasure

NuclioN
08-17-2005, 04:15 PM
This is a nice product but i wonder if it is possible to let new members add their intro message before they can register. I'm asking that because i know that new members will (most of the time) get involved immediately this way when they are questioned by entrance...something i've seen often with the 3.0x similar version of this addon.

RetroDreams
08-23-2005, 12:32 PM
For some reason I can't get this to install on the vB 3.5 RC2. Did something change from beta 4 to RC 2 that kills this?

amykhar
08-23-2005, 12:41 PM
Are you trying to install it as a product or a plugin?

Sovereign
08-23-2005, 05:00 PM
uhh, what's with the welcome thread being moderated?

amykhar
08-23-2005, 05:18 PM
That happened in RC2. I have played with it a bit but haven't had time to get into it in any depth.

Amy

fly
08-30-2005, 01:34 PM
How would I have it also generate a PM to the user with the thread details?

thx!

amykhar
08-30-2005, 01:56 PM
You would combine this hack with the send a welcome PM to users hack.

P.Jackson
08-30-2005, 02:13 PM
Im still getting this aswell :( any ideas on a fix?

uhh, what's with the welcome thread being moderated?

amykhar
08-30-2005, 02:28 PM
Not yet. I just haven't had time to sit down and dig into it. I'm trying to not use the function that I used to start the new thread because that function seems to have changed behavior in RC2. Instead, I'm trying to go through the datamanager instead. But, the directions for using it aren't the clearest in the world and I just don't have the time to sit and tinker with it at the moment.

fly
08-30-2005, 02:34 PM
You would combine this hack with the send a welcome PM to users hack.
After I posted that, I saw that thread. Thanks!

fly
08-30-2005, 02:53 PM
Hmmm, I'm not sure that plugin will work for me. I need to be able to PM the new user the thread id, so the hacks have to be combined...

Can I just copy the PM code into your hack? I'm guessing not, as Kirby's is a product not a plugin...

amykhar
08-30-2005, 03:00 PM
That's what I meant when I said combine. It won't be a direct copy and paste. You'll have to make changes to the code.

fly
08-30-2005, 03:05 PM
That's what I meant when I said combine. It won't be a direct copy and paste. You'll have to make changes to the code.
Okay, I'll take a look at it. Thanks! I'm new to this whole plugin/product thing.

Kinda offtopic, but can you or someone explain the difference between a product and a plugin?

amykhar
08-30-2005, 03:10 PM
A plugin contains a snippet of code that hooks into a file and executes at the same time.

A product is a group of plugins, templates, phrases, and queries grouped together as one functional modification.

fly
09-03-2005, 12:52 PM
hmmm

The thread title doesn't seem to get updated on the main forum display (index) page, just the poster's name gets updated.

ged
09-09-2005, 05:40 PM
I got following error on RC2:
XML Error: syntax error at Line 1
I tried to install it as a product.

swantonio
09-10-2005, 04:47 PM
where it must be put the fà rows xlm like activating itself? :ermm:

swantonio
09-11-2005, 07:05 PM
I have installed the plugins but it does not work you explain like making it to me to work thanks....

ged
09-13-2005, 10:22 AM
It doesn't work under RC2, as it is said before here in posts.

fly
09-13-2005, 11:20 AM
It doesn't work under RC2, as it is said before here in posts.
Yes it does. Worked for me before I upgraded...

amykhar
09-13-2005, 11:22 AM
Yes it does. It just has the nasty side effect of throwing things into the moderated queue as well.

Amy

y2krazy
09-13-2005, 12:40 PM
Not sure if this has been discussed, but how about forcing a new user that has signed up to post in the Introductions(or whatever yours is called) forum before they can access anything else? Simply have a box in the registration pages for their chance to post this Intro thread(show at registration as a required field). Feedback?

amykhar
09-13-2005, 01:10 PM
You don't need a mod for that.
1. Create a new usergroup. Give it the permissions of your registered usergroup. Move all your registered users with at least one post to that group.
2. Change the permissions of your registered usergroup so that the only forum they can post in is your welcome forum.
3. Set up a promotion so that once they have the first post, they are moved to the new user group that you created.
Done.

loonytune15
09-13-2005, 02:58 PM
hmmm

The thread title doesn't seem to get updated on the main forum display (index) page, just the poster's name gets updated.

I also found this is happening with me as well, plus there is no thread title, any ideas?

*update* thread title appears after someone replies to the initial post.
But it still shows there is no threads. My intro forum on my test forum where i installed this shows 0 threads and 1 post, but there is 2 threads in it.

diettalk
09-14-2005, 02:11 PM
I'm getting a database error...


Database error in vBulletin 3.5.0 Release Candidate 3:

Invalid SQL:
update post set visible=1,userid=2,username='.John' where postid=;

MySQL Error : You have an error in your SQL syntax; check the manual
that corresponds to your MySQL server version for the right syntax to
use near '' at line 1
Error Number : 1064
Date : Wednesday, September 14th 2005 @ 09:57:52 AM
Script :
http://www.domain.com/forums/register.php?a=act&u=15839&i=51802920
Referrer :
IP Address : xx.xx.xx.xx
Username : Unregistered
Classname : vb_database

amykhar
09-14-2005, 03:30 PM
For some reason, the post wasn't made, which throws that error. I really need to zap this attachment since RC2 seems to have broken some things and I don't have time right now to play with the code.

fly
09-15-2005, 02:34 PM
For some reason, the post wasn't made, which throws that error. I really need to zap this attachment since RC2 seems to have broken some things and I don't have time right now to play with the code.
I just got the same error. However, it worked for me yesterday, so it doesn't seem to happen every time...

edit: n/m I see you pulled it already.

edit again:
It's obviously this line that is doing it:
$db->query("update ".TABLE_PREFIX."post set visible=1,userid=$threadstarterid,username='.".addslashes($threadstartername)."' where postid=$newpost[postid]");

is there really supposed to be a period after username=' ? That results in the name being '.flypaper' instead of 'flypaper'. Please excuse my ignorance if wrong, I'm not even a beginning level of coder. kekekeke

Logik
09-15-2005, 05:08 PM
the download is missin...?

gcallman
09-16-2005, 09:40 PM
Hi

I ?m working on a site for an international non-profit organization. The online community will be key, and so we?re looking at various ways to incorporate member to member feedback into the site. Before beginning this research, we planned a hack that we thought might do the trick. It?s outlined below. However, we would like to ask if you all think that other, existing hacks might be equally/more functional. Here was our idea:

First, one would create a forum exclusively for positive feedback.
The hack would then:

1) Create a new thread for each user upon registration. The thread could be named after the user in some standard format. (amykhar already did this, it seems: https://vborg.vbsupport.ru/showthread.php?t=91887&highlight=feedback Would her hack work as part of this scheme?)
2) Paste the URL for that user?s feedback thread directly into his/her signature, perhaps just after ?Feedback at:?

We thought this might be a very elegant way to incorporate feedback into VB, as the forum?s features would very functional. For example:

It would be easy to click from a users post to his/her feedback thread, because the link would be in the signature. Likewise, it would be easy to jump to or from their profile, which would facilitate making contact.
Because the forum is only for positive feedback, ranking by post would have meaning.
Similarly, hot threads would point to people who have done a lot of good work recently.
The report bad post feature could be used to report the presence of negative feedback.
We?re assuming that everyone would subscribe to their own feedback thread and so would be automatically notified.

Thanks

Boofo
09-16-2005, 09:46 PM
Where's the file from the first post?

kylek
09-18-2005, 02:32 AM
Looks like she pulled it to work on some things

"For some reason, the post wasn't made, which throws that error. I really need to zap this attachment since RC2 seems to have broken some things and I don't have time right now to play with the code."

Xplorer4x4
09-30-2005, 08:52 AM
Where's the file from the first post?

Good question...:ermm:

Got an update Amy?

Daniel
10-02-2005, 06:28 AM
I dont see why you need to remove the whole file when you're editting it... sigh

thetoolman
10-02-2005, 06:26 PM
I'm getting a database error...
I get the same error since i upgraded to 3.5 gold. I had to uninstall it to stop getting errors.

rblaze
10-04-2005, 01:13 AM
Please fix it soon ~___~

I NEED this hack ;D

amykhar
10-04-2005, 02:49 AM
It works now if you NEED it. You just have to clear the moderation queue from time to time.

Xplorer4x4
10-04-2005, 05:33 AM
It works now if you NEED it. You just have to clear the moderation queue from time to time.

I am sure it does, but we can not install it, if it is not atached. ;)

fly
10-04-2005, 11:18 AM
It works now if you NEED it. You just have to clear the moderation queue from time to time.
sorta. About half the time I get a DB error when someone tries to confirm after email activiation. The error never allows them to confirm, nor is a thread created.

Adib
10-05-2005, 12:35 PM
Was the file taken down? Can you please re-attach the file, or is there a problem?

fly
10-05-2005, 01:09 PM
For some reason, the post wasn't made, which throws that error. I really need to zap this attachment since RC2 seems to have broken some things and I don't have time right now to play with the code.
Yes, there was a problem.

Blindchild02
10-05-2005, 02:50 PM
hope u have this for 3.5 gold :D

fly
10-07-2005, 12:58 PM
I think I have fixed this by using the thread creation process talked about over here (https://vborg.vbsupport.ru/showthread.php?t=97283). So if you're lightly familiar with coding like myself, you may be able to fix this. Hopefully amy will fix and re-release this soon, as I have no idea what the rules are on releasing what I did (since its really her stuff).

Mr Chad
10-09-2005, 05:06 PM
Please Amy attach the file :'(

RetroDreams
10-10-2005, 02:30 PM
Bump for zip file.

fly
10-10-2005, 02:41 PM
Bump for zip file.
I modified the original code and got it working. However, I do not know if I can post what I have, since it's Amy's hack...

g00gl3r
10-11-2005, 04:42 PM
how do we download this ?? :S

Xplorer4x4
10-11-2005, 09:46 PM
I modified the original code and got it working. However, I do not know if I can post what I have, since it's Amy's hack...

You could ask in the feedback forum. I think it is ok as long as your not posting it as a whole new hack and only ataching it to this thread.

RetroDreams
10-12-2005, 03:11 AM
Need someone to release this... I'm waiting on launching a new domain until I have this.

xjuliox
10-12-2005, 03:28 AM
I have been checking this plugin for a few days already. I have been wondering were could I download it from too.

Neutral Singh
10-12-2005, 04:27 AM
Could it be possible to add a new post in an existing thread of our choice, as in my case all the welcomes are being posted in a single thread? Thanks.

Mr Chad
10-12-2005, 09:44 PM
Could it be possible to add a new post in an existing thread of our choice, as in my case all the welcomes are being posted in a single thread? Thanks.

Anyone have the Zip file laying around?

amykhar
10-13-2005, 12:31 AM
IT HAS A BUG. It will be back when I have time to FIX the bug. ;)

RetroDreams
10-14-2005, 12:38 AM
IT HAS A BUG. It will be back when I have time to FIX the bug. ;)

I'll just reinstall the buggy one... this has been a HUGE plugin for the site as it really seems to drive new members and get them to dip their feet into the pool, so to speak.

Mr Chad
10-14-2005, 03:58 AM
yea i really need this!

Basit
10-15-2005, 01:46 AM
IT HAS A BUG. It will be back when I have time to FIX the bug. ;)
Waiting for re-release of this Hack :ermm:

SpanishHarlem
10-16-2005, 12:42 AM
yeah me too :(

WildSharky
10-17-2005, 12:42 PM
ok im lost as i dont see no way to set in thing and it didnt make a plugin no where in the plugin list way?? how do i set the forum i want to use?

southernlady
10-17-2005, 12:45 PM
Why wait...see this thread: https://vborg.vbsupport.ru/showthread.php?t=98553 Liz

amykhar
10-17-2005, 12:50 PM
That's a different mod. That one has the user create their own thread through an automated process. This one welcomes the user from the user of your choice on your forum.

WildSharky
10-17-2005, 12:51 PM
right so know how do i use yours? or iam i that dumb?? I dont see no plugins being use here.. its only making a temp is all..

<?xml version="1.0" encoding="ISO-8859-1"?>

<product productid="amykhar_10172005" active="1">
<title>Welcome Thread</title>
<description>Thanks to flypaper for bug fix</description>
<version>1.5</version>
<codes>
</codes>
<templates>
<template name="welcome_thread" templatetype="template" date="1129555516" username="amykhar" version="3.5.0"><![CDATA[Welcome to our forums! We hope you enjoy your time here.]]></template>
</templates>
<plugins>
</plugins>
<phrases>
</phrases>
<options>
</options>
</product>

fly
10-17-2005, 12:52 PM
ok im lost as i dont see no way to set in thing and it didnt make a plugin no where in the plugin list way?? how do i set the forum i want to use?
Looks like she forgot to include some code...

amykhar
10-17-2005, 12:54 PM
No, I didn't. The code is in the plugin. He doesn't know how to access the plugin. I'm looking for the tutorial thread that was posted for new users about plugins and such.

WildSharky
10-17-2005, 12:55 PM
this doesnt make a plugin that i can see did i really miss something??

amykhar
10-17-2005, 01:00 PM
Grab the xml file again. The export failed the first time.

WildSharky
10-17-2005, 01:01 PM
ok thanks alot you Amy and Flypaper now i see the plugin :) this is a great hack even if it is a small one :)

WildSharky
10-17-2005, 01:25 PM
Ok one more thing i have set this code in the plugin to this
// Setup Variables
$forumid = 3; // The forum id that you want the thread posted in
$postuserid = 1; // The Userid of the poster
$postusername = "WildSharky"; // The username of the poster
$title = "Welcome $username"; // The thread title

But when i went and registered it used the registers name "test" and not mine? why is that?? Shouldnt it show me as the thread starter??

And its not show as a new post would on the forums home page..
It just show the image like its an old post..

fly
10-17-2005, 01:41 PM
Ok one more thing i have set this code in the plugin to this
// Setup Variables
$forumid = 3; // The forum id that you want the thread posted in
$postuserid = 1; // The Userid of the poster
$postusername = "WildSharky"; // The username of the poster
$title = "Welcome $username"; // The thread title

But when i went and register it used the registers name "test" and not mine? why is that?? Shouldnt it show me as the thread starter??

And its not show as a new post would on the forums home page..
It just show the image like its an old post..

edit. dont listen to me. im dumb. :D

WildSharky
10-17-2005, 01:50 PM
That worked great man thanks but are they a way to make it show the thread as new to the one who registered?? as it show as new on my other new but not the one i use to registered

But the rest worked great thanks again...

fly
10-17-2005, 01:54 PM
That worked great man thanks but are they a way to make it show the thread as new to the one who registered?? as it show as new on my other new but not the one i use to registered

But the rest worked great thanks again...
Wait. That fixed it? I thought I was wrong, cause I implemented it a little differently on my forum. Oops.

The thread doesn't show as new? Is that what's wrong now?

WildSharky
10-17-2005, 01:57 PM
yes it shows my name as the poster now so that part is fixed and it show as a new post after i log back in on WildSharky but not the "test" name i registered im guess this is because its like the registered name is making the post maybe??

Mr Chad
10-17-2005, 02:07 PM
hey is it possible to make it post the users profile field info? If so please explain how, Because i want to use this as an introduction system where it posts all the required profile fields.

WildSharky
10-17-2005, 02:23 PM
and it dont have my sig on the welcome post anyway to make it turn the sig on??

fly
10-17-2005, 04:27 PM
and it dont have my sig on the welcome post anyway to make it turn the sig on??
Try adding this code to the plugin:

$threaddm->do_set('showsignature', 1);

Before the save line:
$tid = $threaddm->save();

(untested :p)

WildSharky
10-17-2005, 04:40 PM
nope dont work i get this error

Fatal error: Cannot pass parameter 2 by reference in /usr/home/sharky/public_html/forums/register.php(419) : eval()'d code on line 31

// Insert thread
$threaddm->do_set('forumid', $forumid);
$threaddm->do_set('postuserid', $postuserid);
$threaddm->do_set('userid', $postuserid);
$threaddm->do_set('username', $postusername);
$threaddm->do_set('pagetext', $pagetext);
$threaddm->do_set('title', $title);
$threaddm->do_set('allowsmilie', $allowsmilie);
$threaddm->do_set('visible', $visible);
$threaddm->do_set('showsignature', 1);
$tid = $threaddm->save();

thats where i put it

fly
10-17-2005, 05:01 PM
nope dont work i get this error

Fatal error: Cannot pass parameter 2 by reference in /usr/home/sharky/public_html/forums/register.php(419) : eval()'d code on line 31



thats where i put it

In keeping with the same format for the rest of the plugin, use the following instead. (It didn't work previously cause I forgot the single quotes around the one)

// Start thread create
$threaddm = new vB_DataManager_Thread_FirstPost($vbulletin, ERRTYPE_STANDARD);

$username = htmlspecialchars_uni($username);
$allowsmilie = '1';
$visible = '1';
$sig = '1'; //show signature 1/on 0/off
eval('$pagetext .= "' . fetch_template('welcome_thread') . '";');

// Insert thread
$threaddm->do_set('forumid', $forumid);
$threaddm->do_set('postuserid', $postuserid);
$threaddm->do_set('userid', $userid);
$threaddm->do_set('username', $postusername);
$threaddm->do_set('pagetext', $pagetext);
$threaddm->do_set('title', $title);
$threaddm->do_set('allowsmilie', $allowsmilie);
$threaddm->do_set('visible', $visible);
$threaddm->do_set('showsignature', $sig);
$tid = $threaddm->save();

WildSharky
10-17-2005, 05:25 PM
here is the right code as your made the name wrong like befor.. and thanks the sig works now to..
this
$threaddm->do_set('userid', $userid);
should be this
$threaddm->do_set('userid', $postuserid);
// Start thread create
$threaddm = new vB_DataManager_Thread_FirstPost($vbulletin, ERRTYPE_STANDARD);

$username = htmlspecialchars_uni($username);
$allowsmilie = '1';
$visible = '1';
$sig = '1'; //show signature 1/on 0/off
eval('$pagetext .= "' . fetch_template('welcome_thread') . '";');

// Insert thread
$threaddm->do_set('forumid', $forumid);
$threaddm->do_set('postuserid', $postuserid);
$threaddm->do_set('userid', $postuserid);
$threaddm->do_set('username', $postusername);
$threaddm->do_set('pagetext', $pagetext);
$threaddm->do_set('title', $title);
$threaddm->do_set('allowsmilie', $allowsmilie);
$threaddm->do_set('visible', $visible);
$threaddm->do_set('showsignature', $sig);
$tid = $threaddm->save();

fly
10-17-2005, 05:31 PM
here is the right code as your made the name wrong like befor.. and thanks the sig works now to..
Oh yeah, forgot about that $userid thing. :p

Mr Chad
10-17-2005, 09:54 PM
hey is it possible to make it post the users profile field info? If so please explain how, Because i want to use this as an introduction system where it posts all the required profile fields.

anyone?

fly
10-19-2005, 12:27 AM
anyone?
Can you explain a little better what you're looking for?

WildSharky
10-19-2005, 09:51 AM
You know what would make this hack nicer would be to send a pm to the user when theey sign up telling them they have a welcome post and a link in the pm to the post..


Think you can do that???

jluerken
10-19-2005, 10:07 AM
Is this version not working with the welcome PM hack?

WildSharky
10-19-2005, 10:09 AM
It might be as i havnt looked at all the addons on this forums so im not sure i will look for the welcome pm addon and try it thanks..

amykhar
10-19-2005, 11:33 AM
You know what would make this hack nicer would be to send a pm to the user when theey sign up telling them they have a welcome post and a link in the pm to the post..


Think you can do that???

In my version on my board, I had it hacked so that it redirected new users directly to their welcome thread after registration. But that took a file mod.

WildSharky
10-19-2005, 11:36 AM
can you give us that mod?

fly
10-19-2005, 11:55 AM
You know what would make this hack nicer would be to send a pm to the user when theey sign up telling them they have a welcome post and a link in the pm to the post..


Think you can do that???
This is how I did that.

// Start thread create
$threaddm = new vB_DataManager_Thread_FirstPost($vbulletin, ERRTYPE_STANDARD);

$username = htmlspecialchars_uni($username);
$allowsmilie = '1';
$visible = '1';
$sig = '1'; //show signature 1/on 0/off
eval('$pagetext .= "' . fetch_template('welcome_thread') . '";');

// Insert thread
$threaddm->do_set('forumid', $forumid);
$threaddm->do_set('postuserid', $postuserid);
$threaddm->do_set('userid', $postuserid);
$threaddm->do_set('username', $postusername);
$threaddm->do_set('pagetext', $pagetext);
$threaddm->do_set('title', $title);
$threaddm->do_set('allowsmilie', $allowsmilie);
$threaddm->do_set('visible', $visible);
$threaddm->do_set('showsignature', $sig);
$tid = $threaddm->save();

// Now let's send a PM notifying the user of their thread
$userdata->save();
$fromuser = '1';
$username = unhtmlspecialchars($userinfo['username']);
$registry =& $vbulletin;

// create the DM to do error checking and insert the new PM
$pmdm =& datamanager_init('PM', $vbulletin, ERRTYPE_SILENT);
$pmdm->set('fromuserid', $fromuser['userid']);
$pmdm->set('fromusername', $fromuser['username']);
$pmdm->set_info('receipt', false);
$pmdm->set_info('savecopy', false);
$pmdm->set('title', "Important information regarding your registration!");
$pmdm->set('message', "AUTOGENERATED PM \n Pending your full approval to xxxx Forums, we have created a thread for you. The thread is located here (http://xxxxxforums.com/showthread.php?t=" . $tid . "). This will be the only thread you can post in until an administrator approves your membership. If you have any questions that you'd rather not post, feel free to reply to this private message. \n \n http://xxxxxxforums.com/showthread.php?t=" . $tid . " \n Note: You may have to log in again when clicking on the thread link above");
$pmdm->set_recipients($userinfo['username'], $fromuser['permissions']);
$pmdm->set('dateline', TIMENOW);
$pmdm->save();

// Fin



There is some rough code in there. If that doesn't work, I'll check back later and help ya out. Right now busy w/ work...

amykhar
10-19-2005, 12:22 PM
It's better to use the mod that was released for private messages already - do a search WildSharky. It's a plugin. That code has been thoroughly tested and used by hundreds of people.

fly
10-19-2005, 01:48 PM
It's better to use the mod that was released for private messages already - do a search WildSharky. It's a plugin. That code has been thoroughly tested and used by hundreds of people.
But if you want to link to the thread created, it needs to be in the same plugin, afaik...

Xplorer4x4
10-19-2005, 06:15 PM
This is working for me BUT it starts the thread by the person who registered....not me! I have filled out the proper variables in the XML file.

Mr Chad
10-20-2005, 02:52 AM
how do i make it show the members profile fields in the welcome post?

I try this but its not working, and i think this has to be possible if it can get the users name inside the post.

<if condition="$post[field1] != ''"><div>$post[field1]</div></if>
<if condition="$post[field2] != ''"><div>$post[field2]</div></if>
<if condition="$post[field3] != ''"><div>$post[field3]</div></if>
<if condition="$post[field4] != ''"><div>$post[field4]</div></if>
<if condition="$post[field5] != ''"><div>$post[field5]</div></if>
<if condition="$post[field6] != ''"><div>$post[field6]</div></if>
<if condition="$post[field7] != ''"><div>$post[field7]</div></if>
<if condition="$post[field8] != ''"><div>$post[field8]</div></if>
<if condition="$post[field9] != ''"><div>$post[field9]</div></if>
<if condition="$post[field10] != ''"><div>$post[field10]</div></if>
<if condition="$post[field11] != ''"><div>$post[field11]</div></if>
<if condition="$post[field12] != ''"><div>$post[field12]</div></if>

Mr Chad
10-20-2005, 03:07 AM
anyone?

Xplorer4x4
10-20-2005, 07:12 AM
Profile fields show up for me...

C_P
10-20-2005, 12:51 PM
Works like a charm! Love this little mod. Thanks Amy!

Mr Chad
10-20-2005, 01:22 PM
Profile fields show up for me...

what does your welcome template looklike?

loonytune15
10-20-2005, 02:10 PM
OK so does this now work for vb3.5 Gold? I am totally confused...

Mr Chad
10-20-2005, 02:24 PM
OK so does this now work for vb3.5 Gold? I am totally confused...

It works fine. But Im just trying to customize it.

fly
10-20-2005, 03:17 PM
It works fine. But Im just trying to customize it.
I'm assuming that the profile fields don't work cause all the $post stuff isn't active when the plugin runs. However, I have no idea how to fix it. So yeah, Im not much help. :D

Mr Chad
10-20-2005, 09:08 PM
I'm assuming that the profile fields don't work cause all the $post stuff isn't active when the plugin runs. However, I have no idea how to fix it. So yeah, Im not much help. :D

yea but shouldnt it work? it just shows up blank in post even though i have all the profile fields, do i need to add something to a php file?

Xplorer4x4
10-20-2005, 11:24 PM
what does your welcome template looklike?

Just a bassic hello. Welcome to the board. read the rules, buy a subscription to remove the ads and get more featuers. I have no HTML included because I don't need it from what I see.(Sorry to lazy to post it.)

I have a small board so I have only had this tested twice. A member joined as Infamous and the post was created using HIS name, not mine.

However I registered under a name and the post was created with my user name.

Evil X
10-20-2005, 11:36 PM
any way to make it so that the new member is the one who makes the thread auto-maticaly.. to be welcomed.... holla

C_P
10-21-2005, 01:15 AM
Here is what I did, you can choose to do as you wish.
1. I created a Welcome User Group
2. I created a user "CP Greeter" and assisgned this user ID to that group as it's primary user group.
3. I created a sub-forum called "welcome" and allowed html code.
4. I edited the Amy's VERY nice xml code to reflect the user ID of CP Greeter and the forum ID.

This way, when a user registers, the forum post is automagically created under my CP Greeter profile and he welcomes our new users!
See it in action here:
http://www.cpfools.com/forum/forumdisplay.php?f=91

amykhar
10-21-2005, 11:33 AM
any way to make it so that the new member is the one who makes the thread auto-maticaly.. to be welcomed.... holla

That's a different hack. Unfortunately, the guy gave it basically the same name as this one.

C_P
10-21-2005, 01:22 PM
Hey Amy, This does work great but it seems to have the same IP as "CP Greeter".
Am I correct in stating this new thread to welcome the new user is created under same IP as the new user and not the official greeter?

amykhar
10-21-2005, 07:18 PM
Yes. Given that the "greeter" account is being accessed through the new member's browser.

murrtex
10-22-2005, 10:08 AM
would u like to mix your hack and this please? https://vborg.vbsupport.ru/showthread.php?t=98553&page=1&pp=15

Xplorer4x4
10-24-2005, 06:43 PM
Here are the setup variables from my plug in. Yet, this hack ALWAYS starts the thread under the new members name, and not my name. Any idea what's going on?
// Setup Variables
$forumid = 36; // The forum id that you want the thread posted in
$postuserid = 1; // The Userid of the poster
$postusername = "Xplorer4x4"; // The username of the poster
$title = "Hello " . $username . " welcome to XP."; // The thread title

murrtex
10-24-2005, 07:04 PM
i want to arrange setting from vbulletin setting section..that hack (https://vborg.vbsupport.ru/showthread.php?t=98553&page=1&pp=15) can do it..bu it does not write user name by me...it writes by newuser..
your hack can do it it writes by me (poster) but when i change the welcome message ,it is very hard to arrange..do u understand what i am saying..

if it is possible..it will be perfect..

fly
10-25-2005, 11:48 AM
Here are the setup variables from my plug in. Yet, this hack ALWAYS starts the thread under the new members name, and not my name. Any idea what's going on?
// Setup Variables
$forumid = 36; // The forum id that you want the thread posted in
$postuserid = 1; // The Userid of the poster
$postusername = "Xplorer4x4"; // The username of the poster
$title = "Hello " . $username . " welcome to XP."; // The thread title
See this post and make corrections accordingly.

https://vborg.vbsupport.ru/showpost.php?p=798050&postcount=108

Xplorer4x4
10-26-2005, 01:09 PM
Ok thanks for the fix, I'll be back if it doesn;t work, but i got faith in ya fly.

fly
10-26-2005, 02:22 PM
Ok thanks for the fix, I'll be back if it doesn;t work, but i got faith in ya fly.
Don't thank me, Amy did all the hard work. :P

grc
10-29-2005, 07:22 PM
This is a great add on -- but I need some help understanding how to keep the welcome thread from being posted until after the new user has been approved by the moderator.

How can I do 'dat?

Thanks in advance.

SpanishHarlem
10-29-2005, 08:42 PM
Awesome hack... Thank's a bunch. click's install

murrtex
10-29-2005, 11:10 PM
i found some bug..new user can delete Welcome Thread..is it strange isnt it?

C_P
10-29-2005, 11:27 PM
This is a great add on -- but I need some help understanding how to keep the welcome thread from being posted until after the new user has been approved by the moderator.

How can I do 'dat?

Thanks in advance.
I agree, that would be a nice feature of this.

grc
10-29-2005, 11:32 PM
I agree, that would be a nice feature of this.

Here is what I tried -- but it didn't work:
I created a new user named Welcome Committee.
I made that user a regular user and made that the user who posts the welcome message.

I then set the forum up so that new threads had to be approved my a moderator. I thought that would do it -- that the moderator who approved new users would just click on thread approval and it would work.

But, no joy. It just went right ahead and posted the new user instead.

Surely there is a way though.

fly
10-31-2005, 11:19 AM
i found some bug..new user can delete Welcome Thread..is it strange isnt it?
Then you have permissions set for that group to be able to delete their own threads.

murrtex
10-31-2005, 02:09 PM
no.it wasnt him, it was mine thread (welcome thread) (permissions are ok)
do u understand?

fly
10-31-2005, 02:13 PM
no.it wasnt him, it was mine thread (welcome thread) (permissions are ok)
do u understand?
The welcome thread is the ONLY thread the person can delete?

(This hack would have nothing to with permissions, so I think you have some other problem.)

fly
10-31-2005, 02:16 PM
I agree, that would be a nice feature of this.
If you're familiar with coding and the plugin system, moving the plugin to register_activate_process and wrapping the code below around the plugin should work. That's how I have it running on my board, but is UNTESTED on Amy's hack...


if ($vbulletin->userinfo['posts'] == '0')
{


}

Rickie3
11-12-2005, 08:42 AM
i'm new to 3.5,this installed easily and works great thankyou clicks *install*

kylek
11-16-2005, 10:13 PM
I seem to be missing something. Earlier in the first few posts Amy mentioned two versions - one for notice as person registers, and one for after the person has activated their account. The latter is what I am looking for.

Anyone have it or know what to change on the welcome thread upon registration?

fly
11-17-2005, 11:08 AM
I seem to be missing something. Earlier in the first few posts Amy mentioned two versions - one for notice as person registers, and one for after the person has activated their account. The latter is what I am looking for.

Anyone have it or know what to change on the welcome thread upon registration?
You want the thread to be made after the person verifies their email address?

rob30UK
11-17-2005, 12:44 PM
Actually, this mod could be heaps better.....

Can't someone make one that works like this mod request?

https://vborg.vbsupport.ru/showthread.php?t=100940

Far, Far more useful and less robotic I think.

shiola
11-17-2005, 01:36 PM
Anyone that has used this hack - Has it improved newbies actually replying to it and getting involved with your forum? Or does it just create loads of threads which get ignored.

This hack sounds good, just want to see if it's actually effective.

Thanks.

fly
11-17-2005, 01:45 PM
I use it as a noob jail. They can only post in this auto-gen thread, until they prove that they are not idiots/spammers/etc. It works well for me.

kylek
11-17-2005, 04:39 PM
You want the thread to be made after the person verifies their email address?

Yes please!! If at all possible so it will be posted after the person activates their account.

"The change the hook part is used only if you want to run this after the user activates their account. Give me a couple of secs, and I'll export that version and zip it up for people to download."

SpanishHarlem
11-17-2005, 09:27 PM
Anyone that has used this hack - Has it improved newbies actually replying to it and getting involved with your forum? Or does it just create loads of threads which get ignored.

This hack sounds good, just want to see if it's actually effective.

Thanks.


I must admit this hack. And I find that yes it has improved the newbies posting. They seem to be getting more and more involved now that they are welcome in a thread. It's even getting my regular member's to post more as well.

Mastar
11-18-2005, 12:55 AM
Where can I find the settings for this?

gldtn
11-18-2005, 06:51 AM
Would be nice if this hack added a little textbox so guest that are registering can add thier own introduction text and then it would be posted like it's suppose to.

Just a thought! ;)

fly
11-19-2005, 03:48 PM
Yes please!! If at all possible so it will be posted after the person activates their account.

"The change the hook part is used only if you want to run this after the user activates their account. Give me a couple of secs, and I'll export that version and zip it up for people to download."
Untested, but this should fix it. That's how I run this hack too.

fly
11-19-2005, 03:54 PM
Would be nice if this hack added a little textbox so guest that are registering can add thier own introduction text and then it would be posted like it's suppose to.

Just a thought! ;)
I believe I saw a hack that did that, you'll just have to search around.

Wordplay
11-20-2005, 12:33 PM
what exactly did you change in the last update? when i try to overwrite the previous installation it doesnt overwrite the previous version it adds a new product.

Vtec44
11-20-2005, 02:37 PM
Just uninstall the old one?

Vtec44
11-21-2005, 12:10 AM
Is there a possibility to update this mod so it will pick the poster ID and user name from a static list? :D

fly
11-21-2005, 11:04 AM
what exactly did you change in the last update? when i try to overwrite the previous installation it doesnt overwrite the previous version it adds a new product.
Why dont you uninstall the old one?

SpanishHarlem
11-25-2005, 03:32 AM
I want to thank you again for such a wonderful hack. I can't beleive how much of a difference it has made on my forum. It has gotten the majority of newbies to get involved and has even gotten my regular's involved in welcoming them as well.

divided_by_fear
11-26-2005, 05:59 PM
i had to change the html coding out on this and use bb code for it to work.... cause it wouldnt post links or nothing but nice hack

Thug
12-31-2005, 10:58 AM
anyway to make it so when they sign up i get the post count,my user makes the thread but it doesnt add a post count to the forum or my user

fly
12-31-2005, 06:10 PM
anyway to make it so when they sign up i get the post count,my user makes the thread but it doesnt add a post count to the forum or my user
So you want the thread to show, but the forum to NOT increase its post count OR the user's post count? I'm sure that could be done, but may I ask why?

jilly
01-03-2006, 08:26 PM
Can I change the font color of the post title that shows up when the welcome bot makes it's post?

Gripemaster
01-06-2006, 09:20 PM
EXCELLENT HACK...this is what I have been wanting for some time now. Being somewhat new to this, I made a few mistakes, but if we learn from our mistakes, I'll be a genius! Thank you!

*Clicks Install* :)

49er
01-07-2006, 10:31 PM
Why does the download show a x on it that does not allow me to download the mod?

thx

Mathiau
01-07-2006, 10:37 PM
worked perfect in 3.5.3! installed.

mkdevo
01-12-2006, 04:14 PM
just installed. this is a great hack.

however, html code in the template is not working at all for me. the code is actually showing up in the message. any ideas?

nm, figured it out.

xtreme-mobile
01-12-2006, 04:20 PM
where abouts in my admincp do i select what forum it goes into? i cant see any setting?

cheers

mkdevo
01-12-2006, 04:21 PM
where abouts in my admincp do i select what forum it goes into? i cant see any setting?

cheers

you have to edit the plugin.

xtreme-mobile
01-12-2006, 04:28 PM
you have to edit the plugin.

mmm ok ill have a look thanks

mkdevo
01-18-2006, 10:07 AM
amy,

this hack is great. thank you.

i think a great addition to this hack (is there an easy way to do this?) would be to have maybe 5 or so random welcome posts in a 'rotation', just to make it a little more personal..

would that be possible?

HaMaDa4eVeR
01-18-2006, 02:26 PM
hello dear
I want this hack work after new register user write new theread by himself in forum and the hack will replay to him as a post NOT theread. is there any way ot do that !

bloodwrath
01-25-2006, 11:14 PM
just installed. this is a great hack.

however, html code in the template is not working at all for me. the code is actually showing up in the message. any ideas?

nm, figured it out.

can ya share how you fixed this
im having the same issue

bloodwrath
01-25-2006, 11:20 PM
o ya love the plugin..

mariannet
01-28-2006, 11:42 AM
A plugin contains a snippet of code that hooks into a file and executes at the same time.

A product is a group of plugins, templates, phrases, and queries grouped together as one functional modification.

Yes, but where are the phrases for admin panel?

<phrases>
</phrases>

Tralala
02-10-2006, 01:36 AM
Could it be possible to add a new post in an existing thread of our choice, as in my case all the welcomes are being posted in a single thread? Thanks.

Yes, I too would very much like this. We already have one welcome thread in place, and I'd like new members to be announced there as they arrive. Much better/cleaner than a new thread for each and every new member.

Tralala
02-10-2006, 01:40 AM
This is a great add on -- but I need some help understanding how to keep the welcome thread from being posted until after the new user has been approved by the moderator.


Oh, yes, absolutely. It would be awkward for someone to be "welcomed" by a new thread... before they were actually approved by a mod. I mean, what if the new signup is not approved? :o That would be a bad faux-pas.

I think I'll hold off on this hack until it's easy to determine WHEN the welcome message gets posted. Thanks though...

/subscribes

SCRIPT3R
02-11-2006, 04:42 PM
since the install of this hack, if i search the IP address of any new registrant... my Admin username appears as an additional user with the same IP address. i searced this thread for the following terms and did not pull any definitive results; address, ip, duplicate, and user. anyone have any idea what might be happening?

49er
02-11-2006, 05:03 PM
since the install of this hack, if i search the IP address of any new registrant... my Admin username appears as an additional user with the same IP address. i searced this thread for the following terms and did not pull any definitive results; address, ip, duplicate, and user. anyone have any idea what might be happening?
I also get this, thou i didn't think that it was from this hack??

southernlady
02-11-2006, 07:33 PM
Tried installing yours again and it works except I can't change the welcome message. I can change the forum ID but not the message. If I change ANYTHING in the message, it no longer works.

<p>Welcome $username!</p>
<p>EA is a very diverse place. There is a lot to do here - the trick is just knowing where to look.

First, introduce yourself. We're a friendly bunch and we welcome newcomers to the <a href="http://www.eaforums.com/forums/forumdisplay.php?f=23">water cooler</a>.</p>
<p>If you have a problem figuring out how to use a forum feature, check out the <a href="http://www.eaforums.com/forums/forumdisplay.php?f=41">Getting Around forum</a>. Your question may already be answered.</p>
<p>We are a virtual water cooler. As such, we all about conversation. Unlike other "bored at work" sites, we are much more than a collection of jokes, quizzes, links and games. We have spirited conversations about politics, ethics and social issues in the <a href="http://www.eaforums.com/forums/forumdisplay.php?f=164">Symposium</a>.</p>
<p>We talk about pop culture, hobbies, raising kids, getting ahead at work, and just about anything else friends talk about around the water cooler.</p>
<p> So, if you are trapped in a cubicle at work or if you are a stay at home mom looking for something to do while the kids nap or you are just looking for some company and some fun, this is the place for you.

After you become addicted to EA, you may want to become a<a href="http://www.eaforums.com/forums/payments.php?"> premium member</a> and play with even more toys such as an online <a href="http://www.eaforums.com/forums/arcade.php">arcade.</a> Premium members pay a small annual or monthly fee, which helps keep EA's lights on for everybody to enjoy. </p>

This is NOT what I want to welcome my members with but if I try to edit anything in that block, it stops working. I want my own welcome message. Liz

southernlady
02-13-2006, 08:59 PM
Installation Instructions: Import the product. Change the welcome_thread template to suit your needs. Change the setup variables in the welcome thread plugin to suit your needs.

Well, two out of three works and for an unsupported product, I guess that's the best we can hope for. Liz

SCRIPT3R
02-14-2006, 12:59 AM
Tried installing yours again and it works except I can't change the welcome message. I can change the forum ID but not the message. If I change ANYTHING in the message, it no longer works.



This is NOT what I want to welcome my members with but if I try to edit anything in that block, it stops working. I want my own welcome message. Liz
make your edits within the welcome_thread template post installation. :)

southernlady
02-14-2006, 01:20 AM
make your edits within the welcome_thread template post installation.

I did and EVERY time I changed even a single word, it stopped working. Liz

SCRIPT3R
02-14-2006, 04:35 PM
if I try to edit anything in that block, it stops working. I want my own welcome message. Liz
what do you mean by "block"? perhaps if you post a copy of your template here and someone could figure out why it doesn't work after an edit.

fly
02-15-2006, 11:33 AM
Yes, I too would very much like this. We already have one welcome thread in place, and I'd like new members to be announced there as they arrive. Much better/cleaner than a new thread for each and every new member.
If I have some time today, I'll write up what you need to change in this hack to make that happen.

Tralala
02-16-2006, 02:32 AM
If I have some time today, I'll write up what you need to change in this hack to make that happen.

Wow! Thanks flypaper, that'd be mightily appreciated.

fly
02-16-2006, 03:27 PM
Wow! Thanks flypaper, that'd be mightily appreciated.
This should do it. I have not tested it, but I did import it and got no errors. I don't see any reason why it won't work, but please run it through a test board first.

Additionally, others have asked for the thread/post be made AFTER being approved by an admin. I believe that I gave instructions in this thread to make that happen. Please reread it, if not, I'll post 'em again.

EDIT: I'm leaving work for the day, so I'll probably have to address any errors tomorrow.

Tralala
02-16-2006, 09:25 PM
Additionally, others have asked for the thread/post be made AFTER being approved by an admin. I believe that I gave instructions in this thread to make that happen. Please reread it, if not, I'll post 'em again.

I just read through the thread again, saw a few requests for this (and one bloke addressed delaying until email addy is verified) but nothing about user moderation. Would very much like these instructions.

fly
02-16-2006, 10:19 PM
I just read through the thread again, saw a few requests for this (and one bloke addressed delaying until email addy is verified) but nothing about user moderation. Would very much like these instructions.
I'll take a look at my mangling of this hack and post what I did tomorrow. iirc, its just changing the hook and adding an additional conditional.

Did you try the product I posted?

jilly
02-17-2006, 02:38 PM
I searched but couldn't find this info - is there a way to make it so that in the new thread that is automatically started, the new member's name is a link to their profile?

Tralala
02-17-2006, 08:50 PM
Did you try the product I posted?

I did, and it posted to a thread just fine. Thanks for that customization.

My variables are set thusly:

// Use $postusername if posting as a guest, use $postuserid if posting as a user
//$postusername = 'admin';
$postuserid = $vbulletin->userinfo['userid'];

And so the post was made by the new member him/herself.


When I tried using $postusername instead, upon registration, new members would get a screen that said: " No Users Matched Your Query" (instead of "Thank you for registering, blank. An email has been dispatched to blank@blank.com with details...") This happened even if I changed "admin" to the username of a real admin on the forum, like "tralala."


Ideally I'd like for these new posts to be made by one of our admins, or maybe a "welcome bot" account, or perhaps even the member who referred their friend to our forum in the first place. Flexibility here would be ideal. Given the nature of our invite system, it seems awkward for the new member to "announce" their arrival in this way. I'd prefer it to be an existing member (or bot) making the welcome announcement.

And of course, I'd very much appreciate the posting of these to be made AFTER the new accounts are approved by moderators. Looking forward to more details on that.

Tralala
02-17-2006, 08:56 PM
A side question, I see in the code the welcome_thread template that says: EA is a very diverse place. There is a lot to do here - the trick is just knowing where to look... <etc etc etc>

I realize that this doesn't apply in my case (as new members are being announced in single posts, all in one thread,) but this default text seems inappropriate as new threads for every single member in any case. (And I'm thinking I can safely ignore it anyway.)

But I'm just curious about those that use this hack in it's original form though:

Is that for a PM to the new user? Or do forums ("EA" in this case) actually start new threads for every new member with the same "introductory/tour" text? Seems a bit... much.

Just curious, as I am new to forum moderation and I like to hear how other mods do things.

fly
02-18-2006, 08:37 PM
I did, and it posted to a thread just fine. Thanks for that customization.

My variables are set thusly:

// Use $postusername if posting as a guest, use $postuserid if posting as a user
//$postusername = 'admin';
$postuserid = $vbulletin->userinfo['userid'];

And so the post was made by the new member him/herself.


When I tried using $postusername instead, upon registration, new members would get a screen that said: " No Users Matched Your Query" (instead of "Thank you for registering, blank. An email has been dispatched to blank@blank.com with details...") This happened even if I changed "admin" to the username of a real admin on the forum, like "tralala."


Ideally I'd like for these new posts to be made by one of our admins, or maybe a "welcome bot" account, or perhaps even the member who referred their friend to our forum in the first place. Flexibility here would be ideal. Given the nature of our invite system, it seems awkward for the new member to "announce" their arrival in this way. I'd prefer it to be an existing member (or bot) making the welcome announcement.

And of course, I'd very much appreciate the posting of these to be made AFTER the new accounts are approved by moderators. Looking forward to more details on that.

If you want to post it as a specific user in your forum, change

$postuserid = $vbulletin->userinfo['userid'];
to
$postuserid = '1';
(Or whatever userid of the person you want the post to be made as...)

If you want the post to be made by an unregistered guest, make sure to comment out the $postuserid section like this:
// Use $postusername if posting as a guest, use $postuserid if posting as a user
$postusername = 'Hey Im teh welcome bot!';
//$postuserid = $vbulletin->userinfo['userid'];
EDIT: ^^ Be sure the $postusername is NOT the name of a person already on the forum...

fly
02-18-2006, 08:52 PM
A side question, I see in the code the welcome_thread template that says:

I realize that this doesn't apply in my case (as new members are being announced in single posts, all in one thread,) but this default text seems inappropriate as new threads for every single member in any case. (And I'm thinking I can safely ignore it anyway.)

But I'm just curious about those that use this hack in it's original form though:

Is that for a PM to the new user? Or do forums ("EA" in this case) actually start new threads for every new member with the same "introductory/tour" text? Seems a bit... much.

Just curious, as I am new to forum moderation and I like to hear how other mods do things.

I changed the way this hack works so that a new thread is created after a new member verifies their email address. This new thread is the only thread they can post in until approved by an administrator. It seems rather draconian, but we are an offshoot of another crazy forum, so its kinda a defense mechanism.

btw, as the hack stands now, when is the thread/post made? It isn't after admin approval? (sorry, its been a while since I played with this hack.)

southernlady
02-18-2006, 09:17 PM
what do you mean by "block"? perhaps if you post a copy of your template here and someone could figure out why it doesn't work after an edit.

That IS a copy of my welcome_thread template that I posted in post #188. If I edit ANY of the verbage in that, it stops working.

What I want it to say is this:
<p>Welcome $username!</p>
<p>Southerngazebo is a place where you can hang your hat and chat with friends.

I'm glad you joined us. If this is your first visit, be sure to check out the <a href="http://www.southerngazebo.com/forum/faq.php">FAQ</a> on the forum. Please post an introduction <a href="http://www.southerngazebo.com/forum/forumdisplay.php?f=21">Welcome to SouthernGazebo</a> so others can get to know you.

We're glad you joined. Liz aka Southernlady

When I did change it to that, it stopped working. Once I edited it back to the original message, it worked again. Liz

Tralala
02-19-2006, 12:48 AM
btw, as the hack stands now, when is the thread/post made? It isn't after admin approval? (sorry, its been a while since I played with this hack.)

Nope, I tested your edited version of the hack earlier this week and the post was made right after they registered... before they had even verified their email address, and before a mod authorized their account.

(And that's why I'm unable to use it on my forum for now.)

Tralala
02-19-2006, 01:02 AM
If you want to post it as a specific user in your forum, change

$postuserid = $vbulletin->userinfo['userid'];
to
$postuserid = '1';



That works a treat, great, thanks.

The new user registration now prompts our "WelcomeBot" account to make a post in our WelcomeThread.

However... $username doesn't work in the post body (or I can't seem to get it to work.)

The actual post reads "This is an automated message announcing the arrival of $username to our forums. Say hi!"

Anyway to get that $username variable to actually work, and insert the name of the new registrant?



I'm so close, I can taste it! :nervous:

Rickie3
02-21-2006, 11:08 AM
since the install of this hack, if i search the IP address of any new registrant... my Admin username appears as an additional user with the same IP address. i searced this thread for the following terms and did not pull any definitive results; address, ip, duplicate, and user. anyone have any idea what might be happening?
did anyone find a fix for this problem?

amykhar
02-21-2006, 11:19 AM
That's not a bug. If you have it set up to make the post under your user name, that is going to happen because the post is being made while the new user is logged in. It's going to record their IP address under your username. I guess, in theory, you could zero out the ip address for these particular posts if you really cared to do so.

Rickie3
02-21-2006, 11:28 AM
thanx for your reply amykhar,yes i do have it set to post under my username,so how would i go about zeroing the IP for these posts

fly
02-21-2006, 11:55 AM
thanx for your reply amykhar,yes i do have it set to post under my username,so how would i go about zeroing the IP for these posts
Add some DB query to the hack.

amykhar
02-21-2006, 12:46 PM
He shouldn't have to. He should be able to set that with the datamanager.

fly
02-21-2006, 12:52 PM
He shouldn't have to. He should be able to set that with the datamanager.
Well, I'll be a monkey's uncle. You're right. A wealth of info, as usual.

jilly
02-21-2006, 02:28 PM
I searched but couldn't find this info - is there a way to make it so that in the new thread that is automatically started, the new member's name is a link to their profile?
maybe I didnt phrase this right - what I am wanting to know, is in the message posted to the specified forum by the welcome bot, is there a way to make the new member's name a link to their profile?


So it will say:

"Let's welcome (membername) to our community!"

And (membername) will be a link that goes to the member's profile. So if someone wants to PM the new member, or whatever, they can click right on their name in the post, and go to their info.

amykhar
02-21-2006, 02:33 PM
Jilly, I don't remember what the new user's userid variable is in that section of the code and don't have time to look for it. All you need is the userid and you should be able to format your link, which should be clickable.

Given that you're a coder, I'll leave that little exercise to you.

jilly
02-21-2006, 02:48 PM
Jilly, I don't remember what the new user's userid variable is in that section of the code and don't have time to look for it. All you need is the userid and you should be able to format your link, which should be clickable.

Thanks! I will try it out..


Given that you're a coder, I'll leave that little exercise to you

LOL - I am only a 'coder' because that's the default vb.org usertitle for the amount of posts I've made. Large amout of posts doesn't necessarily equal coding brains :)
I do know enough to be dangerous, though. So off into dangerous waters I go!
If I can figure it out, I'll add it here to the thread..

Tralala
02-21-2006, 02:59 PM
That works a treat, great, thanks.

The new user registration now prompts our "WelcomeBot" account to make a post in our WelcomeThread.

However... $username doesn't work in the post body (or I can't seem to get it to work.)

The actual post reads "This is an automated message announcing the arrival of $username to our forums. Say hi!"

Anyway to get that $username variable to actually work, and insert the name of the new registrant?

I'm so close, I can taste it! :nervous:


I'm using flypaper's edit to have a "WelcomeBot" user create a post inside a pre-established Welcoming thread. Alas, I still can't get the final piece of the puzzle in place: to insert the name of the new member in the post's text.

$postpagetext = 'This is an automated message announcing the arrival of $username!';

Obviously, it leaves $username as $username. I know I am missing something basic. Any assistance on how to edit the text properly would be appreciated.

And if all of these edits have morphed this hack into a totally seperate and annoying concoction, that's cool. Just let me know and I'll scurry along. :nervous:

fly
02-21-2006, 03:12 PM
$postpagetext = 'This is an automated message announcing the arrival of $username!';


$postpagetext = 'This is an automated message announcing the arrival of '. $username . '!';

Try that.

$postpagetext = 'This is an automated message announcing the arrival of '. $bbuserinfo['username'] . '!';

Or that.

One of them should work. I think... LOL

Tralala
02-22-2006, 04:34 AM
$postpagetext = 'This is an automated message announcing the arrival of '. $username . '!';

Try that.


That one worked! Thanks so much, flypaper.

As soon as there's a way to delay the posting of this until after the new user has been moderated in (as opposed to "as soon as they register") I'll be enjoying the heck out of this hack.

Rickie3
02-22-2006, 05:49 AM
He shouldn't have to. He should be able to set that with the datamanager.
ok where do i find this datamanager please?

sinaluna
02-22-2006, 03:58 PM
As soon as there's a way to delay the posting of this until after the new user has been moderated in (as opposed to "as soon as they register") I'll be enjoying the heck out of this hack.Is this in the works? This is a great hack, but I need to wait for moderation also.

Thanks!

fly
02-22-2006, 04:12 PM
That one worked! Thanks so much, flypaper.

As soon as there's a way to delay the posting of this until after the new user has been moderated in (as opposed to "as soon as they register") I'll be enjoying the heck out of this hack.
Can you try this for me? I can't say that I totally understand the conditional used, but its what Andreas uses for his Welcome PM hack. This should create the post AFTER admin approval. I think. :D

Tralala
02-22-2006, 10:54 PM
Can you try this for me? I can't say that I totally understand the conditional used, but its what Andreas uses for his Welcome PM hack. This should create the post AFTER admin approval. I think. :D


Close, but no cigar. When I went to approve in a new member, I got this error:

Fatal error: Call to a member function on a non-object in /home/.odell/mydirname/myforumname.com/forums/global.php on line 22

Uninstalled the hack... and moderation went through fine.

Thanks for trying, I appreciate it!

fly
02-23-2006, 11:13 AM
bah, i'll try to look at it more this weekend, unless anyone has any better ideas.

username12
02-26-2006, 10:10 PM
How do I remove this? Just uninstalling it doesn't seem to make it go away.

Calisse
02-28-2006, 06:28 PM
Another amazing hack Amykhar

jilly
03-02-2006, 12:44 AM
Thanks! I will try it out..
If I can figure it out, I'll add it here to the thread..

I couldn't figure it out - tried my best. If anyone else figures this out, please add it to the thread so I can use it.
thanks
jilly

kanechart
03-05-2006, 11:20 PM
not sure if this does or an idea to atract the person who got welcomed into the forums..

Make it email the new registered person and send a email to there mail saying the people at the forums are welcoming you blah blah or somthing.. Maybe sound silly lol

SCRIPT3R
03-11-2006, 10:35 PM
There is a new user, $username at $vboptions.

To view their profile, go here: $vboptions[bburl]/member.php?u=$userid

[B]User Name: $bbuserinfo???
User ID: $username

Email Address: $email
IP Address: $ip

Birthday: $birthday
Age: $userinfo[age]

Custom: $customfields

although the new registered users provide the information requested, nothing shows in the welcome post. fields bolded never appear... am i using the wrong codes?

capebretoner
03-14-2006, 05:47 PM
This is something that I have been looking for, not the exact use of the plugin that I was wanting but a HUGE starting point for my new hack.....I will make sure you credit you when I am done

Funkie
03-19-2006, 05:34 PM
do you have to have html enabled in the forum this gets posted in cuz i just get the contents of the template poted exacly as it is in the template

$username etc

Tyegurl
03-27-2006, 11:56 AM
bah, i'll try to look at it more this weekend, unless anyone has any better ideas.

i don't know how to code but i have an idea maybe? i haven't found it on the forums anywhere yet.

once they meet verified member status create a thread welcoming them to "blah blah blah" like if there are hidden downloads or hidden areas. like adding a time frame to it of somesorts or admin promotes user to new status...

Funkie
03-28-2006, 06:36 PM
I'll ask again

do you have to have html enabled in the forum this gets posted too cuz i just get the contents of the template posted exactly as it is in the template

hi $username etc

instead of

hi Bert welcome etc

SCRIPT3R
03-28-2006, 08:18 PM
I'll ask again...
rather then ask again, why not just try it and see? i'm just askin' because sometimes i like to try things out.

fly
03-29-2006, 12:10 PM
I'll ask again

do you have to have html enabled in the forum this gets posted too cuz i just get the contents of the template posted exactly as it is in the template

hi $username etc

instead of

hi Bert welcome etc
no, you do not.

Tyegurl
03-30-2006, 02:10 AM
okay i think i missed something...

i would like to force the new member to post b4 he can use the rest of the forum...i have read and reread and reread again....maybe that's why i am confused. i thought i saw a mod to this hack to allow it. can someone point it out to my blond eyes?? maybe it wasn't here that i saw it....i dunno but i think it was here. am i mistaken?

amykhar
03-30-2006, 11:37 AM
That is not this mod. This mod welcomes your new members with an automated post.

DementedMindz
03-30-2006, 01:18 PM
lol i removed this cause it just post way to many messages was testing it out... i removed the product but it is still sending messages to the forum when new members register... how do i stop it?

amykhar
03-30-2006, 01:26 PM
Go look and make sure all the plugins are gone. You may have installed the plugin version before it became a product or there may be some vbulletin glitch that double installed stuff.

DementedMindz
03-30-2006, 01:34 PM
hmmm the template stayed i just removed that ill wait for a new user to see... strange though cause the product was removed.. thanks for replying so fast amy :)

DementedMindz
03-30-2006, 01:46 PM
wow amy i removed it reuploaded it removed it again and it still stays :( i removed the product... i made sure the plugin welcome thread upon registration in hook location register_addmember_complete was gone and the template was gone... but its still posting threads how can this be??? all it says now when posting is This just in: test joins our Forums...

DementedMindz
03-30-2006, 01:58 PM
wow finally its gone i hope :)

Funkie
03-30-2006, 04:23 PM
Ok so why do I get the contents of the template posted everytime I get a new user instead of hi fred welcome blah

fly
04-03-2006, 12:00 PM
Try changing $username to $userinfo[username]

Electrohead04
04-03-2006, 05:09 PM
For all those having problems with HTML code showing, heres the solution.

Go into styles -> edit templates (for the style(s) of your choice)

You need to find the "welcome_thread" template.

Change this to a post as you would normally post one, using bbcode, etc. Then Save, and it works :)

Funkie
04-03-2006, 05:57 PM
For all those having problems with HTML code showing, heres the solution.

Go into styles -> edit templates (for the style(s) of your choice)

You need to find the "welcome_thread" template.

Change this to a post as you would normally post one, using bbcode, etc. Then Save, and it works :)

Ta m8 I think I'll do that but how do you call the username?

fly
04-04-2006, 04:59 PM
Ta m8 I think I'll do that but how do you call the username?
Looks like you'll have to add a phrase and call the phrase from the template.

Tralala
04-04-2006, 05:53 PM
bah, i'll try to look at it more this weekend, unless anyone has any better ideas.


This was in regards to sending the message after email verification and user moderation, if it's turned on. Just hoping you'd get a chance to look at it some more, as that's the one missing piece for many folks who'd like to use this hack. Welcoming someone before they are moderated in could lead to some nasty awkwardness on a forum.



Next question: is it possible for the welcome post/thread to include the name of the referrer? (ie: thanking them for referring the new person.)

j1time
04-04-2006, 07:47 PM
I'm using it and it works great!! Thanks:)

alshehi
04-04-2006, 08:53 PM
Thank You

alshehi

amykhar
04-05-2006, 02:18 PM
You're welcome.

Amy

fly
04-05-2006, 06:55 PM
This was in regards to sending the message after email verification and user moderation, if it's turned on. Just hoping you'd get a chance to look at it some more, as that's the one missing piece for many folks who'd like to use this hack. Welcoming someone before they are moderated in could lead to some nasty awkwardness on a forum.



Next question: is it possible for the welcome post/thread to include the name of the referrer? (ie: thanking them for referring the new person.)
Try this. I checked out how Andreas did his Welcome PM hack and changed this accordingly. All credit goes to Amy and Kirby (LOL). Lemme know if it works.

The referer ID is easy to get, I just can't think of how to change that to a username and I think it would require an extra SQL query anyway.