Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Welcome message

(Page 1 of 2)
> >
Quote Reply
Welcome message
Is there a way to send a welcome message to new subscribers automatically or do you need to do this by hand.

Wayne
Quote Reply
Re: [balita] Welcome message In reply to
You can do it in the email templates that are sent out upon validation/registration

goto TEMPLATES select EMAIL TEMPLATES then select the ADMIN_VALIDATION.EML and add your desired message. This is the email sent out after user's email validation is complete and you have validated the account.

ptegler
Quote Reply
Re: [balita] Welcome message In reply to
Hi,

It will be great if we could do it throw private messages. We could set a welcome private message for all new members (like Hotmail does when we open a new account). This could help to show to new members how private messages work.

Hope this will be on the list of features to add! Smile

François

Last edited by:

Franco: Apr 23, 2002, 7:42 AM
Quote Reply
Re: [Franco] Welcome message In reply to
Thats quite simple to do, you could do it with a plugin I think.

Just find the right hook and then get the plugin to insert a private message for the new user.
Quote Reply
Re: [Franco] Welcome message In reply to
I should have a plugin for this in about an hour.
Quote Reply
Re: [Paul] Welcome message In reply to
Really!? Thank you!! Smile I'll be waiting for.
Quote Reply
Re: [Franco] Welcome message In reply to
Yes really...thats if I can get rid of this strange 500 error Im getting running a post hook..grrr
Quote Reply
Re: [ptegler] Welcome message In reply to
Very helpful - many thanks it is appreciated

Wayne
Quote Reply
Re: [Franco] Welcome message In reply to
As promised....

After installing the plugin, in the plugin manager click "Edit"

If anyone looks at the code...yes I know I should have used a POST hook but there's a reason why I didn't :)

Edit: Attachment removed.

Last edited by:

Paul: Apr 23, 2002, 10:54 AM
Quote Reply
Re: [Paul] Welcome message In reply to
Thank you very much, Paul!! Smile

I think that the message body should be in a textarea, instead of in a simple text line. Wink

Little bug: In the private messages list of the new user, the welcome message appears to come from the new user (?), instead of the sender set in the plugin. It's like if the new user sent this welcome message to himself.

Thank you.

François

Last edited by:

Franco: Apr 23, 2002, 11:12 AM
Quote Reply
Re: [Franco] Welcome message In reply to
Argh you beat me to it. I re-uploaded the plugin a minute or so after uploading it the first time when I spotted it wasn't a textarea.

Anyway it wouldn't have mattered as there was that other bug too. Attached is the fixed version.
Quote Reply
Re: [Paul] Welcome message In reply to
Now it's working perfectly! Thank you very much!!

François Smile
Quote Reply
Re: [Franco] Welcome message In reply to
The Plugin works not with the Gossamer Community Frown
linktobuy Web Directory
Ratgeber Recht
Quote Reply
Re: [Paul] Welcome message In reply to
This doesn't seem to work with 1.2.3. Has anyone updated this plugin? I would love to have this functionality on my site.

Sean
Quote Reply
Re: [SeanP] Welcome message In reply to
Hi,

What kind of problem do you have? I use the version 1.2.3 and I don't have any problem with the plugin.

Franco
Quote Reply
Re: [Franco] Welcome message In reply to
It just doesn't send the PM when a new user signs up. I installed the plugin, customized the message it is supposed to send, created a new user, and logged in as it. No new messages are waiting... Am I missing something?

Sean
Quote Reply
Re: [SeanP] Welcome message In reply to
Are you using GCommunity?

This plugin doesn't work with community installed!

But on clear Gforum install it works well!

Cheers,
Boris

Facebook, Twitter and Google+ Auth for GLinks and GCommunity | reCAPTCHA for GLinks | Free GLinks Plugins

Last edited by:

eupos: Dec 9, 2005, 12:18 AM
Quote Reply
Re: [eupos] Welcome message In reply to
Hi,

Quote:
Are you using GCommunity?

This plugin doesn't work with community installed!

But on clear Gforum install it works well!

Yeah, that's because of the "signup hook" not being used in GComm, as the user is added directly to the gforum_User table. One possible solution, is to write a similar plugin, but for GComm, so that when someone signs up, they get the welcome message (as if it had come from GForum, but it would actually have been from GComm).

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [eupos] Welcome message In reply to
No I'm not using Community. I just have a straight copy of GForum 1.2.3 running. I'm not sure why it doesn't work... Unsure
Quote Reply
Re: [Andy] Welcome message In reply to
Does anyone have any ideas? This plugin just doesn't do anything when I install it...

Sean
Quote Reply
Re: [SeanP] Welcome message In reply to
No idea Unsure

It worked fine until I installed community. But in your case ... i really don't have a clue Crazy

Cheers,
Boris

Facebook, Twitter and Google+ Auth for GLinks and GCommunity | reCAPTCHA for GLinks | Free GLinks Plugins
Quote Reply
Re: [Andy] Welcome message In reply to
The reason the plugin isn't working, is because it only works when the email validation is turned on. I don't use admin or email validation, so the plugin hook is not working. Does anyone know how to change the code to another plugin hook that would work no matter if validation is on or off?

Code:
# ==================================================================
# Plugins::GForum::Welcome - Auto Generated Program Module
#
# Plugins::GForum::Welcome
# Author : Paul Wilson
# Version : 1.0
# Updated : Wed Apr 24 00:14:39 2002
#
# ==================================================================
#

package Plugins::GForum::Welcome;
# ==================================================================

use strict;
use GT::Base;
use GForum::Plugins;
use GT::Plugins qw/STOP CONTINUE/;
use GForum qw/$IN $DB $CFG/;

# Inherit from base class for debug and error methods
@Plugins::GForum::Welcome::ISA = qw(GT::Base);

# Your code begins here! Good Luck!


# PLUGIN HOOKS
# ===================================================================


sub pm {
# -------------------------------------------------------------------
# This subroutine will get called whenever the hook 'user_validate'
# is run. You should call GT::Plugins->action ( STOP ) if you don't
# want the regular code to run, otherwise the code will continue as
# normal.
#

my ($conf) = GForum::Plugins->get_plugin_user_cfg('Welcome');
my ($utab) = $DB->table('User');
my ($code) = $IN->param('validate'); $code =~ s/^(\d+)GT//;
my ($adm) = $utab->select( { user_username => $conf->{Sender} }, ['user_id','user_username'] )->fetchrow_hashref;
my ($user) = $utab->select( { user_val_code => $code }, ['user_id','user_username'] )->fetchrow_hashref;

if (! $adm->{user_id} or ! $user->{user_id}) {
GT::Plugins->action ( CONTINUE );
return;
}
else {
$DB->table('Message')->insert({ from_user_id_fk => $adm->{user_id},
msg_username => $adm->{user_username},
to_user_id_fk => $user->{user_id},
msg_subject => $conf->{Subject},
msg_style => 1,
msg_body => $conf->{Message},
msg_time => time(),
msg_status => 0,
msg_ip => $ENV{REMOTE_ADDR} });

GT::Plugins->action ( CONTINUE );
return;

}

}
# Always end with a 1.
1;
Quote Reply
Re: [SeanP] Welcome message In reply to
Yes you are right.

To change the plugin to your needs must edit the Install.pm

change line:
$mgr->install_hooks ( 'Welcome', [ ['do_user_validate', 'PRE', 'Plugins::GForum::Welcome::pm', 'LAST'] ]);

to

$mgr->install_hooks ( 'Welcome', [ ['insert_user', 'PRE', 'Plugins::GForum::Welcome::pm', 'LAST'] ]);

Not tested but must work Wink

Cheers,
Boris

Facebook, Twitter and Google+ Auth for GLinks and GCommunity | reCAPTCHA for GLinks | Free GLinks Plugins
Quote Reply
Re: [eupos] Welcome message In reply to
I tested it with validation and without, but it didn't work either way. Frown

Sean
Quote Reply
Re: [SeanP] Welcome message In reply to
Uh sorry Crazy

I've looked deeply and actually this needs modification Unsure

The plugin in the way it works looks for the validation code from user input on validation, this is the reason it won't work without validation Frown

I've edited for you and send you PM with modified version.

Cheers,
Boris

Facebook, Twitter and Google+ Auth for GLinks and GCommunity | reCAPTCHA for GLinks | Free GLinks Plugins

Last edited by:

eupos: Dec 14, 2005, 7:52 AM
> >