diff --git a/conf/nginx.conf b/conf/nginx.conf index 2fa77d2..c575337 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -42,6 +42,9 @@ server break; } + # Accommodate UID's in the URI + rewrite ^/(.+)/(\d+)$ /index.php?request=$1&uid=$2 last; + # and the rest rewrite ^/(.+)$ /index.php?request=$1 last; } diff --git a/modules/leaderboard/edit.php b/modules/leaderboard/edit.php new file mode 100644 index 0000000..bd3debf --- /dev/null +++ b/modules/leaderboard/edit.php @@ -0,0 +1,15 @@ + diff --git a/templates/__shared/index.phtml b/templates/__shared/index.phtml index 3916808..fd268d7 100644 --- a/templates/__shared/index.phtml +++ b/templates/__shared/index.phtml @@ -48,6 +48,7 @@ { $links = array( '/leaderboards' => 'My Leaderboards', + '/api' => 'API Documentation', '/contact' => 'Contact Us', '/logout' => 'Logout', ); diff --git a/templates/leaderboards.phtml b/templates/leaderboards.phtml index 441fdeb..100383c 100644 --- a/templates/leaderboards.phtml +++ b/templates/leaderboards.phtml @@ -19,7 +19,7 @@ if ($this->module['leaderboards']) ?>