PDA

View Full Version : Non "Special" people see "Special" links when submitting. Fix??


barefootsanders
02-11-2007, 06:54 PM
Hey. When people go to submit content they, for some reason, see the links in my menu that are "Special" access level. Is there a way to fix this? Thanks.

davidjay
02-16-2007, 08:02 PM
I have the same problem. Has anyone been able to figure this out?

coren
03-09-2007, 06:54 AM
Hey.. i have godt the same problem now... and i have tried in mayne ways, but it's didn't work out....
can any one help?

victort
03-12-2007, 01:06 AM
Me, too -- anyone have any suggestions for how to fix the code?

tescojim
11-13-2007, 12:11 PM
Me too. Anybody??
Help! :(

mpoweringu
11-15-2007, 02:19 PM
I'm having the same issue with Joomla 1.0.12 and JA Submit 2.2.

I'm attempting to go through the code to see what's throwing off the access controls values to trigger the "Special" items.

Any help would be great!

tescojim
11-15-2007, 02:45 PM
I am not skilled at this unfortunately, but would be very good if this would be resolved. This a very important mistake!

I using:
Joomla 1.0.13 (fixed)
JA Submit 2.1

mpoweringu
11-15-2007, 03:51 PM
Maybe an original developer can tell me if this causes any issues or can find a better way to load the appropriate values, but in troubleshooting this issue, I found the code that is causing the error.

At line 18 of ja_submit.php (for JA Submit 2.2) or at line 26 of ja_submit.php (for JA Submit 2.1) the following code is called:

if ($my->id) { $my->load(); }

A quick test of commenting out this code resolves the issue and has not broken my JA Submit 2.2 functionality at all.

NOTE: I have NOT tested this on version 2.1 so I cannot guarantee this will work, if not, just reverse the changes I'm suggesting and wait for another solution.

For JA Submit 2.2, at line 18, change the code:

if ($my->id) { $my->load(); }

To this:

// if ($my->id) { $my->load(); }


For JA Submit 2.1, at line 26, change the code:

if ($my->id) { $my->load(); } ?>

To this:

// if ($my->id) { $my->load(); }
?>

Again, I'm not a PHP expert, so I'm not sure what side effects this change may have, but it has not broken my version's functionality and has resolved the issue. The code may be unnecessary as the values are gathered through the global call on ($my)

Please post your feedback if it worked for you and if it caused other errors.

tescojim
11-15-2007, 05:36 PM
Hi mpoweringu!!

You are the best!!! Now work for me!!!
But the mistake is not in the ja_submit.php! In the ja_submit.html.php!
I report it if I would experience a mistake!

Many Thanks!!

mpoweringu
11-16-2007, 02:42 PM
Yup! My mistake! It is the ja_submit.html.php file!

Glad it worked for you!