vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Automatically Start a Welcome Thread in the Forum of Your Choice (https://vborg.vbsupport.ru/showthread.php?t=91887)

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

[high]* Shazz forgot to click install :)[/high]

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

Quote:

Originally Posted by dknelson (Post 1160920)
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

Quote:

Originally Posted by Renae (Post 1161637)
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

Quote:

Originally Posted by rjmjr69 (Post 1166283)
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/showthrea...e+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

Quote:

Originally Posted by dknelson (Post 1170466)
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

Quote:

Originally Posted by flypaper (Post 1170490)
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

Quote:

Originally Posted by Renae (Post 1170625)
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. :(

Quote:

// 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

Quote:

Originally Posted by dknelson (Post 1170466)
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

Quote:

Originally Posted by dknelson (Post 1170466)
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

Quote:

Originally Posted by dknelson (Post 1171216)
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:

PHP 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

Quote:

Originally Posted by flypaper (Post 1170783)
In that case, try editing the 'welcome_thread' template and use $post[field2] for location. I'd think that would work. Lemme know.

Quote:

Originally Posted by dknelson (Post 1178702)
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

Quote:

Originally Posted by dknelson (Post 1179084)
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

Quote:

Originally Posted by Mr. Christopher (Post 1179816)
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

Quote:

Originally Posted by flypaper (Post 1179888)
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?

Code:

$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:

Quote:

Originally Posted by dknelson (Post 1170466)
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

Quote:

Originally Posted by dknelson (Post 1171939)
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

Quote:

Originally Posted by dknelson (Post 1171216)
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

Quote:

Originally Posted by dknelson (Post 1160920)
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

Quote:

Originally Posted by rolliet (Post 968798)
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

Quote:

Originally Posted by lil7rocket (Post 1211928)
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

Quote:

Originally Posted by lil7rocket (Post 1211928)
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

Quote:

Originally Posted by lil7rocket (Post 1211928)
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.


All times are GMT. The time now is 12:41 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01701 seconds
  • Memory Usage 1,852KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (23)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete