Webmastersite.net
Register Log In

Can't rate links

Comments on Can't rate links

babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Sep 29, 2006 - 5:10 AM:

Link ratings switch is yes. All user groups can rate links.

Since upgrading nobody can rate links. when you click submit you get error message saying you don't have permission and to log in or register.

I was logged in. Could do everything except vote.

Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Oct 01, 2006 - 6:45 PM:

Works for me. What usergroup are you in?
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Oct 01, 2006 - 11:34 PM:

Paul wrote:
Works for me. What usergroup are you in?


Do you mean on your site(s) or did you try my example site?

When it first happened I was logged in as admin. I logged out and it happened as Guest, I logged in as ordinary member and it happened. So it happens in all user groups.

I upgraded from 3.4.2 to 4, did a clean upgrade and then customised my templates.

[edit] Just checked two of my other sites and it works fine on those. These are an EXACT replica in design of the rogue site in question. What I did was simply copy all the template files to the other sites, just changing the css. One of these sites was a new install, the other was an upgrade, I THINK from 3.4.2.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Oct 03, 2006 - 11:53 AM:

I meant mine, can't on yours. What are your ratings and hits settings?
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Oct 03, 2006 - 12:49 PM:

Paul wrote:
I meant mine, can't on yours. What are your ratings and hits settings?


Switches:
Link Ratings - ON
Hits Tracking - ON

-Allow people to vote multiple times NO
-Display a confirmation screen for votes coming from off-site? NO
-Cookie Expiration: 365
-Number of decimal places for link ratings: 2
-Prevent counting of multiple hits by same IP address? NO
-Don't count the hit or rating if the first 12 characters of the IP matches a previous one.
-Allow link submitter to vote once on their own link? YES
Count as link hit when:
-Viewing link details page? yes
-Viewing thread? no
-An administrator is the one viewing? no
-The link submitter is the one viewing? no
-Seconds required between hits to count as unique: 60
-Temporary hits will cover last 30 days
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Oct 05, 2006 - 12:02 AM:

That's the same as I have and I can't create any problem. Show me a screenshot of your usergroup permissions for the guest usergroup.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Oct 05, 2006 - 12:25 AM:

Paul wrote:
That's the same as I have and I can't create any problem. Show me a screenshot of your usergroup permissions for the guest usergroup.


here it is

Attached Files:
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Oct 05, 2006 - 6:59 PM:

That still doesn't get me anywhere, unless you have other ideas I don't see how to reproduce.

The only logical explanation I can think of might be that the category has its category usergroup permissions set to disallow rating.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Oct 05, 2006 - 11:20 PM:

Paul wrote:
The only logical explanation I can think of might be that the category has its category usergroup permissions set to disallow rating.


Nope. Can't rate in ANY category, and ALL cats are set to default.

BUT - I did go to editcat just to see if something was awry, and sure enough, see attached image. It's not the template. It is exactly the same if submitting a cat and also I have just reinstalled the original template and it's the same.

I have no idea when it went like this but guess it was probably on the upgrade from 3.4.2 to 4.0 beta. I upgraded to RC2 yesterday.


Attached Files:
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#10 - Quote - Permalink
Posted Oct 06, 2006 - 5:56 PM:

I'm aware of the display error in RC2, it didn't affect anything except the look.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
#11 - Quote - Permalink
Posted Oct 06, 2006 - 10:54 PM:

Paul wrote:
I'm aware of the display error in RC2, it didn't affect anything except the look.


oh, ok

I'm getting desperate now. The rating system is an important part of my site. What on earth can I do? It's not the templates as I have used those on other sites and their rating system is ok. I haven't changed anything in the setup from when it was working, nor can I see anything that has changed.

As far as I can see it is the only thing that is not working on the site.

[edit] I just tried another way - by editing link and entering 5 in the rating field. Didn't work. When I went back into edit it was 0

Paul, I really need help on this. If necessary I can give you my access password, but I really do need to get it sorted asap before people start complaining too much.

[edit] just looking at the database and comparing it to one of my other sites, which should be exactly the same... Under ratings it shows IP and CUSTOM as varchar(255) on thedogscene.co.uk (problem site). On the other site it shows it as text. What should it be?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#12 - Quote - Permalink
Posted Oct 08, 2006 - 9:22 PM:

In classes/member.php,
 function canvote()
{
// return false if member is not permited to rate links, true if they can
global $thiscategory, $usergroupdata;
$retval = $this->groupcanvote;
if ($thiscategory->id)
{
$data = $thiscategory->extractpermissions($usergroupdata);
if ($data[$this->usergroup]['canvote'] == '0') $retval = 0;
if ($data[$this->usergroup]['canvote'] == '1') $retval = 1;
}
return $retval;
}

apparently returns false (0) for you.

As always you can fill out scripts.webmastersite.net/w...dex.php?section=inspection and I can step through it and see how it gets that value. If it turns out to be a bug I won't charge you, though if it's a configuration issue I will.

Under ratings it shows IP and CUSTOM as varchar(255) on thedogscene.co.uk (problem site). On the other site it shows it as text. What should it be?

Doesn't matter, they're effectively the same just varchar makes the database microscopically faster. Newer installs use varchar but old ones don't get that changed, because the problems -- especially how mysql chokes on field changes of large databases -- aren't worth the tiny benefits.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#13 - Quote - Permalink
Posted Oct 16, 2006 - 7:21 AM:

Note for observers: This was a result of a list of spider user agents on the SEO page which made every browser containing the letter r be identified as a spider. Be careful when you customize your spider list.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.