show the welcome page on registration completion

This commit is contained in:
Evan Prodromou 2011-04-18 06:32:32 -04:00
parent 4784e3fe36
commit 6267ea2e8d
2 changed files with 18 additions and 4 deletions

View File

@ -84,6 +84,20 @@ class EmailRegistrationPlugin extends Plugin
return true;
}
function onStartLoadDoc(&$title, &$output)
{
$dir = dirname(__FILE__);
$docFile = DocFile::forTitle($title, $dir.'/doc-src/');
if (!empty($docFile)) {
$output = $docFile->toHTML();
return false;
}
return true;
}
function onPluginVersion(&$versions)
{
$versions[] = array('name' => 'EmailRegistration',

View File

@ -1,10 +1,10 @@
Welcome to %%%%site.name%%%%.
Welcome to %%site.name%%.
From here, you may want to...
* Go to [your profile](%%user.profileurl%%) and post your first message.
* [Search for people](%%%%action.peoplesearch%%%%) that you may know or that share your interests.
* Update your [profile settings](%%%%action.profilesettings%%%%) to tell others more about you.
* Read over the [online docs](%%%%doc.help%%%%) for features you may have missed.
* [Search for people](%%action.peoplesearch%%) that you may know or that share your interests.
* Update your [profile settings](%%action.profilesettings%%) to tell others more about you.
* Read over the [online docs](%%doc.help%%) for features you may have missed.
Thanks for signing up and we hope you enjoy using this service.