PDA

View Full Version : Editing post and adding attachment...


Saviour
06-17-2009, 10:40 PM
Running vb 3.8.3...

I have an issue and I don't understand what's causing it...or how to fix it.

If a user creates a thread, they can add an attachment at the time of posting. However, once the thread/post has been submitted...the user cannot remove, nor add another attachment without getting a permissions error.

I've checked my user group and attachment permissions and they seem to be set correctly. The only thing I can think of is that I may have some other setting enabled which is preventing the user to add/remove attachments after making their post/thread.

I'm at a loss...and appreciate any help anyone has to offer.

Update...

I've also checked the time one has to edit their post and it's set at 1440 minutes (one day), so I still don't understand why a registered user cannot add an attachment after they post.

Saviour
06-19-2009, 12:53 AM
*BUMP*

Anyone?

Something I noticed, which is quite peculiar...there's over 500+ pages of threads that were started by members with absolutely no replies in this particular forum.

Anybody supporting or moderating this forum?

Lynne
06-19-2009, 02:01 AM
People answer questions if they can. No one, however, is required to answer any questions at all.

What it is the exact error you are getting when trying to add an attachment?

Saviour
06-19-2009, 08:12 AM
Lynne...

I have the usergroup permissions for registered users allowing them to edit their own posts and to be able to upload attachments.

I have a test account...and I replied to a post and submitted the reply. I then proceed to immediately edit the post to add an attachment...and this is the error I get when I click the Upload button:

XXXXX, you do not have permission to access this page. This could be due to one of several reasons:

1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

So...as you can see...I'm at a loss.

Lynne
06-19-2009, 03:18 PM
Try this:
Create a new style with no parent:

Styles & Templates > Style Manager > Add New Style
Parent Style: No Parent Style
Title: Default vBulletin
Allow User Selection: Yes
Save

Then browse the site using that totally default vbulletin style - do you still have the same problem?

If it is still happening - Try disabling your modifications/plugins and see if you still have this problem.
Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

define('DISABLE_HOOKS', true);

Saviour
06-19-2009, 03:30 PM
Lynne...

After creating the new style...it does not happen...

I mean...it works fine...after creating the new style.

Lynne
06-19-2009, 03:33 PM
OK, so now you know it is a problem with your style. Now the fun begins. :) You need to go through and compare your modified templates to the default Jelsoft template and see what is missing. I would start with the templates that are related to attachments. I'd try this on a copy of your style first so you can find which one it is. It could be as simple as just clicking the Revert button on a couple of templates.

Saviour
06-19-2009, 03:44 PM
Thx...will do...I'll keep ya posted.

--------------- Added 1245434992 at 1245434992 ---------------

Here's the thing, though...

Why can staff do it...but not registered users? If a Staff member makes a post...and then goes back to edit it and add an attachment...it works.

However...if I log out...then log in using a test account...I can add an attachment if it were my first post, but can't add one if I edit the post.

Seems strange that a staff member can do it, but a registered member cannot.

--------------- Added 1245446554 at 1245446554 ---------------

Lynne...

Thank you for your help...I found the problem. It was this mod: Private Messages Attachments (https://vborg.vbsupport.ru/showthread.php?t=127113)

I have since disabled it...and all is fine.

Thank you, for your help...greatly appreciated.