 | |  | | | Classifieds Bug Reports Post any problems you may be having with Classifieds here. |
June 25th, 2005, 04:47 AM
|
#1 (permalink)
| | Junior Member Verified Customer
Join Date: Jun 2005
Posts: 22
| Query: Place An Add requires "Allow edit own ads?" permission.
Hi again. I've not checked the code on this one, but the reports I've got back from my users is that the "Place An Ad" menu option only apprears if the usergroup has been granted "Allow edit own ads?" permission. I would have thought "Allow posting?" is the only permission they would need to create an ad? Why have a separate edit permission if it has to be turned on for the posting permission to work?
|
| |
June 25th, 2005, 07:09 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
Allow posting allows placement of ads
Allow edit own ads allows whether or not they can edit them after placing them
I surely see place an ad if the only permission I set is allow posting.
|
| |
June 26th, 2005, 02:44 PM
|
#3 (permalink)
| | Junior Member Verified Customer
Join Date: Jun 2005
Posts: 22
| Quote: |
Originally Posted by omegatron I surely see place an ad if the only permission I set is allow posting. | That is what I thought, but it was not the case on my site. If edit ad was not enabled (or admin/mod rights) then the place an add didn't appear.
|
| |
June 26th, 2005, 03:17 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
I would make sure you download the distribution and reupload all files incase you have anything corrupt or out of whack.
The place an ad link appears if useruploads is equal to 1 which means allow uploads for that specific usergroup. Telling me it only appears for admins or mods tells me you only have mods and admins set to upload.
You have a link to your install
|
| |
June 27th, 2005, 05:15 AM
|
#5 (permalink)
| | Junior Member Verified Customer
Join Date: Jun 2005
Posts: 22
|
OK, I've found out the real problem. You are correct that only "Allow posting?" permission is needed for the user to be able to place an ad. However, the problem lies with chaning the "Allow edit own ads?" permission. To explain, I originally had it so both of these permissions were true for my users. I then disabled the editing permission. However, when the page reloads after saving it has actually disabled the posting permission and left the edit permission enabled. If I reselect no for the edit permission now the posting permission is no, then the save works. As per the other thread, I will PM you login details and instructions on how to replicate this problem.
|
| |
June 27th, 2005, 07:18 AM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
Your saying in edit usergroups the select boxes are off?
|
| |
June 27th, 2005, 07:30 AM
|
#7 (permalink)
| | Junior Member Verified Customer
Join Date: Jun 2005
Posts: 22
|
Off? The dropdowns provide only "Yes" and "No" as options. What I'm saying is...
a) I originally set both "Allowing Posting" and "Allow edit own ads" to be "Yes" and everything was working.
b) I then changed "Allow edit own ads" to be "No", and pressed the "Save Changes" button.
c) Immediately after the save it reloads the page for you, and it can be seen that "Allowing Posting" is now "No" and "Allow edit own ads" is still "Yes"
I didn't spot c the first, so when my test users complained they could no longer add ads I assumed it was because I had turned off the edit permission, hence the title of the thread.
|
| |
June 27th, 2005, 07:37 AM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
Have you properly set permissions now as you want them?
|
| |
June 27th, 2005, 07:47 AM
|
#9 (permalink)
| | Junior Member Verified Customer
Join Date: Jun 2005
Posts: 22
|
Yes. We decided to allow our members to edit their adverts.
|
| |
June 27th, 2005, 09:25 AM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
Okay in editproduct.php find this
$phoedit = intval($phoedit);
above it add this
if ( isset($sold) ) $phoedit = intval($sold);
if ( isset($resell) ) $phoedit = intval($resell);
|
| |
June 27th, 2005, 09:37 AM
|
#11 (permalink)
| | Junior Member Verified Customer
Join Date: Jun 2005
Posts: 22
|
lol, that's just a simplier (ok much simplier) version of what I posted up!
One query though, you say to change the code to... Code: Content visible to verified customers only.
...but shouldn't the original line appear before the two news lines otherwise it will wipe out the value that's just been set by the two new lines?
|
| |
June 27th, 2005, 09:49 AM
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
No the order is right although It wont matter which way you do it  as phoedit is phoedit and only set to sold or resell if they exist which means are clicked
|
| |
June 27th, 2005, 09:59 AM
|
#13 (permalink)
| | Junior Member Verified Customer
Join Date: Jun 2005
Posts: 22
| Quote: |
Originally Posted by omegatron No the order is right although It wont matter which way you do it  as phoedit is phoedit and only set to sold or resell if they exist which means are clicked | Quite right.  That works nicely now cheers.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 04:26 AM. | |