View Single Post
  #285  
Old 08-31-2004, 02:32 PM
Onkel_Tom's Avatar
Onkel_Tom Onkel_Tom is offline
 
Join Date: Mar 2002
Location: Stuttgart- Germany
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Host Directory
Which bit of code do i need to change to add new search engine spiders graphics to the stats? I found a web stats program on google that has 111 search engine spider icons that i would like to use.
You have to add your search engines to the database table statistic_spider in the same way as the existing entries.
you can use this code in phpmyadmin to add a search engine to the table:
Code:
INSERT INTO `statistik_spider` ( `ID` , `spidername` , `spider_link` , `balken_link` , `Zaehler` ) VALUES
('', 'Spidername1', 'images/statistik/spider/spidernamerflagname1.gif', 'images/statistik/bar1.gif'),
('', 'Spidername2', 'images/statistik/spider/spidernamerflagname2.gif', 'images/statistik/bar2.gif'),
('', 'Spidername3', 'images/statistik/spider/spidernamerflagname3.gif', 'images/statistik/bar3.gif');
just replace SpidernameX with your Spidername, spidernamerflagname3.gif with your filename of the flag image. look also at the end of the code and change barx.gif for each line starting at bar1.gif up to bar11.gif and then again from bar1.gif.

Pay attention on the last line is a ";" at the end not a comma !

after adding the entries into the table you should also edit your file functions_statistik in /includes directory:
find
Code:
elseif(ereg("zyborg", $agent)) $c_bot ="WiseNu";													//WiseNu
and add after:
Code:
elseif(ereg("spider agent identification string", $agent)) $c_bot ="Spidername as written in database";													//your new Spidername
find out the spider agent identification strinf while searching on google for this spider and wrote in this string, Spidername as written in database should have the identical syntax as your entrie in db table for spidername.

that's all

I'm working on a spider indentification at the moment which is identifiying more spiders and gives also more information about the spiders. So if you can wait you get a better version in few days or weeks
It's a very hard work to write all the information from several websites in the net in one database table, collect all information and change the code that it works.
I also optimized the identification routine from functions_statistik that the serverload is not to high while identify the spiders, also a lot of double entries and wrong spider agents will be fixed in this release.

It would be great if you can share the spider flags with us and I can implement these grafics in the new release
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01101 seconds
  • Memory Usage 1,770KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete