Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Welcome Thread Created on Members first post Details »»
Welcome Thread Created on Members first post
Version: 0.92, by sinaluna sinaluna is offline
Developer Last Online: Jul 2011 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 03-13-2006 Last Update: 03-18-2006 Installs: 27
Uses Plugins Template Edits
 
No support by the author.

Product Name:
Welcome Thread Created on Members first post

Product Description:
This Hack/Product creates a new "welcome post" when a member posts for the first time. You can choose to either create a new thread in a welcome forum or create the post in an existing thread. The user's original first post can also be modified, allowing you to link to their "welcome post".

I have only tested this package install on 3.5.4. Please post if you successfully (or unsuccessfully) install this under any other 3.5 versions.

This Hack was created as a generic way to post "welcome threads" for all types of registration situations: wide open, authentication, approval, etc. It also keeps the number of welcome threads down somewhat by never posting one for users that register and never post. Lurkers can still register and lurk.

This Hack was inspired by amykhar, PaulM, Andreas, and others and leans heavily on their previous work. This is my first attempt at a packaged, released hack so I hope they will help me out if I screwed anything up

Contents:
This package includes:
1 Plugin:
"Welcome Post and First post modify": Code to create the "welcome thread" and modify the user's original post via templates.

3 Templates:
welcome_thread: The text of the "welcome thread" created.
welcome_title: The title of the "welcome thread" created.
welcome_addon: The text to be added on to the members original first post.

3 Option/Setting:
welcomeforum: (group "Welcome New Users Options"): The forumid of the forum where the welcome threads will be created. A "0" passes control to the welcomethread option.

welcomethread: (group "Welcome New Users Options"): The threadid of the thread where the welcome posts will be created. This option is ignored if the welcomeforum option is set. Setting both welcomethread and welcomeforum options to "0" disables the creation of welcome posts entirely (though modification of the original post may still occur)

welcomeposter: (group "Welcome New Users Options"): The userid of the user that will post the welcome message. If this setting is "0", the welcome post will be poster as the new user.

Installation Instructions:
Step 1: Import the product .xml file (attached here)

Step 2: Change the "welcomeforum" option or the "welcomethread" option to the correct welcomeid or threadid where you wish the welcome messages to be created. "welcomeforum" takes precedence over "welcomethread". Set both to zero if you wish to disable the creation of welcome posts.
TIP: An easy way to get the forumid or threadid number is to put your cursor over the forum or thread you want to use and read the link information in the bar at the bottom of your browser. Look at the "t=xxx" for threads or "f=xxx" for forums.
Step 3: Set "welcomeposter" to the userid of the user you wish to post the welcome message. If this setting is set to "0", the welcome post will be posted as the new user. The default for this setting is "0".

Step 4: Modify the 3 templates to your taste. The sample templates show how to make both the welcome thread and the modified first post point back to each other.

Step 5: Enjoy.

Version History:
version 0.9 - Initial release
  • Initial public release
version 0.91
  • added welcomethread option and functionality
  • code cleanup and template cleanup
version 0.92
  • added welcomeposter option and functionality
  • code cleanup and template cleanup

Supporters / CoAuthors

Show Your Support

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

Comments
  #22  
Old 03-19-2006, 09:14 PM
sinaluna sinaluna is offline
 
Join Date: Feb 2005
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Question: if we don't want any "add on text" to the new user's first post, should we just delete the text in the "welcome_addon" template? It would be nice, I think, if this was another option that could be turned off in AdminCP.
You can leave the template, but just make it blank. I think Id rather not add another option for it when the blank addon does the same thing logically.

Quote:
Also, we should be editing the text in the templates of all of our styles? Why not make these as phrases instead?
You can just edit them in the default style if you want. The really dont work as phrases, considering all the things that you might want to put in a template. You can add graphics, links, and reference just about any variable in a template. Phrases are VERY limited. You have to define exactly what variables you can that are available before hand and they are hard coded in the plugin then. You would lose any flexibility.

You could create your own welcome phrases and include them in your welcome template if you were worried about language issues, but this is too limiting for this product.
Reply With Quote
  #23  
Old 03-19-2006, 09:17 PM
sinaluna sinaluna is offline
 
Join Date: Feb 2005
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

BTW, if you are testing templates you can change the line in the plugin:

PHP Code:
if (($vbulletin->userinfo['userid'] > 0) AND ($vbulletin->userinfo['posts'] == 0)) { 
to something like:
PHP Code:
if (($vbulletin->userinfo['userid'] > 0) AND ($vbulletin->userinfo['posts'] < 9999)) { 
This will temporarily make any post for a user under 9999 posts create a welcome post. This would not work well on an open, public forum. But in a test forum, or if you have closed the forum for maintanance, this lets you easily test the templates.
Reply With Quote
  #24  
Old 04-17-2006, 10:58 PM
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Posts: 1,207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This seems to be working okay, for the most part... but I am noticing one issue... it makes new posts in the pre-existing thread, yes... but it doesn't bump that thread and change it's date. So the new posts get lost in the shuffle. Ideally I'd like for these "welcome posts" to act just like any other, effectively being marked as new and bumping the thread.
Reply With Quote
  #25  
Old 04-17-2006, 11:03 PM
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Posts: 1,207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And one suggestion while I'm at it, it would be nice if we could incorporate the name of the new member's referrer, if they have one, into the Welcome post.

Something like "Thanks to Tralala, we have a new member aboard. Pamela's first post is here. Let's give our new member a hearty welcome!"

Might also be nice to include their avatar.

Would either of these be possible?
Reply With Quote
  #26  
Old 05-15-2006, 07:58 PM
sinaluna sinaluna is offline
 
Join Date: Feb 2005
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ill take a look this week and see how to get the referer info to the template.
Reply With Quote
  #27  
Old 05-18-2006, 01:34 PM
glowinggal glowinggal is offline
 
Join Date: Jan 2003
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great! I look forward to update of this before install!
Reply With Quote
  #28  
Old 05-18-2006, 07:48 PM
LBSources LBSources is offline
 
Join Date: Nov 2005
Location: New York
Posts: 329
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tralala great suggestions and same update/bump to the thread the intro posted in would be great ,...

eitherway .. staff member of ours stressed for this and im glad we installed it..

great!

Lenny
Reply With Quote
  #29  
Old 05-19-2006, 06:58 PM
wideopen wideopen is offline
 
Join Date: May 2005
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks this works great...
Reply With Quote
  #30  
Old 05-21-2006, 07:03 PM
JohnnyClark JohnnyClark is offline
 
Join Date: Dec 2005
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this doesnt work for me....nothing is created
Reply With Quote
  #31  
Old 05-22-2006, 08:17 AM
sinaluna sinaluna is offline
 
Join Date: Feb 2005
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry for the delay but had something come up and it ate up last week entirely. I will get to it this week (I hope)
Reply With Quote
Reply

Thread Tools

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 06:44 PM.


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.08917 seconds
  • Memory Usage 2,312KB
  • Queries Executed 26 (?)
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_php
  • (2)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
  • (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