Notifications
Clear all

[SOLVED] edit link not working

10 Posts
2 Users
0 Reactions
2,684 Views
(@jacci)
Posts: 503
Honorable Member
Topic starter
 

http://www.pretendercentre.com/missing/eFiction1.1/viewuser.php?uid=519
version 3.1

have had a few complaints from members about this and i just logged in as a member instead of admin and i had the same problem

I veiwed my story listings  http://www.pretendercentre.com/missing/eFiction1.1/viewuser.php?uid=519

and got  this displayed

A test story by jacs Rated: PG [Reviews - 0] New! 
Summary: jsut testing
Categories: Non - Fiction
Characters: All the characters
Genres: None
Warnings: None
Series: None
Chapters: 1 Table of Contents
Completed: No Word count: 7 Read Count: 0

Options: [Edit] [Delete]
[Add Story to Favorites] [Add Author to Favorites] [Report This] Published: 19 Jan 2007 Updated: 19 Jan 2007

I clicked edit and it takes me to my edit page, add chaps etc but when i try to make any changes i get this page

You are not authorized to access that function.

If i go in thru account info area, there is no problem, or if i go in thru that listings, click edit and then click the edit option again on that page, it seems to work

i hope i have explained that clear enough.

thanks
jacci


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 : 19/01/2007 2:29 am
(@tammy)
Posts: 2577
Member Moderator
 

You did a better job than the author on my site did reporting it last night.  I didn't get anywhere with his report.  I think I may have found the problem through yours.


 
Posted : 19/01/2007 11:26 am
(@jacci)
Posts: 503
Honorable Member
Topic starter
 

thanks tammy

I notice on the template you have a field, are you a tester for us

I would like to offer my services, such as they are, to test things for you if it woudl be any help.
I already have a testing-non live site set up, which i use to butcher skins on.

I am not really sure how muhc help i can be since my skills dont really go much beyond skinning (and barely there even and i do learn eventually lol). But i am good at ferreting out problems and after all the help you have given, i woudl be more than happy to help you in any way i can


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 : 19/01/2007 11:36 am
(@tammy)
Posts: 2577
Member Moderator
 

This should be taken care of with the 3.1.1 release.

Jacci, I may take you up on that offer when I'm ready for my next guinea pig. πŸ™‚


 
Posted : 10/02/2007 4:04 am
(@tammy)
Posts: 2577
Member Moderator
 

This should be fixed with 3.1.1.

Jacci, I'll probably take you up on that offer the next time I need a guinea pig.


 
Posted : 10/02/2007 4:25 am
(@jacci)
Posts: 503
Honorable Member
Topic starter
 

Just let me know what i can do for you tammy. my coding skills are poor, but i am not incapable of learning .... lol... know reasonably well  html, css, and am learning my php from efic and screwing around in my sfm.

but i am happy to set up test sites for you, or use my current test site to run whatever you need. Just let me know and poke me in the right direction and i will do the best i can for you.

You guys have just been so fantastic, and since i cant afford the money to pay you, then if i can do this to help, it would be my great pleasure.


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 : 10/02/2007 4:35 am
(@jacci)
Posts: 503
Honorable Member
Topic starter
 

hey tammy
i am running 3.1.1 and that problem still seems to be there.
I uploaded the two files, and i can still as a member get to the edit function on the story page as a member, but it wont actually let me edit anything


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 : 10/02/2007 11:44 am
(@jacci)
Posts: 503
Honorable Member
Topic starter
 

3.2.1 has not fixed this one yet

in the edit option, you can edit, but it gets the not authorised to  message

if you are just a member


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 : 18/03/2007 10:46 pm
(@tammy)
Posts: 2577
Member Moderator
 

Okay now I see what the problem is.  Sorry, it wasn't clear to me what the problem was.

Change line 94 or includes/storyblock.php to read:


$adminlinks .= "[<a href="""._BASEDIR."stories.php?action=editstory&amp;sid=".$stories['sid'"].(!empty($adminloggedin) ? "&amp;admin=1" : "")."">"._EDIT."</a>] [<a href="""._BASEDIR."stories.php?action=delete&amp;sid=".$stories['sid'"].(!empty($adminloggedin) ? "&amp;admin=1" : "")."">"._DELETE."</a>]";

You're changing isset($adminloggedin) to !empty($adminloggedin) in two places.


 
Posted : 19/03/2007 1:30 am
(@jacci)
Posts: 503
Honorable Member
Topic starter
 

thanks tammy

πŸ˜€

that nailed it, working fine now.

thanks again!!!!


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 : 19/03/2007 1:39 am
Share: