![]() |
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? |
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. |
Quote:
|
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 |
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. |
Your saying in edit usergroups the select boxes are off? |
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. |
Have you properly set permissions now as you want them? |
Yes. We decided to allow our members to edit their adverts. |
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); |
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. |
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 |
Quote:
|
| All times are GMT -5. The time now is 10:28 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0