Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Weird rating/votes  (Read 4717 times)

0 Members and 1 Guest are viewing this topic.

suwii

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 14
Weird rating/votes
« on: October 13, 2007, 08:45:01 am »

Hi
I'm wondering if anyone could help me out here...
Gallery is: http://a-scott.for-fan.org/gallery

*Number of views are working fine (except it doesn't register a view if I'm logged into my account - is that normal? But if I'm a guest then it registers!)
*Main problem is the rating - I try to rate both with my account and as a guest and they don't register. Yet there are 8 pictures which have been rated before so I don't know how that has become!? I've checked the 'Groups' menu and Guests and Registered Members/Administrators are able to rate. So I'm not too sure where I've gone wrong here..

Thanks for the help :)
Logged

suwii

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 14
Re: Weird rating/votes
« Reply #1 on: October 13, 2007, 09:26:13 am »

Ok I think it's got something to do with the referrer bit

Code: [Select]
// If referer is not displayimage.php we don't accept the vote
if (!eregi("displayimage",$_SERVER["HTTP_REFERER"])){
    header('Location: displayimage.php?pos=' . (- $pic));
    exit;
}

When I try to vote the page loads with the URL having that negative sign.......
so ok how do I allow those with referer's apart from displayimage.php to accept the vote? and/or how do i change it so my referer is displayimage.php?
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Weird rating/votes
« Reply #2 on: October 13, 2007, 09:53:02 am »

first of all please upgrade to most recent version (1.4.13) that could fix your issue as well
Logged
‍I don't answer to PM with support question
Please post your issue to related board

suwii

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 14
Re: Weird rating/votes
« Reply #3 on: October 13, 2007, 10:19:28 am »

umm i'm a bit new to this so how exactly do you upgrade? I've replaced the existing php files like ratepic.php/addfav.php but do i have to do all the folders and stuff? it's going to take ages? o.o
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Weird rating/votes
« Reply #4 on: October 13, 2007, 10:23:55 am »

It's not that hard and time consuming ,read this
Logged
‍I don't answer to PM with support question
Please post your issue to related board

suwii

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 14
Re: Weird rating/votes
« Reply #5 on: October 13, 2007, 01:28:34 pm »

ok i've updated it but it still won't work :(
How do I allow for referrer's apart from displayimage.php to rate?
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: Weird rating/votes
« Reply #6 on: October 13, 2007, 02:17:49 pm »

hi,

it works as expected for me see here i had a vote for this picture http://a-scott.for-fan.org/gallery/displayimage.php?pos=-619
clear your cookies and retry
Quote
Number of views are working fine (except it doesn't register a view if I'm logged into my account - is that normal?
yes it's normal, admins views are not counted
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Weird rating/votes
« Reply #7 on: October 13, 2007, 03:42:51 pm »

It's strange cause voting doesn't work any more !
did you applied any mod or plugin ?
Logged
‍I don't answer to PM with support question
Please post your issue to related board

suwii

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 14
Re: Weird rating/votes
« Reply #8 on: October 13, 2007, 03:51:59 pm »

so not working for you Sami? :o
I didn't apply any mod or plugin at all!
Actually it works for me now coz I turned off my ZoneAlarm firewall - read somewhere on the net that that makes it a Hidden Referrer so I guess the hidden referrer thing was the thing that was the problem. But that means whenever I want to rate a photo I have to turn the firewall off :S annoying..hmm so is there anyway I can alter parts of the ratepic.php file to allow this?
wonder why it's not working for you Sami........ :o
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Weird rating/votes
« Reply #9 on: October 13, 2007, 03:55:03 pm »

Um , that's okay , I'm using VPN connection that break referrer , sorry for confusion
it's working with regular connection now
 
Logged
‍I don't answer to PM with support question
Please post your issue to related board

suwii

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 14
Re: Weird rating/votes
« Reply #10 on: October 13, 2007, 04:16:04 pm »

ah ok i see
so no tips as to how i can edit that ratepic.php file to allow hidden referrers to rate? hmmmm at least I know what the problem is now :) thanks for the help!
bit OT - another weird thing - turned the zonealarm firewall off and now i can't see my hit counter from statcounter.com but when i turn it back on I can see the counter...crazy stuff  ???
Logged

suwii

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 14
Re: Weird rating/votes
« Reply #11 on: October 14, 2007, 02:20:41 am »

ok what i did was I totally deleted that referrer part from ratepic.php and it works fine
is there any consequence of this though?
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Weird rating/votes
« Reply #12 on: October 14, 2007, 06:20:52 am »

Yes, now spammers can add rating from outside and destroy your rating result
Logged
‍I don't answer to PM with support question
Please post your issue to related board

suwii

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 14
Re: Weird rating/votes
« Reply #13 on: October 14, 2007, 06:42:34 am »

ah darn....hmmmm
so would you recommend that I keep that part in the script? Is there anyway I can edit it somehow....hmmm
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.