![]() |
Send default PM to all new users - templated
Disclaimer:
-No support is offered for this hack. If you PM or email for support, it will be joyfully ignored. When I have time, I will answer questions in this thread. Default PM to New Users - Templated This is largely the work of Sparkz, in this thread: https://vborg.vbsupport.ru/showthrea...threadid=34498 I wanted to use this hack but felt it was a bit cumbersome since it used text files instead of the vB templates. This is a re-write and should be quicker and easier to install. It also sends the PM after writing the user, not after activiation-- so it won't matter if you have email activation turned on or not. Also there is optional code to make the pmpopup work if you like. Steps for installation: -add two templates 'newpm_message' and 'newpm_title' -edit one file 'register.php' |
<font size="1">Note: If you already have Sparkz version installed, you'll need to replace the code in register.php and add the new templates.</font>
|
Thanks!
|
Very nice work!
thanks! |
Cool! Thank you :) Looks like you are a good hacker, nice to have you onboard. Your style and mine are alike.
|
THANK YOU this is exactly what I was waiting on!!! I shall install asap
|
Ok i installed it, tested it, and it works great. Now, when someone registers on my site, they get a pm from "The Welcome Wagon" :)
|
thank you VERY much!
|
easy, simple, not hard, and did i mention EASY? Thanks! This is a great addition!
|
great hack.. veryyy nice.
|
ooh cool, it worked.
|
Neat hack, well done.
|
Overgrow, though I can't thank you enough for implementing the pmpopup function, it MUST happen after activation. When you register, there is a link to return to the Main BB view. This is the first thing newbs see, NOT the activation E-mail. When the newbs click this link, the pmpopup occurs, even if they are not activated. On my board, this pm hack is an incentive to actually read the PM box. What good is the popup if they can't actually get to the message? It's just confusing for them and I'd appreciate it if you could force the pmpopup after activation. That way they can actually click the link in the popup.
Thanks! |
OK, I figured out what was going on. In my board, Users Awaiting E-Mail Confirmation cannot use the PM system. So when they get the popup, things go wrong because they cannot read the PM until they are activated.
I'd really like to see an alternate version of this updated hack where the PM is sent after activation, just like the original hack. I'd use the old hack, but there is no pmpopup functionality. So either I use the old hack and get no pmpopup or I use the new hack and the PM is sent immediately instead of after activation. Hmmmm, what a pickel. |
Thank you very much for this great Hack.
Just a simple Thing: The Image for "new Posts" doesn't show up, the Message seems to be "old" - is there a way to fix this? |
aldamon
i use Firefly's "flash the pm bar on new message" hack that works wonders! |
I noticed that too. Without pmpopup on the message is not "new", it's old.
|
Very Nice hack
it works perfectly once again thank you :) |
easy to install, workin perfect!
Thank you very much!! i had 2 moderators do this manually every day - they are even more thankfull :) Tom |
not sure what the problem is but i am getting this as the PM title
<!-- BEGIN TEMPLATE: newpm_title --> Welcome to ********! <!-- END TEMPLATE: newpm_title --> instead of the "Welcome to ********!" the rest is working fine. any ideas? |
Has anyone come up with the code change for popup only after registered? If so where can I find it? thanks
|
Quote:
Does anyone know why? |
help me please.
I LOVE this hack and at the moment cannot use it :( |
please ;)
|
I am hoping if I keep bumping this someone might help lol
|
help :(
|
Quote:
:rolleyes: |
I forgot to say i turned of commenting in my admin panel and it sorted this out.
|
Quote:
My hack has been heavily updated since Overgrow decided to write this templated version of it. |
Would be great to know if there was a way to make this default message show as "new." Otherwise, this hack is great and easy to install! Thanks.
|
In the Insert query find:
.time(). and change it to .(time()+60). Should do it as it will make the message newer than their last activity. Have not tested this. As far as supporting the hacks.. Yes I am a selfish hacker. I hack for myself and my site. No bones about it.. I release some code here if i I think it will help people but I do not have time to make modifications that people request. Since I never use email activation, my hacks won't take this into account. Sorry! |
I respect you opinon and agree with you about email activation ... gives you a little more time to review the person's form request before letting them in....
|
Quote:
|
Although, now the 'New' flag doesn't seem to want to turn off. :(
I tried changing it to .(time()+1), but same issue. Oh well. |
OK gang, here is what you need to do to a) send the PM after the member activates their account and b) make sure the message is new.
In actuality, doing a seems to ensure b. So this is easy. INSTEAD OF doing this step in Overgrow's hack: find Code:
Code:
Find: Code:
} else { Code:
// send default PM to new user If you have done it correctly, the next line you see in the code is: Code:
eval("standarderror(\"".gettemplate("error_activatedthanks")."\");"); |
Note, you don't need to tinker with time or anything else. This PM will be new and it does popup the first time the member logs in after activation.
|
works great amykhar..thanks to you and Overgrow for this hack...a small change to your code however amy..
instead of Code:
$originating_user = 22; Also, if using amy's hack to the hack, you can ignore this in the original instructions: Code:
OPTIONAL: If you want the PM alert box to pop up, add this part as well: |
Thanks Overgrow, Amy, and Gruntie. Good teamwork!
|
I just installed this one instead on vB 2.3.0 with amykhar's awesome modification and it's so much better!
Thanks you guys! -Jason |
works great on my vB 2.3.0
[high]* cYbercOsmOnauT clicked on install :) [/high] Thanks mate! |
All times are GMT. The time now is 04:46 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|