CodeIgniter Forums
(SOLVED) Robots list in user_agents.php - CI 1.6.3 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: (SOLVED) Robots list in user_agents.php - CI 1.6.3 (/showthread.php?tid=10283)



(SOLVED) Robots list in user_agents.php - CI 1.6.3 - El Forum - 07-24-2008

[eluser]fensen[/eluser]
I've just downloaded CI 1.6.3

I was wondering, what happend with the $robot array (bots, crawlers) in application/config/user_agents.php

It was present in CI 1.6.1.

I need to be able to read the array and add some new values.

Thanks


(SOLVED) Robots list in user_agents.php - CI 1.6.3 - El Forum - 07-25-2008

[eluser]got 2 doodle[/eluser]
Thanks for pointing out the ommisision
I'm using 1.6.2 and it's in there.
Code:
// There are hundreds of bots but these are the most common.
$robots = array(
                    'googlebot'            => 'Googlebot',
                    'msnbot'            => 'MSNBot',
                    'slurp'                => 'Inktomi Slurp',
                    'yahoo'                => 'Yahoo',
                    'askjeeves'            => 'AskJeeves',
                    'fastcrawler'        => 'FastCrawler',
                    'infoseek'            => 'InfoSeek Robot 1.0',
                    'lycos'                => 'Lycos'
                );

Just a cut and paste from the old code, does this help?


doodle


(SOLVED) Robots list in user_agents.php - CI 1.6.3 - El Forum - 07-25-2008

[eluser]Derek Allard[/eluser]
Oh man... I'm gonna get blamed for this one... I just know it.


(SOLVED) Robots list in user_agents.php - CI 1.6.3 - El Forum - 07-29-2008

[eluser]fensen[/eluser]
Quote:Just a cut and paste from the old code, does this help?

Yes! Thanks a lot!

Problem solved.