PDA

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


Pages : 1 [2]

Tralala
04-13-2006, 06:14 PM
Thanks so much flypaper; I've been busy traveling and didn't get a chance to see your mod till just now. I will give it a whirl and report back ASAP.

Tralala
04-17-2006, 10:39 PM
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.

Unfortunately this didn't work. :(

I previously was using your edit (https://vborg.vbsupport.ru/showpost.php?p=902057&postcount=195) that allowed for a new post in a preexisting thread (instead of an entirely new thread.) So I uninstalled that one first.

Then I changed the forum number, userID and name variables accordingly on this one, just to test, installed it, and started the registration for a new user.

When the admin finally goes to moderate in the new user, however, this error comes up:
Fatal error: Call to a member function on a non-object in /home/.odell/mydir/myforumname/forums/global.php on line 22

Thanks for the effort, flypaper. I'm still very interested to see if this can be made to work. Seems like it makes a lot of sense and is a nice way to give a welcome to every new member ... so long as they are verified and moderated inside properly! :cool: (As I'm sure you know, not every board has an open-door policy, some are decidely restricted or "invite (https://vborg.vbsupport.ru/showthread.php?t=101801) only," and the vibe is enhanced when members are greeted properly when they finally are able to login. Of course this whole mechanism falls apart if they are welcomed publicly... before they are fully validated and approved by an admin.)

Thanks again for the attempt and the attention.

haytham
05-02-2006, 12:40 PM
Thanks. Clicked install. Took some time from me to translate into my language ( only because I am poor at these codes ) Clicked install. Realy nice. Thanks

rolliet
05-07-2006, 06:25 AM
I can't seem to find if this has been asked before. Everything works fine and the body of the message is perfect, but the title doesn't give the new user name it gives me this: "This just in: joins our Forums..." So how do I get the title to reflect the new user name?

Thanks for the hack I really like it.

Edit: Got it fixed had to change title to :$userinfo[username]

5wayshosting
05-08-2006, 03:35 AM
can someone confirm this hack is right to install.

cheers:banana:

coffee
05-08-2006, 07:16 PM
Thank you amykhar.

Mark.B
05-14-2006, 09:42 PM
Has anyone managed to get this to work on approval of the account rather than email verification? Flypaper's edit doesn't work, I've tried troubleshooting this but it's beyond me.

It seems to be something to do with the different hook location not working with a particular function, that's about the best I can come up with. I can't fix it. :(

Mark.B
05-14-2006, 09:46 PM
UPDATE: I can make it work by manually adding the code to admincp/user.php. I was rather hoping to do it with a plugin, but it seems not.

Tralala
05-14-2006, 09:57 PM
UPDATE: I can make it work by manually adding the code to admincp/user.php. I was rather hoping to do it with a plugin, but it seems not.

As you've read in this thread, I've been testing flypaper's code modifications all along, to no avail. Really eager to get it working as you have, as it's the only thing keeping me from using this excellent idea/hack on my forum.

Would you be able to share the code additions? I'd appreciate it.

Mark.B
05-14-2006, 10:10 PM
Well I did this.

In admincp/user.php find:

}
else if ($status == -1)


Add above (changing the variables of course)

// Backend Files
require_once('./global.php');
require_once('./includes/class_dm.php');
require_once('./includes/class_dm_threadpost.php');

// Setup Variables
$forumid = 174; // The forum id that you want the thread posted in
$postuserid = 101; // The Userid of the poster
$postusername = "Mark.B"; // The username of the poster
$title = "Welcome, " . $username; // The thread title

// Don't change below this line

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

$username = htmlspecialchars_uni($username);
$allowsmilie = '1';
$visible = '1';
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);
$tid = $threaddm->save();

// Update last post stuff on forumdisplay
require_once('./includes/functions_databuild.php');
build_forum_counters($forumid);


The only slight issue I have found is this. When you approve an account, the message that says 'User accounts validated and users notified" is missing the sort of "silver header bar" it normally has. If you comment out:
require_once('./global.php');
then the header bar reappears, but then the post that is created is blank, it does not contain any text.

I am guessing that using global.php twice is causing the header bar to vanish. This itself is not a problem, however I worry about what other side effects this is having.

Perhaps an expert coder could point us in the right direction as we are NEARLY there!

Dr Steevil
05-15-2006, 06:33 PM
Miss Amy, this is gonna be great for my growing forum! I have installed this, however before I activate it on my site I need to know one thing:

I understand changing the forumid to the forum I want the thread started in. But what about this part?

$postuserid = 1328; // The Userid of the poster
$postusername = "Justin"; // The username of the poster

How does this work? Do the variables dynamically change? Or am I completely missing something here?

Dr Steevil
05-15-2006, 06:42 PM
Oops. Guess I should've TESTED it first! I understand! Thanks for a great hack! ***clicks install***

:banana:

fly
05-15-2006, 07:12 PM
The only slight issue I have found is this. When you approve an account, the message that says 'User accounts validated and users notified" is missing the sort of "silver header bar" it normally has. If you comment out:
require_once('./global.php');
then the header bar reappears, but then the post that is created is blank, it does not contain any text.

I am guessing that using global.php twice is causing the header bar to vanish. This itself is not a problem, however I worry about what other side effects this is having.

Perhaps an expert coder could point us in the right direction as we are NEARLY there!
I believe require_once says not to call it again, if it has already been called, so I don't think that's the issue. There weren't any hooks listed in the area that you pasted the code?

Its getting late, I'll try to look at it again tomorrow in my spare time. It shouldn't be that hard to get going. Odd...

Mark.B
05-16-2006, 06:08 PM
I believe require_once says not to call it again, if it has already been called, so I don't think that's the issue. There weren't any hooks listed in the area that you pasted the code?

Its getting late, I'll try to look at it again tomorrow in my spare time. It shouldn't be that hard to get going. Odd...
No there's no hooks in that section as far as I can see.

It is very nearly there...I don't much care about the missing header bar in the confirm message as it's purely cosmetic, my worry is what other side effects that is having.

Mark.B
05-23-2006, 07:00 PM
Hmmm....another problem with my method...if you approve more than one account at once the second thread contains the text for both threads, the third contains all three, etc etc.

It must be loooping wrongly but I can't seem to fix that either.

GamerJunk.net
05-23-2006, 09:22 PM
Mine keeps reverting back to your welcome thing even tho I changed it in the plugin

peterska2
06-12-2006, 09:06 PM
It doesn't work for me on 3.6

Locked up my ACP - No error Messages - Had to disable plugins via config.php and remove it.

Annapurna
06-19-2006, 03:08 PM
I'm still on 3.5.4

Worked fine!

BUT: stopped working as soon as I changed the forum-id.
Changing back: not working!
uninstall / reinstall: not working!

Any ideas?

Andreas

ab420
07-03-2006, 02:35 AM
Thank you SOOOO much for this!!! I've been killing myself trying to say hello to every new member! LOL!

Ski-Whiz
07-10-2006, 02:22 AM
It doesn't work for me on 3.6

Locked up my ACP - No error Messages - Had to disable plugins via config.php and remove it.


Amy can we get an update for 3.6, AND somehow make this so it can create a thread unpon email verification??

This prevents trolls from creating BS accounts, and spaming our welcome forum..

lil7rocket
07-26-2006, 03:29 AM
Hey amy thanks for a great mod I just made some minor modifications to your product so I thought I'd share. Strangely, I only got it to work if i made the mods to the plugin portion before install.
If anyone needs them to get them to work properly on their forum let me know and i can get it working for you.

I am going to work on a version of this with options in the Admin cp using your mod and Sina's mod i think i can hash something together

lil7rocket
07-26-2006, 03:35 AM
Amy can we get an update for 3.6, AND somehow make this so it can create a thread unpon email verification??

This prevents trolls from creating BS accounts, and spaming our welcome forum..

if you want this to work only after email verification and/or after they finish registration when email verification is disabled then use the edit i just posted
if you dont want the welcome template changed from what you made it then use the one contained here

PhenomLeader
08-01-2006, 03:01 PM
I've a question. My new thread is popping up under the username of the new member, and not the 'general staff' username I created.

In the list of threads it looks like the user has posted a thread to welcome him or herself. Once you open the thread, the username is the 'general staff' username.

I don't know where in here:

// Setup Variables
$forumid = 11; // The forum id that you want the thread posted in
$postuserid = 271; // The Userid of the poster
$postusername = "$username"; // The username of the poster
$title = "Welcome new member: " . $username; // The thread title

To fix that?

Should I change $username to the UserID of the 'general staff' that I want to use ?

PhenomLeader
08-02-2006, 04:29 AM
I got it, thanks! Great hack!

I||usi0nz
08-02-2006, 04:33 AM
great, thanks Amy :)

What's the difference to your minor modifications lil7rocket?

Froggy32701
08-08-2006, 08:23 PM
Does this work w/ 3.6 ?

Tyegurl
08-08-2006, 08:27 PM
yes it does!

Tralala
08-10-2006, 12:38 AM
if you want this to work only after email verification and/or after they finish registration when email verification is disabled then use the edit i just posted


Can this be made to post a new thread (or a new message in an existing thread) when (and only when) a new user is approved from the moderation queue?

lil7rocket
08-12-2006, 06:46 AM
Can this be made to post a new thread (or a new message in an existing thread) when (and only when) a new user is approved from the moderation queue?


yeah after you install it you can just move its hook to register_addmember complete and I believe that will trigger it after the user has been approved if not Ill have to go look at it more in depth later

lil7rocket
08-12-2006, 06:49 AM
great, thanks Amy :)

What's the difference to your minor modifications lil7rocket?

just streamlines it a little bit

#1 should install seamlessly over any old installations and should work perfect with those using a lot of mods and those using none

#2 is the same but wont overwrite your welcome message with a new one

lil7rocket
08-12-2006, 06:54 AM
I'v a question. My new thread is popping up under the username of the new member, and not the 'general staff' username I created.

In the list of threads it looks like the user has posted a thread to welcome him or herself. Once you open the thread, the username is the 'general staff' username.

I don't know where in here:


To fix that?

Should I change $username to the UserID of the 'general staff' that I want to use ?


When you use $username that calls the username of the person who just registered since a variable cant logically have 2 answers you must either

a: create a new variable similar to $username and insert it into the coding structure of the forum (this gets complicated i wouldnt try it)

or B: make $username the UserName of the Staff member who you want to welcome people

y2krazy
08-12-2006, 09:55 PM
Could this maybe be substituted by a multi-line textbox on the registration page for a user to type in the actual post? That would be very nice to have.

Gizmo5h1t3
08-21-2006, 04:21 PM
so...after 19 pages of posts, is there a clear working version of this at all??

for 3.5 or 3.6???

bada_bing
08-21-2006, 04:24 PM
How do you choose which forum and what the welomce thead says? Would be nice if there was a nice menu in admincp for this.

jluerken
08-21-2006, 05:39 PM
so...after 19 pages of posts, is there a clear working version of this at all??

for 3.5 or 3.6???

Simple answer is yes, its working with vB 3.6
I had it installed on my vB 3.5 and updated the board to vB 3.6
The hack is still working fine as you can see here
http://www.clanforums.com/forum/introduce-yourself/18990-welcome-devolition-clanforums-network.html#post80338

Gizmo5h1t3
08-21-2006, 06:04 PM
rofl...i threw in 3.6 as a postscript, its 3.5 im bothered about mate.....

and it seems its NOT working correctly with that version...

after the original post, there seems to be soooooo many conflicting posts about what code to use, and theres been no definitive answer from the author as yet....or an edited instruction set with the correct code to use...

jluerken
08-21-2006, 06:18 PM
rofl...i threw in 3.6 as a postscript, its 3.5 im bothered


Well its written for 3.5 and I used it also in that version.
Whats not working for you?

upsetter
08-22-2006, 04:41 AM
is there something like this for 3.6.0 ?... would realy appriciate it... :D

lil7rocket
08-24-2006, 01:09 AM
rofl...i threw in 3.6 as a postscript, its 3.5 im bothered about mate.....

and it seems its NOT working correctly with that version...

after the original post, there seems to be soooooo many conflicting posts about what code to use, and theres been no definitive answer from the author as yet....or an edited instruction set with the correct code to use...

go back a page and read my edits they work regardless of what version of 3.5 or 3.6 you have they have both

Gizmo5h1t3
08-24-2006, 04:11 PM
used lil7rocket `s edited xml, and it works fine on 3.5....thanks

jeremycs
08-25-2006, 12:01 AM
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


Is this version available somewhere?

dknelson
09-13-2006, 06:11 PM
Installed and working perfectly on my 3.6 board. This is a GREAT hack. Thanks to Amy and to Lil7rocket for the revisions.

fly
09-13-2006, 06:26 PM
Installed and working perfectly on my 3.6 board. This is a GREAT hack. Thanks to Amy and to Lil7rocket for the revisions.
You know this is built in to 3.6, right? :D

dknelson
09-13-2006, 06:54 PM
No...I obviously did not know that and from all the posts, many others didn't either. Where is it located? I know that welcome PMs are there and welcom emails but where is the option to enable a welcome thread?

fly
09-13-2006, 07:08 PM
No...I obviously did not know that and from all the posts, many others didn't either. Where is it located? I know that welcome PMs are there and welcom emails but where is the option to enable a welcome thread?
I'm so sorry. I was looking at multiple threads at the same time on multiple forums. I'm wrong.

dknelson
09-14-2006, 12:10 PM
Hey...no problem. It would have been entirely possible that I had missed it. :)

GrandAmGuru
09-25-2006, 07:41 PM
Trying to remove this hack due to the unresolved "waiting for moderation" issue. I've deleted the plugin, but I can't delete the welcome_thread template. Any idea how to remove that? It's in my main style area.

fly
09-26-2006, 11:41 AM
Trying to remove this hack due to the unresolved "waiting for moderation" issue. I've deleted the plugin, but I can't delete the welcome_thread template. Any idea how to remove that? It's in my main style area.
Revert the template. That should delete it.

GrandAmGuru
09-26-2006, 11:46 AM
I reverted the template and all it did was set it back to the original coding of "EA is a very diverse........" Not that it's doing any harm by being there, hopefully I'll be editing it again soon when the waiting for moderation issue gets identified/resolved.

Tralala
09-27-2006, 07:55 AM
Trying to remove this hack due to the unresolved "waiting for moderation" issue. I've deleted the plugin, but I can't delete the welcome_thread template. Any idea how to remove that? It's in my main style area.

Did you try lilrocket's edit above:
https://vborg.vbsupport.ru/showpost.php?p=1037687&postcount=272
and
https://vborg.vbsupport.ru/showpost.php?p=1050388&postcount=279

Apparently that'll let it work with moderation turned on... haven't had a chance to test it myself.

GrandAmGuru
09-27-2006, 01:12 PM
Did you try lilrocket's edit above:
https://vborg.vbsupport.ru/showpost.php?p=1037687&postcount=272
and
https://vborg.vbsupport.ru/showpost.php?p=1050388&postcount=279

Apparently that'll let it work with moderation turned on... haven't had a chance to test it myself.


I installed the xml file from above

after you install it you can just move its hook to register_addmember complete and I believe that will trigger it after the user has been approved if not Ill have to go look at it more in depth later

I checked the hook location and it's already set to register_addmember_complete. It's still creating the welcome thread prior to moderation/account approval.

Oh well, we'll just manually create a new thread for each new person.

Tralala
10-02-2006, 11:19 PM
I installed the xml file from above

...
I checked the hook location and it's already set to register_addmember_complete. It's still creating the welcome thread prior to moderation/account approval.

Oh well, we'll just manually create a new thread for each new person.


Ouch. Bummer. I really wish I could use an add-on like this, but with the thread starting after the user moderation has been approved.

Thanks for the feedback, though. I appreciate it and saves me much hassle.

SCRIPT3R
10-02-2006, 11:58 PM
i would go ahead and port this to 3.6, but it appears as though amykhar is already doing so to some of her hacks... and i don't want to step on any toes.

drdeathuk69
10-09-2006, 07:03 AM
i would go ahead and port this to 3.6, but it appears as though amykhar is already doing so to some of her hacks... and i don't want to step on any toes.

Any look on getting this for 3.6 ?

amykhar
10-09-2006, 02:00 PM
The reports I have are that it works as written on 3.6. No need to port. Just install and use. I don't generally repost the mods in the 3.6 section if they don't need changes to work. If it doesn't work in 3.6, let me know and I'll look at it. I no longer use it at my site.

peterska2
10-09-2006, 10:33 PM
I have it working on both my sites and have done since 3.6.0 beta 1 (or was it beta 2?)

drdeathuk69
10-09-2006, 11:56 PM
The reports I have are that it works as written on 3.6. No need to port. Just install and use. I don't generally repost the mods in the 3.6 section if they don't need changes to work. If it doesn't work in 3.6, let me know and I'll look at it. I no longer use it at my site.


Not working here on 3.6.0 :surprised:

isanda
10-17-2006, 09:14 AM
I have installed this on 3.6.1 and all was fine....except it is creating a thread from an unknown user 'Lullaby' and the thread is not in a forum. I canno view / admin / moderate this thread as it gives me a message syaing I need to be admin even though I am.

The hack is also posting the correct welcome message as well.

Help!!!

dknelson
10-18-2006, 06:08 PM
I installed the xml file from above



I checked the hook location and it's already set to register_addmember_complete. It's still creating the welcome thread prior to moderation/account approval.

Oh well, we'll just manually create a new thread for each new person.

Same for me, running 3.6.2. Works fine but it posts the welcome thread instantly and I don't want it to do so until they have responded to the email verification.

isanda
10-18-2006, 08:48 PM
Mine is only posting a welcome thread when the new member posts a first thread....can I change this to when they register??

rareclownfish
10-20-2006, 05:54 AM
Has this been ported to 3.6.2?

isanda
10-22-2006, 08:48 PM
Anybody any ideas on my 2 queries???

brvheart
11-06-2006, 01:15 PM
Has this been ported to 3.6.2?

I just installed this on my 3.6.2, it works like a charm, edited the plugin with no issues and the template. Thanks Amy :)

amykhar
11-06-2006, 02:34 PM
My pleasure

dknelson
11-28-2006, 08:50 PM
I'm using this and it works great. I still have the problem though of it posting the thread as SOON as they register and I would like it to not post until they have confirmed the email confirmation. Can somebody help with this?

Also, I would like to add one thing to the thread title or subject. Where it now says Welcome: Newuser....I would like it to also add the location of the user..for example. Welcome: Newuser from location How would I do that?

Thanks in advance.

optrex
12-01-2006, 12:47 PM
I still have the problem though of it posting the thread as SOON as they register and I would like it to not post until they have confirmed the email confirmation. Can somebody help with this?



I'd like to use this mod, but would prefer to wait for the above functionality too please. I've clicked install so I can keep track of developments.

speedway
12-01-2006, 11:50 PM
Can anyone give me pointers re the template installed by this addon. The template does not seem to be processed for markup so I am unsure of what to put into it. I am om 3.61. SO if anyone could post the content of their template showing how to do markup, it would be appreciated.

Cheers
Bruce

Queball_Beast
12-12-2006, 12:26 AM
hmm dont seem to be working on 3.64 as i got this error.
Hope it is ported over to 3.64.
I got this error.

Today I was checking my site to see if all files was ok, so I went to create a new member. after filling out the forms, I clicked submit and got this error.


Fatal error: Existing data passed is not an array
Called set_existing in /*****/****/****/****/gamerspride.com/phpBB2/includes/functions_databuild.php on line 164
Called build_forum_counters in /****/local/home/****/gamerspride.com/phpBB2/register.php(480) : eval()'d code on line 37
Called eval in /****/****/*****/*****/gamerspride.com/phpBB2/register.php on line 480
in /includes/class_dm.php on line 235


anyone know what this means?

Rhy
12-21-2006, 03:48 PM
Like to see a version for 3.6.4 coz don't work on it atm..

fly
12-21-2006, 03:59 PM
I don't see why it wouldn't work. I'm using my own version of this hack on 3.6.4...

kenfuzed
12-22-2006, 04:12 AM
Just added this to my 3.6.4 installation and so far it works perfectly. I'll keep an eye on it.

Ken

Shazz
12-22-2006, 04:17 AM
* Shazz forgot to click install :)

dknelson
01-16-2007, 08:47 PM
This is a good hack and I thank Amy for releasing it. It appears though and she doesn't have any desire to update it though and I don't know how. Two features that I would really like to see and have asked about but have received no responses are:

1. An option so that it does not create the welcome thread until after the new registrant had replied to the confirmation email.

2. The thread title could include the users location. State, Province, etc.

Does anybody know how to do this or know of a similar hack that will do this?

Renae
01-17-2007, 07:34 PM
This is a good hack and I thank Amy for releasing it. It appears though and she doesn't have any desire to update it though and I don't know how. Two features that I would really like to see and have asked about but have received no responses are:

1. An option so that it does not create the welcome thread until after the new registrant had replied to the confirmation email.

2. The thread title could include the users location. State, Province, etc.

Does anybody know how to do this or know of a similar hack that will do this?

I also would like this. As we want to use this hack a little differently. Only the staff will see these threads, and it would help them if they knew more about the members. I was playing around with some stuff...but the most important thing would be determining the members usergroups. I tried a couple things, but was unable to figure it out.

rjmjr69
01-24-2007, 07:48 AM
I also would like this. As we want to use this hack a little differently. Only the staff will see these threads, and it would help them if they knew more about the members. I was playing around with some stuff...but the most important thing would be determining the members usergroups. I tried a couple things, but was unable to figure it out.

I would imagine that you could just set it to your staff safe house if you have one setup. Or start a forum that is only viewable to your staff and have it set the email there.

Renae
01-24-2007, 01:37 PM
I would imagine that you could just set it to your staff safe house if you have one setup. Or start a forum that is only viewable to your staff and have it set the email there.

Unfortuantely that's not what I'm talking about. I already have that all done and such. I was wanting more help on using variables in the templates to display more information about the user that just registered in the thread that is posted for my staff to see.

https://vborg.vbsupport.ru/showthread.php?t=136258&highlight=user+profile+in+templates
Were the examples that I was using to try to come up with the logic to do this. Using the different fields in the user table. There is a field called "[membergroupids]" in the User table, but I guess I am still a little unsure on how to access this field in a template.

Why do I want this? I throw users into secondary usergroups based on a field they pick at registration, and we want to know what member group they are in.

So does anyone have any experience with this? I'm a little slow I suppose.

dknelson
01-30-2007, 10:41 AM
For those of you who want this heck to create the welcome thread AFTER a new member responds to the confirmation email. I finally figured out how to do that. Very simple.

Go to your CP and then "Plugin Manager".

Beside the "Start Welcome Thread...." plugin click on "Edit".

In the second field from the top "Hook Location"...click the arrow and choose:
register_activate_process

That's all there is to it.

Now if somebody could help me figure out how to add the users "Location" to the title, that would be nice. Something like Welcome: Name from Location

I've tried but no luck yet.

Don

fly
01-30-2007, 11:30 AM
For those of you who want this heck to create the welcome thread AFTER a new member responds to the confirmation email. I finally figured out how to do that. Very simple.

Go to your CP and then "Plugin Manager".

Beside the "Start Welcome Thread...." plugin click on "Edit".

In the second field from the top "Hook Location"...click the arrow and choose:
register_activate_process

That's all there is to it.

Now if somebody could help me figure out how to add the users "Location" to the title, that would be nice. Something like Welcome: Name from Location

I've tried but no luck yet.

Don

iirc, you'll also need to check that the user has no posts, otherwise you'll get a thread generated when your users change their email address.

To echo the location, you can probably use $userinfo['location']. You'd have to look in the DB for the exact field name, but I'd guess its just 'location'.

Renae
01-30-2007, 03:42 PM
iirc, you'll also need to check that the user has no posts, otherwise you'll get a thread generated when your users change their email address.

Are you sure? I changed it to the suggested hook location, and changed my email address, but a new thread did not show up.

fly
01-30-2007, 03:56 PM
Are you sure? I changed it to the suggested hook location, and changed my email address, but a new thread did not show up.

Then, no, I'm not sure. ;) I thought that was the problem I ran into, but I must have used a different hook.

dknelson
01-30-2007, 07:06 PM
Flypaper,
I'm having a hard time getting the location to work. Where all do I put the location tag? Here is what I am running now, without anything added for the "location". Any help would be appreciated. Sorry...I am NOT a coder. :(

// Backend Files
require_once('./global.php');
require_once('./includes/class_dm.php');
require_once('./includes/class_dm_threadpost.php');

// Setup Variables
$forumid = 89; // The forum id that you want the thread posted in
$postuserid = 1; // The Userid of the poster
$postusername = "Freebird"; // The username of the poster
$title = "Welcome: " . $userinfo[username]; // The thread title

// Don't change below this line

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

$username = htmlspecialchars_uni($username);
$allowsmilie = '1';
$visible = '1';
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);
$tid = $threaddm->save();

// Update last post stuff on forumdisplay
require_once('./includes/functions_databuild.php');
build_forum_counters($forumid);

fly
01-30-2007, 07:18 PM
In that case, try editing the 'welcome_thread' template and use $post[field2] for location. I'd think that would work. Lemme know.

dknelson
01-31-2007, 11:09 AM
Thanks...but I am looking to add it to the TITLE...Like...

Welcome: New user from wherever

Tralala
02-01-2007, 08:03 AM
For those of you who want this heck to create the welcome thread AFTER a new member responds to the confirmation email. I finally figured out how to do that. Very simple.

Wow, that's great, one step closer to what I am looking for. We have user moderation turned on (small community.) All the more reason to WELCOME someone with a thread all their own, once they jump in!

And so I want this hack to create the welcome thread AFTER the new member has been moderated/accepted . If it happens before (ie: after they confirm their email) and for whatever reason they are NOT moderated/accepted, it could cause an awkward and sticky situation.

Any clues on how to make THAT happen? I'd be forever in your debt, this has stumped many great men and women who tried before you.

dknelson
02-01-2007, 09:38 AM
You would have to try it but I would think that the hook: register_addmember_complete would do what you want it to. That one has been suggested before though. Have you tried it? It didn't work on my board but I think it was because I don't use moderator approval for new registrations so the approval was instant. I would think it would work in your case though.

gizmo01
02-05-2007, 05:34 PM
For those of you who want this heck to create the welcome thread AFTER a new member responds to the confirmation email. I finally figured out how to do that. Very simple.

Go to your CP and then "Plugin Manager".

Beside the "Start Welcome Thread...." plugin click on "Edit".

In the second field from the top "Hook Location"...click the arrow and choose:
register_activate_process

That's all there is to it.

[snip]

Don



This change is awesome. It should be included as an option in any future updates...or at the very least mentioned in the description since it seems many of us wanted this feature.

giz

blogtorank
02-09-2007, 04:21 PM
Thanks...but I am looking to add it to the TITLE...Like...

Welcome: New user from wherever

Go to the Plug-in Manager and edit the code:


$title = "This just in: " . $username . " joins YOUR Forums..."; // The thread title

dknelson
02-09-2007, 09:14 PM
Yes...I've tried that but am not getting the location to show up. I'm sure I'm adding it wrong but not sure what I'm actually doing wrong.

fly
02-09-2007, 09:26 PM
In that case, try editing the 'welcome_thread' template and use $post[field2] for location. I'd think that would work. Lemme know.

Yes...I've tried that but am not getting the location to show up. I'm sure I'm adding it wrong but not sure what I'm actually doing wrong.

That doesn't work?

dknelson
02-10-2007, 11:56 AM
Here is what I tried:

$title = "Welcome: " . $userinfo[username]; "From:" $post[field2]; // The thread title

When I added the $post[field2], it stops working completely. Please tell me what I' doing wrong.

fly
02-10-2007, 12:35 PM
Here is what I tried:

$title = "Welcome: " . $userinfo[username]; "From:" $post[field2]; // The thread title

When I added the $post[field2], it stops working completely. Please tell me what I' doing wrong.

Then I'm sorry, its beyond my weak coding skills. I would hazard a guess that it requires a SQL query, but that is just a guess.

dknelson
02-10-2007, 07:45 PM
No problem...thanks for your efforts.

Mr. Christopher
02-11-2007, 11:18 AM
Is it possible to make the welcome thread's creation add to the postuserid's post count?

fly
02-11-2007, 01:43 PM
Is it possible to make the welcome thread's creation add to the postuserid's post count?

Post it under their name.

Mr. Christopher
02-11-2007, 03:20 PM
Post it under their name.
I think that's what I'm doing now, but April Fool's postcount doesn't increase even when the mod successfully creates new welcome threads via her account. Am I doing this wrong?

$postuserid = 3; // The Userid of the poster
$postusername = "April Fool"; // The username of the poster

acquiesce
02-19-2007, 07:28 PM
Is there any way to add a link to the new members profile?

Tom_S
02-23-2007, 01:27 PM
Okay...little help here please. I have been going through the thread and I am not sure so can anyone direct me to the working version of this for when a user has activated his/her account only. There has been so many modifications to this to suit one person or another that I am not sure which one to use in the many threads. I love the mod!

Very much appreciated :)

Thanks

Tom_S
02-24-2007, 04:44 PM
I have it installed but I do not like the fact that it posts this for users who are not even activated. I tried the setup to fix that and then it dosen't include the username when it makes the post for the activated user. Ideas?

Tom_S
02-24-2007, 04:51 PM
Oops...I didn't see this thread:

For those of you who want this heck to create the welcome thread AFTER a new member responds to the confirmation email. I finally figured out how to do that. Very simple.



Go to your CP and then "Plugin Manager".



Beside the "Start Welcome Thread...." plugin click on "Edit".



In the second field from the top "Hook Location"...click the arrow and choose:

register_activate_process



That's all there is to it.



Now if somebody could help me figure out how to add the users "Location" to the title, that would be nice. Something like Welcome: Name from Location



I've tried but no luck yet.



Don



Thanks :)

Tom_S
02-24-2007, 05:14 PM
Nope..that didn't work...It makes it do what I said and show no username at all and it still makes the post even though it isn't activated.

Tralala
02-24-2007, 08:28 PM
You would have to try it but I would think that the hook: register_addmember_complete would do what you want it to. That one has been suggested before though. Have you tried it? It didn't work on my board but I think it was because I don't use moderator approval for new registrations so the approval was instant. I would think it would work in your case though.

Thanks for the reply... yes I did try it, in fact, my plug-in's "Hook Location" was already set to register_activate_process.

And yet, the new thread is created as soon as the new member registers. Not after they validate their email, nor after a moderator approves the new user... right after they sign up. Which obviously makes this hack unusable for me. :(

Thanks for the help, anyway.

optrex
03-09-2007, 03:20 PM
Thanks...but I am looking to add it to the TITLE...Like...

Welcome: New user from wherever


use this in your plugin


$title = "Welcome to the forum: " . $userinfo[username]. " from " . $userinfo[field2]; // The thread title

dknelson
03-09-2007, 04:38 PM
FANTASTIC...that works perfectly. Thank you VERY much.

Bree
03-12-2007, 11:46 PM
I've had this installed for quite a while now - works great and I love it!! Thanks so much! *Installed* and *Nominated*

Always Bree

PS Using vB 3.6.5 =0)

adwade
03-14-2007, 02:44 AM
This is a good hack and I thank Amy for releasing it. It appears though and she doesn't have any desire to update it though and I don't know how.

Does anybody know how to do this or know of a similar hack that will do this?

Just curious if anything else is out there like this? Being a newbie, and not a coder, all the additional tweaks to this MOD (in the previous 20+ pages of conversation) tends to make me :eek: Would love to have this work on my board, but not sure I could sift thru all the instructions, revisions, and suggestions and make it so. :(

Freak0204
03-21-2007, 05:51 PM
I can't seem to find if this has been asked before. Everything works fine and the body of the message is perfect, but the title doesn't give the new user name it gives me this: "This just in: joins our Forums..." So how do I get the title to reflect the new user name?

Thanks for the hack I really like it.

Edit: Got it fixed had to change title to :$userinfo[username]

I did that to try and fix the same problem but now get this error when I registered a test account to see if it worked.

Parse error: syntax error, unexpected ':' in /home/babble/public_html/forum/register.php(1002) : eval()'d code on line 10

lil7rocket
03-25-2007, 04:51 PM
I am rewriting this slightly to work better with 3.6 and have control in the AdminCP

Tralala
03-25-2007, 04:56 PM
I am rewriting this slightly to work better with 3.6 and have control in the AdminCP

Awesome. Would be most excellent if you could set it so that the admin could choose precisely WHEN the Welcome Thread is created:

-after registration, or
-after email confirmation, or
-after user moderation (which is what I would choose, since my forum is user-moderated)

No one has been able to crack that nut yet, and if you do, I personally will be happy to send you a $ token of my appreciation!!

adwade
03-25-2007, 11:03 PM
I am rewriting this slightly to work better with 3.6 and have control in the AdminCP

That would just be a BLESSING for us poor non-coders out here wanting this!? :up:

BigJimTheLug
03-26-2007, 12:52 AM
I am rewriting this slightly to work better with 3.6 and have control in the AdminCP

Thanks. I've been searching for this mod, glad I found it.

lil7rocket
03-26-2007, 11:47 PM
I installed the xml file from above



I checked the hook location and it's already set to register_addmember_complete. It's still creating the welcome thread prior to moderation/account approval.

Oh well, we'll just manually create a new thread for each new person.


I figured this out but I will have to make a new hook for you. No worries I'll write it all up.

Tralala
03-26-2007, 11:52 PM
I figured this out but I will have to make a new hook for you. No worries I'll write it all up.

Hip hip hurray! :) :up:

dknelson
04-02-2007, 11:26 PM
Is there any way to add a link to the new members profile?

I never saw an answer to this. Did anybody figure it out? Would be great to have a link to the new members profile in the text of the message.

I tried this....but it's not working:

<a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">View Profile</a>

dknelson
04-04-2007, 10:59 AM
hmmmmm.....I guess nobody has done this. I'll keep trying.

Shazz
04-04-2007, 11:31 AM
hmmmmm.....I guess nobody has done this. I'll keep trying.

This is not currently supported

BlackScorpion3
04-12-2007, 12:59 AM
Had to tweak it by sifting through posts on here, but finally got it to work. If anyone needs the .xml I have PM me and I will post it. I have it starting the thread after activation.....

dknelson
04-12-2007, 01:46 AM
This is not currently supported

I really do not understand that response. There are many things that are not currently supported, that's why many people work on stuff like this and is why many hacks continue to evolve.

adwade
04-12-2007, 02:42 AM
Had to tweak it by sifting through posts on here, but finally got it to work. If anyone needs the .xml I have PM me and I will post it. I have it starting the thread after activation.....

Ref: Copy of product-amykhar_10172005.xml

Clarify something for me, is this 'all' you need to install this MOD? And is it compatible with vB v3.6.4?

Tralala
04-12-2007, 02:48 AM
I really do not understand that response. There are many things that are not currently supported, that's why many people work on stuff like this and is why many hacks continue to evolve.

I'm with you, dknelson.

BlackScorpion3
04-12-2007, 04:27 PM
Ref: Copy of product-amykhar_10172005.xml

Clarify something for me, is this 'all' you need to install this MOD? And is it compatible with vB v3.6.4?

yes, and yes!!!!

adwade
04-13-2007, 03:12 AM
I am rewriting this slightly to work better with 3.6 and have control in the AdminCP

Just figured out (by accident) that you'd actually done this now! Thanxx!

See Welcome Thread with VB Option (https://vborg.vbsupport.ru/showthread.php?t=144344)

mlbvb
05-10-2007, 06:59 PM
BlackScorpions version still didn't quite work for me. I had to tweak the title code, etc. to get it to actually add the username correctly.

I have only this product installed (neither the original or Lil7rocket's version worked for me) and it currently posts after the user verifies their registration through email and it does not put the thread into moderation. Our board is 3.6.1

shrubs2000
06-05-2007, 10:59 PM
Greetings!

I tried numerous versions and I receive the following errors (note: all I changed from the products was the user ID and Forum IDs)

*Fatal error:* Existing data passed is not an array
Called set_existing in /forums/includes/functions_databuild.php on line 200
Called build_forum_counters in /forums/register.php(485) : eval()'d code on line 35
Called eval in /forums/register.php on line 485
in */includes/class_dm.php* on line *235*

Board is 3.6.7

Shazz
06-06-2007, 12:51 AM
I really do not understand that response. There are many things that are not currently supported, that's why many people work on stuff like this and is why many hacks continue to evolve.

And thats why people get mad when questions don't get answered in unsupportive threads. :)
Some do. Most don't

dknelson
06-06-2007, 12:56 AM
Well add me to the list of folks that don't get mad. I will continue to make suggestions and ask about features that are not yet supported. I often get very good answers. Not everybody feels the same way that you do.

Shazz
06-06-2007, 01:08 AM
Not everybody feels the same way that you do.

Im sorry, Im not understanding that line, anyway seems like we are going off topic of this thread.

vitrag24
06-06-2007, 10:04 AM
but i havent allowed to post users without activation of their account.
:(

julia44
07-09-2007, 04:06 AM
Is this working on 3.6.7? Thanks!

Shazz
07-09-2007, 04:29 AM
Is this working on 3.6.7? Thanks!

Read a page back ;)

julia44
07-09-2007, 04:34 AM
Lol thanks I think going back to read.

julia44
07-09-2007, 06:35 AM
Well, I installed this but had to disable it. It caused a Parse Error. As soon as I disabled it the error went away. This is the error I did get when it was enabled.
Parse error: syntax error, unexpected T_STRING in /public_html/forum/register.php(1007) : eval()'d code on line 10

Dave Hawley
07-09-2007, 06:38 AM
I have been using it for nearly 1 month now on my vb 3.5.4 without any hic-ups. We get about 10-30 new members and hence Welcome Threads per day.

julia44
07-09-2007, 06:47 AM
I am using 3.6.7

Dave Hawley
07-09-2007, 07:28 AM
That is likely the cause,vB Version: 3.5.0

julia44
07-09-2007, 07:35 AM
Yes but if you see above I asked if it was working on 3.6.7. Anyhow, there are 3 different versions through out this thread. I finally got the last one on page 25 to work. So for anyone interested in using this on 3.6.7 it does work.

Tralala
07-09-2007, 11:51 PM
Yes but if you see above I asked if it was working on 3.6.7. Anyhow, there are 3 different versions through out this thread. I finally got the last one on page 25 to work. So for anyone interested in using this on 3.6.7 it does work.


Page 25? I only have 4 pages in this thread. (Posts per page is a customizable setting in User CP.)


So which POST is it? Thanks...

Bro_Joey_Gowdy
07-20-2007, 11:28 AM
3.6.7 in this post:
https://vborg.vbsupport.ru/showpost.php?p=942379&postcount=250

Andyucs
08-25-2007, 06:43 PM
is anyone going to take this over to 3.6.8

and make it easy to install

like make options in admin cp to alter template and user id of poster

bet it would get used more

marked install

thankyou

SBlueman
09-12-2007, 07:00 AM
This doesn't seem to work for 3.6.8.....

Andyucs
09-12-2007, 07:34 AM
Try this one it works in 3.6.8

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

tahanan
09-27-2007, 03:17 PM
HI, I just installed the original plug-in as product and worked fine.

I was able to edit both the plau-in and the template.

Now I would like to improve litlle things like:

1) how to make it choose a Smile for the post in the title?

2) I am using pure text in template but how to use the codes for bold and colored fonts?

If I enter like this:

Welcome $username to English Coffee ?!!!! Thanks for joining us!

I get error when saving:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/english/public_html/includes/adminfunctions_template.php(3596) : eval()'d code on line 1

Any solution for this?

Ohiosweetheart
10-28-2007, 02:03 PM
Try this one it works in 3.6.8

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

Not really. There's no welcome template to edit.

Chance4Today
11-01-2007, 04:05 PM
I would really like this hack but when I download it here it come as just a read file. Where do I add it in the admin cp? I am really new so be gentle with the explanation ;)

Traxdata
12-23-2007, 11:54 AM
works on vb3.7.b3 :)

Bro_Joey_Gowdy
01-07-2008, 08:49 AM
Any updates for 7.7.0. ??

optrex
03-13-2008, 11:00 AM
its not been supported since 3.5 but it works on 3.7.6 beta

powerful_rogue
04-17-2008, 10:37 AM
Hi,

For some reason when a new thread is created, thats user's post count dosent go up. Does anyone know of a way to fix this at all?

wickedstangs
05-09-2008, 05:53 PM
Very Nice Works on 3.7.0

denman75
05-13-2008, 05:42 PM
thank you very much
but it does nothing on my 3.6.9 installation :(

tobaro
05-13-2008, 09:22 PM
sorry, deinstalled.
No clue what to configure and/or set to make this mod working... Maybe you should post a step by step installation WHAT AND WHERE EXACTELY to change or configure as I (and for sure not me alone) do not understand how this shall work and where to set any settings for this mod.
Examples:
-> where to set in which forum the thread will be started?
-> where to set, WHO is going to start the thread (username settings...)
and so on and so on....
no, sorry, deinstalled after 3 minutes...

tobaro
05-14-2008, 08:18 AM
but it does nothing on my 3.6.9 installation
see my post before - thats the point ;)

sweptwingnut
05-16-2008, 11:45 AM
Well, this is going to be an embarrassingly simple question for you all. I have read through all the pages here but since I know so little of this stuff, I am left to ask,,,,, :o

Where do I access the place in this product to change our welcome message?

We are running 3.6.8 patch 2 and it is working perfectly for us. Just want to do some tweaking on the message. I don't see where I can make an edit in the admincp for VB. I have access to the ftp site for the file if it is there. But where would I go??

Thanks in advance for pointing me in the right direction.

habasabi
06-18-2008, 06:04 PM
sweptwingnut...

I don't know if you've figured out your question or not yet, but I wanted to let you know... In the Admin CP you go down to Plugins & Products, Then Plug in Manager. You click on the Welcome Thread Modification, and it will open up the page to edit all the text, etc...

Good luck!

sweptwingnut
06-18-2008, 08:33 PM
Thanks habasabi! Actually, I have figured it out but not where yours seems to be located. In your location on our setup is the php code request box.

Instead for us,,Styles and Templates / Style Manager / Edit Templates / Welcome Thread - Edit.

Took me a while to dig that deep. Thanks for the reply.

intricatic
06-19-2008, 04:14 AM
It's fun to work with in 3.7.1.

RedeemedWarrior
06-21-2008, 07:04 AM
ian! ^ *highfives*I'm installing too for CFF

slabuda
07-08-2008, 04:50 PM
Lets say i have a few custom profile fields in my Registration and I want to repeat some of fields in the welcome message.

For instance.

If my welcome letter stated..

Welcome Joe User,

Its great to see you are a fithful rider of SUZUKI motorcycles and this is perfect forum for you.

lalalalalalala

Lets assume that i added in my registration a custom field called Motorcycle Type and it was field13.

How would i integrate that into this welcome letter?

Thanks

GraNdMaStEr-B
07-15-2008, 10:18 PM
does anyone know when someone joins how to get the welcome thread into the section of the forum you want?

Mr. INTENSE
08-26-2008, 06:57 PM
Reading through this thread, there seems to be a ton of confusion over whether or not this mod works, and how to set it up. I installed this Mod and everything about it works perfectly in vBulletin version 3.6.8 Patch Level 2. Thanks to Amy for writing it, and those who helped get it fully debugged. :)

Here is what my Plugin PHP code currently looks like:

// Backend Files
require_once('./global.php');
require_once('./includes/class_dm.php');
require_once('./includes/class_dm_threadpost.php');

// Setup Variables
$forumid = 3; // The forum id that you want the thread posted in
$postuserid = 62; // The Userid of the poster
$postusername = SNutizzle; // The username of the poster
$title = "BadBeatsPoker.net welcomes $username!"; // The thread title

// Don't change below this line

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

$username = htmlspecialchars_uni($username);
$allowsmilie = '1';
$visible = '1';
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);
$tid = $threaddm->save();

// Update last post stuff on forumdisplay
require_once('./includes/functions_databuild.php');
build_forum_counters($forumid);

Here is what my welcome_thread template currently looks like:

Welcome to www.BadBeatsPoker.net, a new and fast growing online poker community. We proudly welcome anyone and everyone who wants to improve his or her game, loves poker talk and/or is willing to positively contribute to our discussions.

We?re still pretty small, but our community is growing rapidly. I?m sure you?ve already noticed that the forum is first class, so I?d like to take a minute and point out a few of our features that you may not yet be aware of?

We?re hosting weekly private online tournaments, and we?d love to have you join us. It won?t take long to see that we?re a very fun group:

http://www.badbeatspoker.net/forum/online-tournaments/1134-wednesday-evening-private-online-tournaments.html

We have our own Chat Room, which is very active in the evenings:

FlashChat v4.8.3 (http://www.badbeatspoker.net/forum/chat/flashchat.php)

We have our own area for personal/poker blogging:

Bad Beats Poker Forum - Poker Discussion - Hand Plays - Poker Strategy - Blogs (http://www.badbeatspoker.net/forum/blog.php)

We hold some very good hand play discussions:

Hand Plays - Bad Beats Poker Forum - Poker Discussion - Hand Plays - Poker Strategy (http://www.badbeatspoker.net/forum/hand-plays)

We?ve compiled lists of our members? biggest tournaments scores in the Bad Beats Live Hall of Fame:

http://www.badbeatspoker.net/forum/brick-mortar-tournaments/917-badbeatspoker-live-tournament-hall-fame.html

And our Bad Beats Online Hall of Fame:

http://www.badbeatspoker.net/forum/online-tournaments/983-badbeatspoker-online-tournament-hall-fame.html

Please be sure to tell all your poker friends about the website, and have them join if they're interested.

See you at the tables!

And here's what the automatically generated welcome thread looks like:

http://www.badbeatspoker.net/forum/new-member-introductions/1369-badbeatspoker-net-welcomes-9ftninja-new-post.html

Of course it wouldn't be right to post in this thread without asking for some help, so here goes. :p

I'd like to tweak this just a little bit to do two additional things:

First, I'd like to check to see if the New Member listed a referrer. And if so, I'd like the automatic welcome thread to be posted by the referrer instead of the specific moderator we have in place currently.

And second, if the New Member did not list a referrer, I'd like to have the new thread posted by a random selection within one of three user groups (Administrators, Super Moderators and Moderators).

I'm thinking both of these things can be done with a few lines of code, but I don't really know anything about coding.

Thanks again for the great Mod, and thanks in advance if anyone is able to help with the tweaks I'm looking to do. :)

Mr. INTENSE
08-26-2008, 06:58 PM
does anyone know when someone joins how to get the welcome thread into the section of the forum you want?
This is the very first setup variable:

// Setup Variables
$forumid = 3; // The forum id that you want the thread posted in


See post #409 above for an example.

Mr. INTENSE
08-28-2008, 04:55 PM
Anyone? :confused:

RvG2
08-29-2008, 02:28 AM
this mods works with 3.7.3

thanks :D

CtrlAltDel
09-12-2008, 05:24 PM
thanks for this amy

im going to utilize some of the code of this plugin for something i was working that involved automatically creating threads on demand

marked installed for ya

TitanJeff
10-10-2008, 06:57 PM
Very nice product.

Does anyone know if there is a way to set this to work only after a manual approval? Thanks.

Mr. INTENSE
10-24-2008, 07:30 PM
One other tidbit I learned today. If you set this add-on to have the welcome thread originated by a user with a space in his name this add-on will no longer function.

So for example:

$postusername = Galactus X; will NOT work,

$postusername = "Galactus X"; works fine.

Hope this is hepful to someone. :)

KatieG
01-06-2009, 09:47 AM
This is a welcome new user and post in thread by amykhar (https://vborg.vbsupport.ru/member.php?u=87)

I changed it so it work on 3.8

Change the The Red Parts to suit

// Setup Variables change to match your forum
$forumid = 30; // The forum id that you want the thread posted in
$postuserid = 1; // The Userid of the poster
$postusername = "Username"; // Enter the username of the poster
$title = "We Welcome $userinfo[username] "; // The thread title

Make Template called " welcome_thread "

Welcome $username



First, introduce yourself. We're a friendly bunch and we welcome newcomers to the Forum.
If you have a problem figuring out how to use a forum feature, check out the FAQ. Your question may already be answered.
If you still need help ask any member
We talk about pop culture, hobbies, raising kids, getting ahead at work, and just about anything else friends talk about around the water cooler.
So just enjoy your stay




Note: it is a plugin not product

Gleedo
01-21-2009, 10:45 AM
This is a welcome new user and post in thread by amykhar (https://vborg.vbsupport.ru/member.php?u=87)

I changed it so it work on 3.8

Change the The Red Parts to suit

// Setup Variables change to match your forum
$forumid = 30; // The forum id that you want the thread posted in
$postuserid = 1; // The Userid of the poster
$postusername = "Username"; // Enter the username of the poster
$title = "We Welcome $userinfo[username] "; // The thread title

Make Template called " welcome_thread "

Welcome $username



First, introduce yourself. We're a friendly bunch and we welcome newcomers to the Forum.
If you have a problem figuring out how to use a forum feature, check out the FAQ. Your question may already be answered.
If you still need help ask any member
We talk about pop culture, hobbies, raising kids, getting ahead at work, and just about anything else friends talk about around the water cooler.
So just enjoy your stay




Note: it is a plugin not product

Hi Katie - ive never installed a plugin before (only products...). Im looking at the 'add new plugin' form and its asking for a 'hook location'. Any idea what I should select? Or am i in completely the wrong place :confused:

Thanks in advance :)

raugusto
01-23-2009, 04:22 PM
You should go to upload/download plugins instead.

Gleedo
01-23-2009, 05:56 PM
You should go to upload/download plugins instead.

Thanks, now got it going :)

Vaupell
01-31-2009, 09:02 AM
ty

installed on a 3.8.1 board. lovely.

ATVTorture
02-13-2009, 12:24 AM
I'm trying to figure out which template or PHP page performs the query for "recent threads" and "new threads since your last visit". I would like to limit the query so it doesn't include posts from this particular forum in both of those areas.

I figured I would add something to the query like this so that the query doesn't look for new threads in the forum with an ID of 100:

and !forum_id='100'

Is this possible?

Thanks!

ATVTorture
02-17-2009, 05:11 PM
Anybody have an idea to my last reply?

Thanks!

Peaches
03-01-2009, 07:05 PM
Thanks amy! this works great and was just what I was looking for. My board is ver 3.8.0

mrtroybaker
03-24-2009, 06:50 PM
You should go to upload/download plugins instead.

I tried this and get this

This file appears to be a Plugin, not a Product. Please use the Plugin Manager to add this file.


Im using 3.8.1 anyone help me out?

mrtroybaker
03-24-2009, 06:58 PM
NEVERMIND!! I figured it out

The Executioner
03-26-2009, 09:12 PM
Where and how do I make a template called welcome_thread ??

wizardan
03-31-2009, 02:44 PM
Flawless install on a 3.8.1 board.

Bergler
04-26-2009, 05:58 PM
Does anyone know if this mod will work on 3.8.2 ??

ArnyVee
05-04-2009, 02:14 AM
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.

I used Katie's plugin from post #416, added the signature lines into it by adding the instructions a few pages back and everything seems to be working perfectly. Except for the fact that when the new thread was created, I saw the same "Begin Template" 'stuff' on the post. How do we adjust this to not show?

Edited: Scratch that, found the option under "General Settings" listed under "Add Template Name in HTML Comments".

ArnyVee
05-06-2009, 10:09 AM
Hmm....had worked with a testuser that I added through normal registration and worked. But, since then I've had a few new members and it hasn't worked. Strange.

Anyone have any tips to make sure that this works?

ArnyVee
05-09-2009, 04:01 PM
Okay, it's officially not working for some reason. :(

Are there any other options to having a thread start automatically upon a new member's registration or activation?

ArnyVee
05-25-2009, 12:20 AM
Am I doing something wrong here? I really want this to work for my forum and it isn't right now.

// Backend Files
require_once('./global.php');
require_once('./includes/class_dm.php');
require_once('./includes/class_dm_threadpost.php');

// Setup Variables change to match your forum
$forumid = 2; // The forum id that you want the thread posted in
$postuserid = 1; // The Userid of the poster
$postusername = "WDBArnyVee"; // Enter the username of the poster
$title = "Give A Warm TheWDB.com Welcome To $userinfo[username] "; // The thread title

// Don't change below this line

// 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', 1);
$tid = $threaddm->save();

// Update last post stuff on forumdisplay
require_once('./includes/functions_databuild.php');
build_forum_counters($forumid);

ArnyVee
05-25-2009, 05:52 PM
Okay, I removed the "sig" lines which originally were there to automatically have the signature showing. Now, it worked! :)

Bro_Joey_Gowdy
06-09-2009, 02:19 PM
Uninstalled and upgraded to the 3.8.x version with more features:

https://vborg.vbsupport.ru/showthread.php?p=1826395#post1826395

:cool: