The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
Small hack to automatically send PM to new users
after they have activated account. Requested by Xelation Tested on 2.2.5 UPDATED - v2.1 - 2002-05-02 Version 2.1 only fixes some problems with installation. Now it checks to see if the settings are already present in the DB, it has an option to remove the settings if you wish to uninstall and it has an option to remove any surplus settings you may have as a result of running the old install file. If you have version 2.0 up and running problem-free, there is absolutely no need to upgrade. You should uninstall version 1.0 before installing this one. This version facilitates vB's built in setting system, and no longer requires a writable file on the server. It also supports popup on PM. Follow the instructions in install.txt -- If you are running MySQL 3.22.xx, you might need to use this installfile instead. Show Your Support
|
Comments |
#32
|
||||
|
||||
I have been really swamped in work lately, so I haven't even gotten around to upgrading my own boards to 2.2.2 yet.
At the moment, I am not sure when I will get around to look at it. Sorry. Will do it as soon as I find the time, tho. |
#33
|
|||
|
|||
That's cool, I can wait (for a little )
|
#34
|
||||
|
||||
Awesome!
|
#35
|
|||
|
|||
Very nice Hack, I would love to use it, but I also have the Email verification turned off and don't know where to put the code in register.php
Please help |
#36
|
||||
|
||||
Quote:
I'd like to know aswell |
#37
|
|||
|
|||
same here. anyone?
|
#38
|
||||
|
||||
I hope Sparkz doesn't mind, but I updated this hack since I wanted to use it.
-works with 2.2.1 and 2.2.2 no problem -works whether or not you have email activation turned on -uses templates instead of text files https://vborg.vbsupport.ru/showthrea...threadid=35647 |
#39
|
|||
|
|||
There is a slight issue with this hack;
if a user who registers chooses not to receive stuff from admins, it still sends a PM to them upon activiation. I received a rather rude message from a user about this; is there any fix? |
#40
|
|||
|
|||
If a user is going to write rude messages to you about a welcome PM, then they are not worth having around any way. How lame.
Anyway, I don't think the option you are referring to will limit Private Messages in any way. *****2.2.3 Issue***** Anyone get this to work in 2.2.3 yet? It's giving me errors on line 593 in register.php. Here is the line that's giving it fits. There could be more but I have to fix this one first (Line is IN BOLD): // send default PM to new user $originating_user = 1; $PM_file = "admin/default_pm.txt"; $fp = fopen <http://www.php.net/fopen>($PM_file, 'r'); $PM_title = str_replace <http://www.php.net/str_replace> ('$username', $username, fgets <http://www.php.net/fgets>($fp, 4096)); $PM_content = str_replace <http://www.php.net/str_replace> ('$username',$username,fread <http://www.php.net/fread>($fp, filesize <http://www.php.net/filesize> ($PM_file))); $DB_site->query("INSERT INTO privatemessage (privatemessageid,userid,touserid,fromuserid,title ,message,dateline,messageread,folderid) VALUES (NULL,$u,$u,$originating_user,'".addslashes <http://www.php.net/addslashes>(htmlspecialchars <http://www.php.net/htmlspecialchars>($PM_title))."','".addslashes <http://www.php.net/addslashes>($PM_content)."',".time <http://www.php.net/time>().",0,0)"); // send default PM to new user |
#41
|
|||
|
|||
can it modified to send the PM to the normal user depend on his post NO.?
ex. if the user get 50 post >> he will get defult PM " thank you for your posts after another 20 post more your titel will be chang to Tyro Hacker and you will get star " thank you |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|