I have my website (www.hammerandfist.com), and I was wondering where I could place a browser detection script to redirect to a different site, for a specific browser type.
This is mainly for the eve-online's In Game Browser (IGB for short),
I have the code, but cannot get it to work, without always getting an
"error on line blah blah in /header.php"
Is this the correct place to place :
Code:
<?
ini_alter("session.use_cookies","1");
ob_start();
if (!(strpos($HTTP_USER_AGENT,"EVE-minibrowser")===TRUE))
{
// PLACE REDIRECT HERE
}
else
{
The reason for this, is because eve-online's in game browser, is a very constrained browser (not a full browser). So I want website membership to be linked to in-game capabilities. I am effectivly trying to build a tool that will allow
me to track membership attendance, and the last time they played. (if your not familiar with eve, "corporations" and alliances, can have several thousand members, and so I do not want to try and track that manually. What I want is so that when a member goes to
Only registered users can see links on this board! Get registered or login to the forums!
it detects for the IGB browser, if there, then send them to a sub-domain (igb.hammerandfist.com), otherwise display as normal.
What the tool will do, is both track the last time they we're logged in, and then also track several other things for myself, and for the players. The game has the ability to send this information back out, so the IGB should be able to update my nuke database with data. So it's just a matter of coding that to happen.
and evaders99, thanks for the tip, now I just have to figure out where to code it...
I don't have a clue where to add this in the mainfile.php file... I really am trepidatious to go farting around in the mainfile.php file.. I do not feel like screwing up my website as it is.
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum