fodev.net

Other => FOnline:2238 Forum => Archives => Suggestions => Topic started by: sander on February 11, 2011, 08:52:57 am

Title: VTDB suggestion
Post by: sander on February 11, 2011, 08:52:57 am
1. Add character name to page's <title> (minor and VERY easy to implement)
    This will help users of some browsers to find their (friend's) character page a bit faster(without need to remember lots of ID's)
2. Add some search function or at least the possibility to watch chars list in an alphabetical order.
    Search engine doesn't need to be too complicated, something like
Quote
               $pattern='/\*/';
                  $searchword=preg_replace ( $pattern , '%', $_GET['word']);   //will let the use of asterisk symbol
                  //Here goes addslashes or some preg_replace function to make the query SQL-injections-safe
                  if ($tmp=mysql_query("SELECT charName, charId from characters where charName LIKE '$searchword';")) {
                          echo 'search results:<br />';
                          while ($result=mysql_fetch_array($tmp)) {
                                echo '<a href="/vtdb/char.php?'.$result['charId'].'">'.$result['charName'].'</a><br />';
                          }
                  } else {
                       echo "no result";
                  }
should be good enough.

P.S.: Also insert <div> right after <body> and </div> right before </body> - this should fix custom cursor issue. Edit:I just saw it's done on inner pages, but not on main, so do that on main page too.
P.P.S.: Probably this topic should be moved to "bugs" or somewhere else.