Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
shortstats i pogodak.hr

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
gog



Joined: 18 Jun 2004
Posts: 679
Location: zagreb

PostPosted: 13.09.2005 12:23    Post subject: shortstats i pogodak.hr Add user to your forum ignore list Reply with quote

Ukoliko netko koristi shortstats ( http://www.shauninman.com/ ) a želio bih vidjeti i upite na www.pogodak.hr tražilici preko kojih su posjetitelji došli na njegov site neka prati pozorno Smile

Treba editirati functions.php datoteku i to funkciju SI_sniffKeywords();

U ovoj velikoj if .. then ... else petlji treba na kraju dodati:

Code:
   else if (preg_match("/pogodak\./i", $url['host'])) {
      parse_str($url['query'],$q);
      // Pogodak search terms are in "q"
      $searchterms = $q['q'];
      }
Back to top
View user's profile Send private message Visit poster's website
maratz
mi3.crew


Joined: 24 Nov 2003
Posts: 1207
Location: ZAG

PostPosted: 13.09.2005 12:32    Post subject: Add user to your forum ignore list Reply with quote

gg!

_________________
STOP HITTING YOURSELF! | NETIQUETTE | TYPETESTER | Hypertext rulez™ | CREATIVE NIGHTS | ACCOMMODATIONS
Back to top
View user's profile Send private message Visit poster's website Twitter profile
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 13.09.2005 13:05    Post subject: Add user to your forum ignore list Reply with quote

na sljedeći način stvar može biti rješena sa manje opterećivanja istog stringa mnogobrojnim regexpima (treba primijetiti da se kod mene funkcija ne zove isto)
Code:
function referer_searchterms($referer){
   if(!$referer = @parse_url($referer)) return NULL;
   if(!isset($referer['host']) || !isset($referer['query'])) return NULL;
   if($referer['host'] == $_SERVER['HTTP_HOST']) return NULL;
   
   $searchterms = $key = '';
   parse_str($referer['query'], $q);
   
   // Check for Google or other Q-like first
   if(preg_match("/(google|alltheweb|pogodak\.hr|search\.msn)\./i", $referer['host'])) $key = 'q';
   else if(preg_match("/yahoo\./i", $referer['host'])) $key = 'p';
   else if(preg_match("/search\.aol\./i", $referer['host'])) $key = 'query';
   
   if(!$key) return NULL;
   $searchterms = @$q[$key];
   return stripslashes($searchterms);
   }


Ne bi trebalo zaboraviti i dodati Pogodak spidera na popis botova u funkciji koja snifa browser...
Back to top
View user's profile Send private message Send e-mail Visit poster's website
gog



Joined: 18 Jun 2004
Posts: 679
Location: zagreb

PostPosted: 13.09.2005 15:01    Post subject: Add user to your forum ignore list Reply with quote

Najs, budem pogledao kada ulovim vremena..

@maratz, ne kužim što znači gg! ?
Back to top
View user's profile Send private message Visit poster's website
stripe



Joined: 24 Jan 2004
Posts: 816

PostPosted: 13.09.2005 15:45    Post subject: Add user to your forum ignore list Reply with quote

Google wrote:
The Gg are a fictional race of beings featured in the sci-fi Star Control computer game series.


Very Happy

gg - znaci da maratz najvjerojatnije igra quake malo previse Very Happy
Back to top
View user's profile Send private message
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 13.09.2005 18:32    Post subject: Add user to your forum ignore list Reply with quote

pa mogao si mu i reći do kraja, stripe

gg = great game
Back to top
View user's profile Send private message Send e-mail Visit poster's website
silence



Joined: 24 Apr 2004
Posts: 890
Location: .....ni na nebu, ni na zemlji.....

PostPosted: 13.09.2005 18:34    Post subject: Add user to your forum ignore list Reply with quote

gl&hf Wink

_________________
This End-User License is an agreement between Microsoft Corporation (hereafter referred to as "Microsoft") and you, the end-user (hereafter referred to as "our bitch").
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group