I've been playing with the skeleton plugin.. I've successfully sent mail by following a few of the other forums and have been trying to work out how to make a function appear on the profile page (with an alert when a new user registers). My PHP is a pretty average so it's usually a case of trial and error until something works.
Reading about hidden triggers I came up with this;
public function renderBeforeProfile($isNew){
if($isNew) {
$notification = '<div class="alert alert-info">';
$notification .= '<button type="button" class="close" data-dismiss="alert">×</button>';
$notification .= 'A new user has been created!';
$notification .= '</div>';
echo $notification;
}
}
It works but the message stays permanently. No doubt I'm missing a few arguments or something - any help would be much appreciated?
Also - I read somewhere in the forum that the Pro extension includes the ability to send private messages which would be very handy - is that correct - or just something that depends on Facebook (or whatever platform you log in with)?
Many thanks.