]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
show the welcome page on registration completion
authorEvan Prodromou <evan@status.net>
Mon, 18 Apr 2011 10:32:32 +0000 (06:32 -0400)
committerEvan Prodromou <evan@status.net>
Mon, 18 Apr 2011 10:32:32 +0000 (06:32 -0400)
plugins/EmailRegistration/EmailRegistrationPlugin.php
plugins/EmailRegistration/doc-src/welcome

index 07367f0133042c8d6bdfde4ec4d8d67f02d469f8..8210a1ce9375eedb067dcdf2eca4f7c11917f990 100644 (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',
index 6bc6cde3aa43298fadfc71255aa40f73a5fc1f1e..5f00c84afe2388bd178b211d4b1ede0a1e291148 100644 (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.