vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Send default PM to all new users (https://vborg.vbsupport.ru/showthread.php?t=34498)

FWC 01-26-2002 04:23 AM

Quote:

Originally posted by FireFly
Nice hack, just installed this here (another good way to tell people to enter their license). :)
LOL!!!!! :D

Admin 01-26-2002 04:40 AM

Ok works a treat, I did make one change though, to use the username of the user in the message:
Code:

                        $PM_content = str_replace('$username',$username,fread($fp, 50000));

Lesane 01-26-2002 10:34 AM

Great feature, gonna install this hack later. Thnx

Sparkz 01-26-2002 11:38 AM

Quote:

Originally posted by FireFly
Ok works a treat, I did make one change though, to use the username of the user in the message:
Code:

                        $PM_content = str_replace('$username',$username,fread($fp, 50000));

Thx for the idea - I uploaded an updated zip with this feature for both the title and the content.

I also changed
PHP Code:

fread($fp50000

to
PHP Code:

fread($fpfilesize ($PM_file)) 

(where the variable $PM_file contains the filename, of course)

Just in case someone wants an incredibly long default PM

Admin 01-26-2002 11:48 AM

Why not store it in the database, as a setting?

Sparkz 01-26-2002 12:02 PM

Quote:

Originally posted by FireFly
Why not store it in the database, as a setting?
Mainly because I haven't touched that part of the system before.
This was kind of a quick&dirty done in the wee hours.

But I guess by saying that you just gave me a reason to play some more with the DB :)

aldamon 01-30-2002 02:14 PM

Hey,

How do I change who the PM comes from? I have two identities, my Administrator ID and my anonymous "Moderator" ID. I'd like the welcome PM to come from moderator and it's coming from my Administrator ID.

Thanks!

Admin 01-30-2002 02:47 PM

Quote:

Originally posted by Sparkz
All messages will originate from userid 1 - this can be changed by assigning $originating_user another userid in register.php

aldamon 01-31-2002 11:01 AM

LOL.

OK, here's another one. I have "pmpopup" and PM e-mail notification set to YES to during registration. However, I have created a new ID to test the system, and when I clicked the activation link there was no popup or E-mail notification of the new PM when I returned to the main menu.

What could cause that? It's almost like vB is not recognizing the automated PM as a "new" message.

This concerns me because my users are very computer illiterate and I want them to have a reason to go into the user cp. If there is no popup, then most people won't even notice the first new message. Heck, most of my users don't even know PMs exist, so the popup, or at the very least E-mail notification, on the first message would be really sweet.

Thanks!

Sparkz 01-31-2002 12:45 PM

I'd have to look in to this when I get back home from this business trip.

I'll change it so it uses the settings table as well, in stead of storing the default message in a file.
Have had a lot to do at work lately, so I haven't had time to implement this yet...


All times are GMT. The time now is 04:15 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.01165 seconds
  • Memory Usage 1,739KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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