WakkaWiki : RenamingUserSettings

WakkaWiki :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are crawl29-public.alexa.com
I wanted the UserSettings link to be a bit more userfriendly, so by doing this small fix I changed it to say Login/register when the user isn't logged in and Change settings/logout when he/she is.

Changes to wakka.config.php

- "navigation_links" => "PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings",

+ "navigation_links" => "PageIndex :: RecentChanges :: RecentlyCommented :: [[UserSettings Login/register]]",
+ "logged_in_navigation_links" => "PageIndex :: RecentChanges :: RecentlyCommented :: [[UserSettings Change settings/logout]]",

Changes to actions/header.php

- <?php echo $this->config["navigation_links"] ? $this->Format($this->config["navigation_links"])." :: " : "" ?>

+ <?php
+ if ($this->GetUser()) {
+   echo
$this->config["logged_in_navigation_links"] ? $this->Format($this->config["logged_in_navigation_links"])." :: " : "";
+ } else {
+   echo
$this->config["navigation_links"] ? $this->Format($this->config["navigation_links"])." :: " : "";
+ }
+
?>
There are 3 comments on this page. [Display comments/form]