The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
New User Welcome PM [v2] Details »» | |||||||||||||||||||||||||
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 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'); Run the queries in this post, and then remove the hack in register.php (see below). Look for: PHP Code:
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
|
Comments |
#122
|
||||
|
||||
If the queries mess up, they can not be undone in the sense of "Control + Z" but there are queries that you can run to undo their action.
And run it via the manual query; copy and paste each line (full line, not word-wrapped ones) into the box and run the query. |
#123
|
|||
|
|||
nice hack, thanks!
|
#124
|
|||
|
|||
Not working for me. I installed it and the actual file hack is the problem. I did do the edit user registration options in the admincp and saved it but still have an sql error. When i remove the edit from register.php everything works fine (no pm of coarse, but also no errors). Any idea?
|
#125
|
||||
|
||||
What's the error?
|
#126
|
|||
|
|||
Doesnt give an exact error, just says sql error.
|
#127
|
||||
|
||||
Then view the source and you should see the SQL error. Paste that here.
|
#128
|
|||
|
|||
wow never knew that before...
HTML Code:
<!--
Database error in vBulletin 3.0.0:
Invalid SQL: INSERT INTO pmtext
(
fromuserid,
fromusername,
title,
message,
touserarray,
iconid,
dateline,
showsignature,
allowsmilie
)
VALUES
(
,
'',
'Welcome to ThunderBirdNest.com Forums!',
'Hi test1 and welcome to ThunderBirdNest.com Forums!
We appreciate you taking the time to register on our site and we hope you enjoy your stay.
TBN features some great options for you as a member!
1) A fully functional gallery that allows your to store your images online with us, and share them with the rest of the world without paying for webspace! You are given 512kb of webspace for free to host your images!! However you can upgrade this amount to 10gigs for a very small fee. See below for details.
2) Huge Discounts from our Supporting Sponsors. You can literally save hundreds on top items for your Thunderbird. For example, get a borla exhaust complete setup for ONLY $635! That alone is a savings of over $100 off retail pricing. For information on how to subscribe to our discount forums... please see details below.
3) An online chatroom. Not only can your talk on our forums, but we offer live chat with any members you wish to talk to. Just visit our free chatroom!
4) An events gallery! We keep all our images from all our events. TBN hosts some of the largest club events in the country! Check out our events gallery to experience what its like to have 50-60 Thunderbirds all together!
5) Get your own Email address! For information on how to order your own email address, see details below!
6) So much more! What are you waiting for? Check out our account upgrade options and then head over to the New Members area and tell us about yourself!!
For information on how to order any of our upgrade options, please visit the following link!
[url]http://www.thunderbirdnest.com/forums/subscriptions.php[/url]
If you have any questions, you can ask an administrator for assistance.
We hope to see you around.
Sincerely,
The ThunderBirdNest.com Forums staff
Note: Please do not respond to this message. Thank you.',
'a:1:{i:1867;s:5:\"test1\";}',
0,
1084501190,
1,
1
)
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 '
'',
'Welcome to ThunderBirdNest.com Forums!',
'Hi
mysql error number: 1064
Date: Thursday 13th of May 2004 09:19:50 PM
Script: [url]http://www.thunderbirdnest.com/forums/register.php[/url]
Referer: [url]http://www.thunderbirdnest.com/forums/register.php[/url]
Username: test1
IP Address: 24.155.68.136
-->
|
#129
|
|||
|
|||
could it be that extra comma that is in the text?? right below VALUES??
Im not sure where that is coming from however because it is not in our sourcecode like this. |
#130
|
|||
|
|||
found the problem! My stupid fault... i had the wrong userid in the spot for the person in the from section of the pm. Thanks for your help.
|
#131
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|