3 minor suggestions

Everything related to the timeruns.net scoreboard
Post Reply
stealth
Posts: 140
Joined: Fri Dec 09, 2011 6:02 pm

3 minor suggestions

Post by stealth »

1. On the front page there is a little statistic with Oldest #1 Records. This isn't very interesting, maybe you could change it to "Hot maps" or "Trending maps"
This is a list of maps that have received the most new records during the past 10 days.

2. On the page of a players detailed stats (example: http://timeruns.net/pm/57/) can you swap the postion of "Random Stats" and "Records you should improve"
Why? Records you should improve holds more interesting information than random stats (in my opinion)

3. It might be a cool idea to change "Register" to "My Stats" when you are logged in. This link would lead you to your detailed stats page.
It's quite easy with phpbb. Example code:

Code: Select all

<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './forums/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/bbcode.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);

// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('viewforum');
?>
You need that as part of your header, then (example):

Code: Select all

<? if (!stristr($user->data['username'],"anonymous")) {
  echo '<p>Welcome back '.$user->data['username'].'</p>';
} else {
  echo '<a href="./forums/ucp.php?mode=register">Register</a>';
}?>
That's the if statement you need to check if somebody is logged in or not. (If they're not logged in they are recognized as anonymous user)

Some general information here:
https://wiki.phpbb.com/Practical.Displa ... rnal_pages
Post Reply