fodev.net
15.08.2009 - 23.06.2013
"Wasteland is harsh"
Home Forum Help Login Register
  • September 29, 2024, 07:18:18 am
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Play WikiBoy BugTracker Developer's blog
Pages: [1]

Author Topic: VTDB suggestion  (Read 1333 times)

sander

  • I can see ya reading my posts.
  • Offline
VTDB suggestion
« 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.
« Last Edit: February 11, 2011, 01:26:56 pm by sander »
Logged
My English sux. I bet your Russian sux better.©
Pages: [1]
 

Page created in 0.049 seconds with 23 queries.