Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
New Thread on Registration Details »»
New Thread on Registration
Version: 1.00, by tnguy3n tnguy3n is offline
Developer Last Online: Sep 2010 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.0.3 Rating:
Released: 12-18-2004 Last Update: Never Installs: 55
 
No support by the author.

Modded by tnguy3n
Requested here
Live demo: http://www.all4actions.net (also screenshots attached)

Description: This hack automatically creates a "Welcome Thread" in an assigned forum when an user register a new account on your board.
Log into Admin CP, go to vBulletin Options -> User Registration Options, then to change your settings
Administrator of the board can:
- turn on or off this mod in the Admin CP.
- turn on or off an option which allow user to create an introduction thread on registration
- create/modify title + welcome message content easily
- assign a specific forum where Welcome Thread to be created in.
- etc

Version 1
New Queries: 6 (added to vb setting table)
File Mod: 1
Template mod: none
Installation time: 30-45 seconds
This version is to automatically create welcome thread on new registration.

Version 2
Queries: 7 add to setting table
Phrase: 2
File mod: 1
Template mod: 1
New template: 1
Installation time: 2-3 mins
version 2 is either to automatically create welcome message or let users creating their own introduction thread on registration.

Installer included.

Changees In version 2
- 1 query added to setting table
- 2 phrases added
- 1 new template
- 1 template mod (register)
- 1 extra code mod in register.php file.

Note: if you run WelcomeThread Installer. You must log into Admin CP, go to vBulletin Options -> User Registration Options and change those Welcome Thread settings to yours, then Save.

More instruction + trouble shooting, read this thread http://www.all4a-designs.com/forums/...21.msg22#msg22

Show Your Support

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

Comments
  #32  
Old 12-21-2004, 05:21 PM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No not upgraded but new install using version 2.

Quote:
Originally Posted by tnguy3n
I'm confused. you upgraded from version 1 or that was fresh installation of version 2?

If you upgrade to version 2, log into your admincp and create a new phrase as following:

Phrase Type: Register
Varname: welcome_message_default
Text: Hello, I'm new here, hope to be y'all's friend!

I made little mistake on dat in the upgrade instruction (which is already fixed now).
Reply With Quote
  #33  
Old 12-21-2004, 05:21 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

and after registering user gets this when trying to go back on forumhome

Invalid SQL: SELECT userid FROM usersonline WHERE userid=
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

mysql error number: 1064
Reply With Quote
  #34  
Old 12-21-2004, 05:30 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

everything is fine when I go back to my old register.php with previous version. I am using 3.01
Reply With Quote
  #35  
Old 12-21-2004, 05:48 PM
tnguy3n's Avatar
tnguy3n tnguy3n is offline
 
Join Date: May 2003
Location: U of I, Iowa
Posts: 846
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@Lionel: update function only inserts 2 new phrases + 1 new setting, it doesn't tough user table.

I tested it on 3.0.3 . I'll get back to ya after I fully test this version 2 on earlier version of vb3 (luckily, i still have 3.0.1 on my laptop).
Reply With Quote
  #36  
Old 12-21-2004, 06:54 PM
Socomjunky.com Socomjunky.com is offline
 
Join Date: Aug 2004
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

okay i fixed it. Thanks awesome hack and i just clicked install
Reply With Quote
  #37  
Old 12-21-2004, 07:39 PM
tnguy3n's Avatar
tnguy3n tnguy3n is offline
 
Join Date: May 2003
Location: U of I, Iowa
Posts: 846
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lionel
everything is fine when I go back to my old register.php with previous version. I am using 3.01
I got vb 3.0.0 + 3.0.3 on my localhost, they all seemed to work fine, both fresh installation and upgrade. Try to upgrade again (don't forget to run welcomethread_installer.php , then upgrade option) and follow instructions closely.
If you still have problem with it, drop me a PM and i'll help you out when i'm available.
Reply With Quote
  #38  
Old 12-22-2004, 12:03 AM
msimonds msimonds is offline
 
Join Date: Aug 2003
Location: Dallas, Texas
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oustanding and easy hack to install!

I would like to make it a manditory option and if they dont fill out the form, dont make a post!
Reply With Quote
  #39  
Old 12-22-2004, 01:38 PM
joeychgo's Avatar
joeychgo joeychgo is offline
 
Join Date: Mar 2004
Location: Chicago, IL
Posts: 933
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I like the idea of this hack alot - is there a way to make it so it also displays the results of selected provile fields such as 'Location' ?
Reply With Quote
  #40  
Old 12-22-2004, 02:00 PM
TTG's Avatar
TTG TTG is offline
 
Join Date: May 2004
Location: Sth London
Posts: 1,042
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Had 1st new member since installing this hack .. new member didn't fill in any 1st post so the default message was posted in the correct forum .. when he went to reply to the post :-

Database error in vBulletin 3.0.3:

Invalid SQL:
SELECT
userfield.*, usertextfield.*, user.*, UNIX_TIMESTAMP

mysql error number: 1054

-------------------------------------------------------------------------

Removed hack and all now works well !?

Re-installed and all works well now .. must have made an error on installation
Reply With Quote
  #41  
Old 12-22-2004, 08:59 PM
Socomjunky.com Socomjunky.com is offline
 
Join Date: Aug 2004
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

okay i have the hack installed but its producing blank topics was it because they didnt fill out anything?
Reply With Quote
  #42  
Old 12-22-2004, 09:08 PM
tnguy3n's Avatar
tnguy3n tnguy3n is offline
 
Join Date: May 2003
Location: U of I, Iowa
Posts: 846
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@TTG: I can't really find explanation why it causes those database error, maybe difference syntax used in mysql versions (i got mysql 4.x btw)... cuz like i said, this mod only add few queries to setting dbtable.

I got this mod tested on 3 vb boards, they all work fine without an error. i don't know if you guys follow the right instructions. :|

Quote:
Originally Posted by joeychgo
I like the idea of this hack alot - is there a way to make it so it also displays the results of selected provile fields such as 'Location' ?
This is public release, i try to make it as general as possible so that everyone can use it. If you need a custom mod, visit my dev board at http://www.all4a-designs.com/forums or drop an PM with your mod description, I'll help ya out on my sparetime.
Reply With Quote
  #43  
Old 12-23-2004, 12:14 AM
tnguy3n's Avatar
tnguy3n tnguy3n is offline
 
Join Date: May 2003
Location: U of I, Iowa
Posts: 846
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Socomjunky.com
okay i have the hack installed but its producing blank topics was it because they didnt fill out anything?
well, i think i found the bug you've mentioned on.

open register.php,
FIND:
Code:
{ $_POST['welcomethread_title'] = "$vbphrase[welcomethread_title_default]"; } // too lazy to check for empty title
REPLACE IT WITH:
Code:
{ $_POST['welcomethread_title'] = "Hi, I am new!"; } // too lazy to check for empty title
FIND:
Code:
{ $_POST['welcomethread_message'] = "$vbphrase[welcomethread_message_default]"; } // ehhh, use default if empty
REPLACE WITH:
Code:
{ $_POST['welcomethread_message'] = "Hello everyone, I am new here. Just thought to drop a line to say hi."; } // ehhh, use default if empty
Those will be default messages if user left title or message field blank. you can change it if you like.

I think i'll make those field as required ones after all. :squareeyed:
Reply With Quote
  #44  
Old 12-23-2004, 11:11 AM
tteal tteal is offline
 
Join Date: May 2004
Location: Pasadena, Maryland
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll have to install this soon.....
Reply With Quote
  #45  
Old 12-23-2004, 11:58 AM
Takamine334 Takamine334 is offline
 
Join Date: Aug 2004
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lionel
Your instructions are wrong. Install is less than one minute, not 5-6 :-)
Yeah, what gives? The instructions were all wrong. Took 2 mins (I'm not as fast as Lionel)
Reply With Quote
  #46  
Old 12-24-2004, 02:34 PM
ChrisBaktis ChrisBaktis is offline
 
Join Date: Mar 2004
Location: CT
Posts: 409
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to prevent a new post if a user chooses not to do one? We award certain contest points to new users when they do an intro post - so if they choose not to do one we do not one posted.
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 01:21 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.05463 seconds
  • Memory Usage 2,366KB
  • Queries Executed 30 (?)
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
  • (4)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (16)post_thanks_box
  • (16)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (16)post_thanks_postbit_info
  • (15)postbit
  • (16)postbit_onlinestatus
  • (16)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