PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Classifieds Support > Classifieds Bug Reports

Classifieds Bug Reports Post any problems you may be having with Classifieds here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 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?
mawby is offline   Reply With Quote
Old June 25th, 2005, 07:09 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,676
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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.
mawby is offline   Reply With Quote
Old June 26th, 2005, 03:17 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,676
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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.
mawby is offline   Reply With Quote
Old June 27th, 2005, 07:18 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,676
Your saying in edit usergroups the select boxes are off?
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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.
mawby is offline   Reply With Quote
Old June 27th, 2005, 07:37 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,676
Have you properly set permissions now as you want them?
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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.
mawby is offline   Reply With Quote
Old June 27th, 2005, 09:25 AM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,676
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);
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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?
mawby is offline   Reply With Quote
Old June 27th, 2005, 09:49 AM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,676
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old June 27th, 2005, 09:59 AM   #13 (permalink)
Junior Member
Verified Customer
 
Join Date: Jun 2005
Posts: 22
Thumbs up

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.
mawby is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
User permission set to "YES" - but database field shows "0" skippy Classifieds Bug Reports 3 November 11th, 2005 02:45 PM
Add the catagory name to the "Latest Ads" page? rs25.com Photopost Pro How Do I...? 0 October 17th, 2005 05:22 PM
Where is "Place an Ad" located... djroketboy Classifieds Installation & Upgrades 6 March 16th, 2005 01:06 PM
"Recent Ads" Table in Forum Home tacsol Classifieds Installation & Upgrades 9 July 22nd, 2004 01:56 PM
Removing Image from "Recent Ads" Box slant213 Classifieds Installation & Upgrades 1 July 1st, 2004 06:48 PM


All times are GMT -5. The time now is 02:01 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0