CodeIgniter Forums
Custom User Agent - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Custom User Agent (/showthread.php?tid=36339)



Custom User Agent - El Forum - 11-28-2010

[eluser]heliguy[/eluser]
I'm trying to be able to detect the Sprint HTC Evo phone but am having troubles trying to add it to the user agent file in CI.

This is the user agent string from the device:
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_5; en-us) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4

Any ideas?


Custom User Agent - El Forum - 11-28-2010

[eluser]umefarooq[/eluser]
yes you can add custom user agent check in application>config>user_agent.php file will help you to solve your problem


Custom User Agent - El Forum - 11-30-2010

[eluser]heliguy[/eluser]
I've been attempting to modify the user_agent.php file in the config folder, but have had no luck. I didn't know if anyone here could help me with what to actually put in the user_agent.php file.