Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
New User Welcome PM [v2] Details »»
New User Welcome PM [v2]
Version: 2.1.0, by rob_daemon rob_daemon is offline
Developer Last Online: Sep 2019 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 03-31-2004 Last Update: 12-05-2004 Installs: 200
DB Changes
 
No support by the author.

This hack will send any new users a welcome PM. This will work in vB3 Gold and probably RC versions as well. I will give support for this hack (if it's needed) in this thread.

If you upgraded your vB version and you are using a hack version prior to July 8, 2004:
If you have upgraded vB and your hack version is not July 8, 2004 or newer, run this query (there was a problem with the prior instructions):

Code:
INSERT INTO `setting` (`varname`, `grouptitle`, `value`, `defaultvalue`, `optioncode`, `displayorder`, `advanced`, `volatile`) VALUES ('regpmtext', 'register', 'Hi $username and welcome to $bbtitle!\r\n\r\nWe appreciate you taking the time to register on our site and we hope you enjoy your stay.\r\n\r\nIf you have any questions, you can ask an administrator for assistance.\r\n\r\nWe hope to see you around.\r\n\r\nSincerely,\r\nThe $bbtitle staff', 'Hi $username and welcome to $bbtitle!\r\n\r\nWe appreciate you taking the time to register on our site and we hope you enjoy your stay.\r\n\r\nIf you have any questions, you can ask an administrator for assistance.\r\n\r\nWe hope to see you around.\r\n\r\nSincerely,\r\nThe $bbtitle staff', 'textarea', 150, 0, 0);
This hack was last updated: Sun December 5, 2004 at 23:00 PDT
This update has a new on/off switch.

Update includes: vB 3.0.2/3.0.3 instructions

To install follow the instructions in the attached file.

Installation Information
Files to Edit: 1
Queries to Run: 11

Upgrade Instructions:

Open ./register.php and remove the hack (to find the old hack see below). And re-add the updated hack found in the Installation Instructions file.

To upgrade to the December 5th release, you'll need to run these three queries:

Code:
INSERT INTO `setting` (`varname`, `grouptitle`, `value`, `defaultvalue`, `optioncode`, `displayorder`, `advanced`, `volatile`) VALUES ('regpmon', 'register', '1', '1', 'yesno', 135, 0, 0);
INSERT INTO phrase (phraseid, languageid, varname, `text`, phrasetypeid) VALUES (NULL, '0', 'setting_regpmon_title', 'Automatically Send Welcome PM to New Users?', '5000');
INSERT INTO phrase (phraseid, languageid, varname, `text`, phrasetypeid) VALUES (NULL, '0',  'setting_regpmon_desc', 'Do you want to automatically send a welcome PM to new users?', '5000');
Uninstall Instructions:

Run the queries in this post, and then remove the hack in register.php (see below).

Look for:
PHP Code:
        // ###################################################################
        // # WELCOME PM HACK BY rob_daemon
        // ###################################################################

 // [. . .] There is code here, but I didn't want to take  up more room

        // ###################################################################
        // # END WELCOME PM HACK
        // ################################################################### 
To configure it after installation, go to: Admin CP --> Options --> vBulletin Options --> User Registration Options

Attached is a screen grab of the PM by default and text instructions. If the file appears corrupt, please see this post.

Show Your Support

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

Comments
  #202  
Old 07-26-2004, 12:57 PM
Datenpapst Datenpapst is offline
 
Join Date: Mar 2004
Location: Vienna
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rob_daemon
In the hack file, there's a line that says "Last Updated" and there's a date next to it. What is that date?
If I dont have 3.0.3 it also works or not?
Reply With Quote
  #203  
Old 07-27-2004, 06:24 AM
rob_daemon's Avatar
rob_daemon rob_daemon is offline
 
Join Date: Sep 2003
Posts: 197
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It should work on any version from 3.0.0 to 3.0.3.
Reply With Quote
  #204  
Old 07-27-2004, 07:41 AM
Datenpapst Datenpapst is offline
 
Join Date: Mar 2004
Location: Vienna
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rob_daemon
It should work on any version from 3.0.0 to 3.0.3.
Thats great Makes the board more personal
Reply With Quote
  #205  
Old 08-01-2004, 07:17 AM
nogerorob nogerorob is offline
 
Join Date: Jun 2004
Location: Portland, OR
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First:

This is a great Mod. I've installed this with no problems, and clicked install. Thank you.


Quote:
Originally Posted by contramontanum
Thanks Rob, that did the trick. Very useful hack indeed! Is there a way to format the text in the welcome mail to put in links (to other pages on the forum)? I noticed HTML doesn't work.
I'm trying to create a link in the private message that takes the user to our Introductions and Greetings area. I had a shot at doing this in register.php as follows:
PHP Code:
        $username $_POST['username'];
        
$intro_forum '<a href="http://www.weeklydavespeak.com/forums/forumdisplay.php?f=13">Greetings and Introductions</a>';
        
// Process each one of the replacement vars
        
$vars = array(
            
'$bbtitle' => $vboptions['bbtitle'], 
            
'$username' => $username
            
'$email' => $email
            
'$userid' => $userid,
            
'$intro_forum' =>  $intro_forum
        
); 
But it ends up displaying the html code in the private message, rather than interpret it as a URL. Any ideas on how to create a link in the private message?
Reply With Quote
  #206  
Old 08-01-2004, 07:28 AM
nogerorob nogerorob is offline
 
Join Date: Jun 2004
Location: Portland, OR
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

aha!

I just figured out the answer to my question. No further modification of register.php is needed.

Simply use the vBcodes to create the link in adminCP -> vb options -> user registration -> welcome pm text . In my case:


Please take a moment to introduce yourself on the Greetings and Introductions Forum

rob
Reply With Quote
  #207  
Old 08-02-2004, 12:15 AM
NietzscheKid NietzscheKid is offline
 
Join Date: Jun 2002
Location: Hamburg, Germany
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi.

This is really a beautiful hack. But I cannot get it to work. I have tried several times. Deleted the mysql queries, re-installed them and this process I have repeated over and over.

The thing is that the welcome message appears in my admin cp. But, when I test it and register a test account, I get an error message (after hitting the complete registration button). I get a database error message. Please hit refresh etc.

Then it tells me that I am already registered when hitting refresh.

There is no automatic welcome message sent either.

And there is something very strange happening.

When I upload the new register.php file (with your code it is around 45 KB). The original register.php is around 38 KB). However, when I upload and replace the old php file with the new one, I get a 41 KB page on my ftp. So, it seems like for whatever reason, regardless of how many times I try to upload it, the register.php file reduces the 45 KB to 41 automatically.

Any help would be greatly appeciated. I really love this hack and would like to use it.

Thanks
Reply With Quote
  #208  
Old 08-02-2004, 01:22 AM
NietzscheKid NietzscheKid is offline
 
Join Date: Jun 2002
Location: Hamburg, Germany
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NietzscheKid
Hi.

This is really a beautiful hack. But I cannot get it to work. I have tried several times. Deleted the mysql queries, re-installed them and this process I have repeated over and over.

The thing is that the welcome message appears in my admin cp. But, when I test it and register a test account, I get an error message (after hitting the complete registration button). I get a database error message. Please hit refresh etc.

Then it tells me that I am already registered when hitting refresh.

There is no automatic welcome message sent either.

And there is something very strange happening.

When I upload the new register.php file (with your code it is around 45 KB). The original register.php is around 38 KB). However, when I upload and replace the old php file with the new one, I get a 41 KB page on my ftp. So, it seems like for whatever reason, regardless of how many times I try to upload it, the register.php file reduces the 45 KB to 41 automatically.

Any help would be greatly appeciated. I really love this hack and would like to use it.

Thanks
Actually, you've already answered my question a few pages back. I should read a whole thread before asking questions.

Thanks again.

"clicks install"
Reply With Quote
  #209  
Old 08-02-2004, 04:39 AM
rob_daemon's Avatar
rob_daemon rob_daemon is offline
 
Join Date: Sep 2003
Posts: 197
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
aha!

I just figured out the answer to my question. No further modification of register.php is needed.

Simply use the vBcodes to create the link in adminCP -> vb options -> user registration -> welcome pm text .
Glad you were able to solve your issue

Quote:
Originally Posted by NietzscheKid
Actually, you've already answered my question a few pages back. I should read a whole thread before asking questions.

Thanks again.

"clicks install"
Haha... glad you got it fixed yourself
Reply With Quote
  #210  
Old 08-02-2004, 07:16 AM
nogerorob nogerorob is offline
 
Join Date: Jun 2004
Location: Portland, OR
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rob_daemon
Glad you were able to solve your issue



Haha... glad you got it fixed yourself
Looks like this hack's on autopilot now.

I installed this hack thanks to the scubaboard's admin article here.

Nice work on this hack, I'm watching to see how it affects threads and posts.

Thanks again.

rob
Reply With Quote
  #211  
Old 08-07-2004, 03:53 AM
fiber1's Avatar
fiber1 fiber1 is offline
 
Join Date: Jun 2004
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Rob,

The text file you have is stretches horizontal in a few lines and very hard to follow.
Would it be to much to ask to align it left with the proper page breaks so it is easier to folllow?

Fiber
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:00 AM.


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.05625 seconds
  • Memory Usage 2,336KB
  • 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
  • (2)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