1
jester
istats refferrer problem,
  • 2004/8/24 16:57

  • jester

  • Just popping in

  • Posts: 29

  • Since: 2003/12/18


this module works great. but when it comes to my list of referrers, they've all been from other pages within my site.

My Istats

Is there some way to turn off logging from links within my own site so that I don't just have a bunch of links to things from my own site?

2
zer0fill
Re: istats refferrer problem,
  • 2004/8/25 4:35

  • zer0fill

  • Not too shy to talk

  • Posts: 137

  • Since: 2003/12/2


Yes, there's actually a typo in the code

/modules/istats/includes/counter.php ~line 162
/**
 * @feature
 * Keeps track of referers
 */

$referer $_SERVER['HTTP_REFERER'];
if (!
strstr([color=ff0000]$refer[/color], XOOPS_URL)) {
    
$check_ref getResult("select * from ".XOOPS_DB_PREFIX."_is_referer where url='".$referer."'");

Replace the red text with the proper spelling.

3
hanif
Re: istats refferrer problem,
  • 2004/8/28 14:10

  • hanif

  • Just popping in

  • Posts: 37

  • Since: 2004/7/12


Sorry if this is a dumb question, but what is the correct spelling?

4
jmass
Re: istats refferrer problem,
  • 2004/8/28 16:27

  • jmass

  • Friend of XOOPS

  • Posts: 524

  • Since: 2003/12/18


My istats does the same thing.

Quote:
"&refer="+escape(document.referrer)


is what is in my theme. This was a copy from the install instructions. It there a problem there?

JMass

5
jester
Re: istats refferrer problem,
  • 2004/8/28 19:35

  • jester

  • Just popping in

  • Posts: 29

  • Since: 2003/12/18


Yeah.. I changed it like you said and itstill does the same thing. Anyone have any other suggestions?

6
zer0fill
Re: istats refferrer problem,
  • 2004/8/28 20:42

  • zer0fill

  • Not too shy to talk

  • Posts: 137

  • Since: 2003/12/2


Quote:

jmass wrote:
My istats does the same thing.

Quote:
"&refer="+escape(document.referrer)


is what is in my theme. This was a copy from the install instructions. It there a problem there?

JMass


I don't think that's a problem because /istats/include/counter.php doesn't seem to use the refer variable (see $HTTP_GET_VARS in the code). It retrieves the referrer from $referer = $_SERVER['HTTP_REFERER'];


hanif:
The correct spelling is $referer

7
jmass
Re:istats refferrer problem,
  • 2004/10/21 15:57

  • jmass

  • Friend of XOOPS

  • Posts: 524

  • Since: 2003/12/18


Rather a dead thread, almosta year since last post....

But it finally got to me. I had to take the time to look at the problem.

I hacked it a bit, and fixed the reffer problem. I am not going to fork the mod. I have PMed the dev. If you are impatient... PM me and I will send you my hacks.

JMass

8
sylvainb
Re:istats refferrer problem,
  • 2004/10/21 17:20

  • sylvainb

  • Not too shy to talk

  • Posts: 168

  • Since: 2003/2/11


Hello jmass

Which PM are you talking about?
I did not receive any of it!
Or maybe you're talking about another Dev, or you sent the PM on another website?

Kind Regards

9
jmass
Re:istats refferrer problem,
  • 2004/10/22 1:35

  • jmass

  • Friend of XOOPS

  • Posts: 524

  • Since: 2003/12/18


I PMed whoever submitted the download. I do not remember who, but I know it was not you. If you are the dev, I will be happy to give it to you.

JMass

10
sylvainb
Re:istats refferrer problem,
  • 2004/10/22 5:31

  • sylvainb

  • Not too shy to talk

  • Posts: 168

  • Since: 2003/2/11


Hello Jmass
I don't who is Francis, but I think he submitted the module when xoops.org have changed the download module.

I had to have a break from coding because of familly reasons, but now I think I will certainly work on adding things that were requested on my website.

So I would be happy to receive your hack and to include it in a new corrected release.

Kind Regards

Login

Who's Online

152 user(s) are online (94 user(s) are browsing Support Forums)


Members: 0


Guests: 152


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Dec 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits