vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   private message to new members (https://vborg.vbsupport.ru/showthread.php?t=33502)

fonzerelli_79 12-25-2001 10:18 PM

im sure that this has been requested before but i did a search and couldnt find anything

simply :

a prviate message to all new members welcoming them to the forum

cheers

Psychdrone 12-26-2001 03:00 AM

YES YES YES THIS WOULD BE GOOD!

amykhar 12-26-2001 11:08 AM

It's easy. :)

I will only show you the way to do it if you require email validation.

In register.php find: (might not be exact. I have hacks. Look for the general idea of it. :D)

PHP Code:


            
// put user in moderated group
            
$DB_site->query("UPDATE user SET usergroupid=4 WHERE userid='$u'");

            eval(
"standarderror(\"".gettemplate("error_moderateuser")."\");");
        } else {
            
// activate account 

Add after:

PHP Code:

$subject="Insert Subject Here";
                        
$msg ="$userinfo[username],\n\t I just wanted to take a moment to welcome you to our board.  (Replace with your message)";
                        
$DB_site->query("update user set pmpopup='1' where userid='$u'"); // Makes ALL PMs popup for the user
                        
$DB_site->query("INSERT INTO privatemessage (userid,touserid,fromuserid,title,message,dateline,showsignature,iconid,messageread,folderid) VALUES ($u,$u,(Insert UserID of sender here.  Not Name!  Number),'".addslashes(htmlspecialchars($subject))."','".addslashes($msg)."',".time().",'1','0',0,0)"); 


NOTE: There are three places that you need to modify for your own board. Subject, message, and user id of the sender. Do NOT use the user name. Use the member number!

Amy

Lionel 12-26-2001 11:22 AM

But you forgot to say which php to modify?

amykhar 12-26-2001 12:26 PM

OOPS. register.php

Amy

Lionel 12-26-2001 12:29 PM

I had figure it out. Now I am just going to test it. Thanks

Lionel 12-30-2001 06:33 AM

thanks again.

fonzerelli_79 12-30-2001 01:11 PM

i actually installed this last week and it workd great

sorry amykhar , forgot to say thanks so THANKS!!

machiavelli33 03-07-2002 12:11 AM

Quote:

NOTE: There are three places that you need to modify for your own board. Subject, message, and user id of the sender. Do NOT use the user name. Use the member number!

Sorry just starting out. What do you mean by modifying the following?

Roody 06-24-2002 11:28 PM

I installed this hack, but cant find where i can make my default PM message in the Admin CP. Can someone point me in the right direction?

Thanks


All times are GMT. The time now is 01:37 AM.

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.01063 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete