From: Evan Prodromou Date: Mon, 18 Apr 2011 10:32:32 +0000 (-0400) Subject: show the welcome page on registration completion X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6267ea2e8d52ae880da725aad3173edfde93c3c6;p=quix0rs-gnu-social.git show the welcome page on registration completion --- diff --git a/plugins/EmailRegistration/EmailRegistrationPlugin.php b/plugins/EmailRegistration/EmailRegistrationPlugin.php index 07367f0133..8210a1ce93 100644 --- a/plugins/EmailRegistration/EmailRegistrationPlugin.php +++ b/plugins/EmailRegistration/EmailRegistrationPlugin.php @@ -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', diff --git a/plugins/EmailRegistration/doc-src/welcome b/plugins/EmailRegistration/doc-src/welcome index 6bc6cde3aa..5f00c84afe 100644 --- a/plugins/EmailRegistration/doc-src/welcome +++ b/plugins/EmailRegistration/doc-src/welcome @@ -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.