Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 21 Nov 2009, 18:16
sparklywater sparklywater is offline
 
Join Date: Jun 2008
Conflict with attachment permissions

I'm using the following plugin code at hook location 'global_start' to make attachments work in PMs:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Something in this code causes an error message when uploading attachments to thread posts: 'you don't have sufficient privileges / permissions to perform this action'. When the above plugin is disabled, there is no longer an error message on uploading attachments.

Here is the mod page: http://www.vbulletin.org/forum/showthread.php?t=127113
Reply With Quote
  #2  
Old 21 Nov 2009, 20:01
PitchouneN64ngc's Avatar
PitchouneN64ngc PitchouneN64ngc is offline
 
Join Date: Aug 2002
Real name: Yves
I'm not a PHP expert but.... Why do you use '|=' as operator?
__________________
Administrator of http://forum.vbulletin-fr.org/

vBulletin QA Engineer / Lead Project Tools Developer
Reply With Quote
  #3  
Old 21 Nov 2009, 20:10
sparklywater sparklywater is offline
 
Join Date: Jun 2008
I tried removing the | but it made no difference.
I didn't write the code myself.
Reply With Quote
  #4  
Old 21 Nov 2009, 20:33
ForumsMods's Avatar
ForumsMods ForumsMods is offline
 
Join Date: Aug 2007
Real name: Adrian Sacchi
All the code must be rewritten to fit the new syntax.
Reply With Quote
  #5  
Old 21 Nov 2009, 20:41
sparklywater sparklywater is offline
 
Join Date: Jun 2008
I'm not using vB4, i'm using 3.7. The mod otherwise works well, with ability to attach files to PMs. It's just this small permissions clash with the code above, which i can't figure out.
Reply With Quote
  #6  
Old 21 Nov 2009, 20:44
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
You should have posted in the vb3 section if you wanted help with vb3 code. This is the vb4 section.

Moving....

And since this is a problem with the modification, you should be posting in the modification for help, not out here in the main forums.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #7  
Old 21 Nov 2009, 21:08
sparklywater sparklywater is offline
 
Join Date: Jun 2008
Sorry I didn't notice the new vb4 section, thought it was the old one.

I did post in the mod thread, but sometimes it's better to ask here because there is broader range of knowledge from members and that thread isn't visited often by others. It could be just a general clash of some permissions...anyone might know the answer.
Reply With Quote
Reply



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

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


New To Site? Need Help?

All times are GMT. The time now is 13:30.

Layout Options | Width: Wide Color: