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

Reply
 
Thread Tools
Details »»

Version: 1.00, by Sparkz Sparkz is offline
Developer Last Online: Oct 2013 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 01-25-2002 Last Update: Never Installs: 239
 
No support by the author.

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

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

Comments
  #32  
Old 02-20-2002, 10:30 AM
Sparkz's Avatar
Sparkz Sparkz is offline
 
Join Date: Nov 2001
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #33  
Old 02-20-2002, 04:44 PM
SaintDog SaintDog is offline
 
Join Date: Nov 2001
Location: Tennessee
Posts: 1,975
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's cool, I can wait (for a little )
Reply With Quote
  #34  
Old 02-28-2002, 02:58 AM
mav's Avatar
mav mav is offline
 
Join Date: Feb 2002
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome!
Reply With Quote
  #35  
Old 02-28-2002, 08:35 PM
Supernature Supernature is offline
 
Join Date: Dec 2001
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #36  
Old 03-02-2002, 12:00 PM
ForKmaN's Avatar
ForKmaN ForKmaN is offline
 
Join Date: Jan 2002
Location: Australia
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Supernature
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
*bump*

I'd like to know aswell
Reply With Quote
  #37  
Old 03-03-2002, 03:03 AM
neal neal is offline
 
Join Date: Feb 2002
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

same here. anyone?
Reply With Quote
  #38  
Old 03-03-2002, 06:57 AM
Overgrow's Avatar
Overgrow Overgrow is offline
 
Join Date: Nov 2001
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #39  
Old 03-07-2002, 01:18 PM
camoboy camoboy is offline
 
Join Date: Feb 2002
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #40  
Old 03-07-2002, 01:31 PM
aldamon aldamon is offline
 
Join Date: Oct 2001
Location: Durham, NC
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #41  
Old 03-12-2002, 08:40 AM
mas404 mas404 is offline
 
Join Date: Nov 2001
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
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 10:59 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.04702 seconds
  • Memory Usage 2,308KB
  • 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
  • (1)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
  • (1)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