Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Automatically Start a Welcome Thread in the Forum of Your Choice Details »»
Automatically Start a Welcome Thread in the Forum of Your Choice
Version: 1.5, by amykhar amykhar is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 07-08-2005 Last Update: 10-16-2005 Installs: 272
Uses Plugins Template Edits
 
No support by the author.

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

Show Your Support

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

Comments
  #202  
Old 02-18-2006, 08:37 PM
fly fly is offline
 
Join Date: Oct 2003
Posts: 1,215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Tralala
I did, and it posted to a thread just fine. Thanks for that customization.

My variables are set thusly:

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

PHP Code:
$postuserid $vbulletin->userinfo['userid']; 
to
PHP Code:
$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:
PHP Code:
// 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...
Reply With Quote
  #203  
Old 02-18-2006, 08:52 PM
fly fly is offline
 
Join Date: Oct 2003
Posts: 1,215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Tralala
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.)
Reply With Quote
  #204  
Old 02-18-2006, 09:17 PM
southernlady's Avatar
southernlady southernlady is offline
 
Join Date: May 2005
Posts: 213
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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:
Code:
<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
Reply With Quote
  #205  
Old 02-19-2006, 12:48 AM
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Posts: 1,207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by flypaper
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.)
Reply With Quote
  #206  
Old 02-19-2006, 01:02 AM
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Posts: 1,207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by flypaper
If you want to post it as a specific user in your forum, change

PHP Code:
$postuserid $vbulletin->userinfo['userid']; 
to
PHP Code:
$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:
Reply With Quote
  #207  
Old 02-21-2006, 11:08 AM
Rickie3's Avatar
Rickie3 Rickie3 is offline
 
Join Date: Nov 2004
Location: Australia/Tasmania
Posts: 770
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GearTripper
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?
Reply With Quote
  #208  
Old 02-21-2006, 11:19 AM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #209  
Old 02-21-2006, 11:28 AM
Rickie3's Avatar
Rickie3 Rickie3 is offline
 
Join Date: Nov 2004
Location: Australia/Tasmania
Posts: 770
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #210  
Old 02-21-2006, 11:55 AM
fly fly is offline
 
Join Date: Oct 2003
Posts: 1,215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Rickie3
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.
Reply With Quote
  #211  
Old 02-21-2006, 12:46 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

He shouldn't have to. He should be able to set that with the datamanager.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:58 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05341 seconds
  • Memory Usage 2,325KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (5)bbcode_php
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete