Notifications
Clear all

{SOLVED} Can't respnd to reviews

40 Posts
16 Users
0 Reactions
8,558 Views
(@jacci)
Posts: 503
Honorable Member
Topic starter
 

Beautiful Tammy, that worked like a charm with the 3.2.1 install, thanks sooo much

😀

EDIT::

sorry everyone, false alarm.. oopps I forgot to revoke my admin priviledges when i tried it. Still cant respond to reveiw as regular member.

*blushing in embarrassment*


why is nothing ever easy?
url: http://www.pretendercentre.com/missingpieces/     
php: 5.2.5  msql: 5.0.45-community
efic version: 3.4.3           latest patches: yes
bridges: none              mods: challenges, displayword, beta-search

 
Posted : 17/03/2007 10:41 am
(@darklight)
Posts: 170
Estimable Member
 

Maybe it's the bridge or maybe I screwed up the settings trying to get it work before the update to 3.2.1 but this still isn't working for me. In fact it's doing the exact same thing. I've only upgraded my test archive for now, if you decide to look at it.


 
Posted : 17/03/2007 1:54 pm
(@livia)
Posts: 30
Eminent Member
 

Probably I've done something terribly wrong during the 3.2 update, because now I have this problem, too. The thing is: with the user/revres.php file of 3.1.1 users can respond to reviews; with the 3.2.1 they can't. So, I imagine that something went wrong with the update of the database 🙁


URL to your eFiction: http://www.acciofanfiction.com/index.php
Your version of eFiction: 3.5.1 (Italian language)
Version of PHP: 4.4.8
Version of MySQL: 4.1.22

 
Posted : 17/03/2007 6:47 pm
(@jacci)
Posts: 503
Honorable Member
Topic starter
 

Actually guys, it was me, not you, it was me

I gave my test account some admin privilidges the other day, forgot to revoke them and just got a wee bit excited when the update came and.,... well

ummm sorry  😳


why is nothing ever easy?
url: http://www.pretendercentre.com/missingpieces/     
php: 5.2.5  msql: 5.0.45-community
efic version: 3.4.3           latest patches: yes
bridges: none              mods: challenges, displayword, beta-search

 
Posted : 17/03/2007 8:05 pm
(@darklight)
Posts: 170
Estimable Member
 

LOL, I'm just happy I didn't screw something up! 😀 Don't worry about it.  😆


 
Posted : 17/03/2007 8:43 pm
(@livia)
Posts: 30
Eminent Member
 

Please, tell me if I'm wrong: apparently the problem is on line 32 of user/revres.php, where it says:

		if($adminloggedin || $uid == $useruid) {	

In fact, that means that you can respond to the review only if: a. you're an admin; b. you're the author of the _review_ (not the author of the story).
($useruid should be the id of the logged user, the author of the story that wants to respond to reviews. $uid is defined on line 31 and comes from the fanfiction_reviews table, where 'uid' is the author of the review.)

For this, I think an extra line of code should be added, where - I don't know, really - you get the user ID of the author of the story (let's call it $authorid), and only after that should come the code:

		if($adminloggedin || $authorid == $useruid) {	

I'll try to do this on my site; in the meantime, the problem can be temporarily 'solved' commenting line 32 and line 44 (the closing }), though this way - I suppose - any user can respond to the reviews of a story, knowing the right url.


URL to your eFiction: http://www.acciofanfiction.com/index.php
Your version of eFiction: 3.5.1 (Italian language)
Version of PHP: 4.4.8
Version of MySQL: 4.1.22

 
Posted : 18/03/2007 7:40 am
(@michelle)
Posts: 106
Estimable Member
 

Same here, I installed 3.2.1. and it seems to have taken care of the messed up statistics (the reviews are off by 1 now, but I can live with that *g*), but I'm still getting the same error when I try to respond to reviews. I tried with my test account and had one of my users try as well. With no success. URL is still http://www.naiceanilme.com


 
Posted : 18/03/2007 9:14 am
(@darklight)
Posts: 170
Estimable Member
 

I'll try to do this on my site; in the meantime, the problem can be temporarily 'solved' commenting line 32 and line 44 (the closing }), though this way - I suppose - any user can respond to the reviews of a story, knowing the right url.

Thank you so much! It's not a complete fix, but it'll get my authors to stop emailing me about this.


 
Posted : 18/03/2007 11:33 am
(@livia)
Posts: 30
Eminent Member
 

Ok, I tested the fix on my site and then again on local with a brand new installation of 3.2.1, and it works.
I'm posting it here, so you can use it if you have the same problem as me, at least until Tammy fixes it officially.

Open user/revres.php
Find line 32:

Code:

if($adminloggedin || $uid == $useruid) {

Delete it, and add these lines instead:

$resultch = dbquery("SELECT uid FROM ".$tableprefix."fanfiction_chapters WHERE chapid = '$chapid' LIMIT 1");
list($authoruid) = dbrow($resultch);
if($adminloggedin || $authoruid == $useruid) {

URL to your eFiction: http://www.acciofanfiction.com/index.php
Your version of eFiction: 3.5.1 (Italian language)
Version of PHP: 4.4.8
Version of MySQL: 4.1.22

 
Posted : 18/03/2007 5:15 pm
(@michelle)
Posts: 106
Estimable Member
 

Wonderful, I could hug you, you know?!


 
Posted : 19/03/2007 3:49 pm
(@asukafan2001)
Posts: 5
Active Member
 

it works like a charm. Thanks so much.


 
Posted : 20/03/2007 4:51 am
(@taford)
Posts: 16
Active Member
 

Thanks you so much! Even a mentally challenged coder like me was able to do this! It works!

T. :mrgreen:


URL: http://www.divasnluv.com
Test site is: N/A
Version of eFiction: 3.4.2
Latest Patche(s): Yes
bridged?:No
modified?: No.
PHP: 5.2.1
MySQL:5.0.18

 
Posted : 22/03/2007 5:00 pm
(@fanfictionworld)
Posts: 149
Estimable Member
 

will this also fix the problem I get...

if anyone (admin or member) clicks on Review Response  they get the message You are not authorized to access that function.

this is a clean install of the latest efiction that im using with no mods done to it

as its a new install let me know if you have to specifically install something for the reviews (like the challenges module)

thanx in advance of the help!


~Spikey~

my site url: http://www.fanfictionworld.org
efic version:3.5.3

 
Posted : 18/04/2007 2:03 am
(@guest1879)
Posts: 0
 

My authors also can not respond to reviews.

http://asherida.net/kakasaku/eFiction32/index.php

Using 3.2.1... new install.


 
Posted : 26/04/2007 7:09 pm
Jan_AQ
(@jan_aq)
Posts: 1300
Noble Member
 

Did you add the temp fix found on this thread?


Whoever said nothing is impossible never tried slamming a revolving door.

url: https://www.potionsandsnitches.org/fanfiction
php: 7.4.33 msql: 5.6.51-community GPL
efic version: 3.5.5 latest patches: yes
bridges: none mods: challenges, tracker, story end, beta, word

 
Posted : 26/04/2007 10:25 pm
Page 2 / 3
Share: