Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 26 Aug 2010, 09:18
XTF XTF is offline
 
Join Date: Sep 2004
When is attachdata_postsave hook called?

When is the attachdata_postsave hook in includes\class_dm_attachment.php called?
In 3.8 it was called when attaching a file, but in 4.0 it doesn't seem to be called at all.
Reply With Quote
  #2  
Old 26 Aug 2010, 15:03
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
It looks like it is called when the post is saved. Why do you think it isn't being called? Perhaps your syntax is incorrect for your plugin?
__________________
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
  #3  
Old 04 Sep 2010, 08:45
XTF XTF is offline
 
Join Date: Sep 2004
Wouldn't it show an error in this case?

I use errorlog('xbt_attachdata_postsave'); as code and this text is never logged.
Reply With Quote
  #4  
Old 04 Sep 2010, 16:14
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Don't you mean error_log?
__________________
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
  #5  
Old 07 Sep 2010, 16:37
XTF XTF is offline
 
Join Date: Sep 2004
Yes, but even then nothing gets logged.
Reply With Quote
  #6  
Old 16 Sep 2010, 18:57
XTF XTF is offline
 
Join Date: Sep 2004
Somebody?
Reply With Quote
  #7  
Old 16 Sep 2010, 19:01
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Are you even sure post_save_each_filedata is getting called?
__________________
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
  #8  
Old 17 Sep 2010, 08:39
XTF XTF is offline
 
Join Date: Sep 2004
No.
Reply With Quote
  #9  
Old 18 Sep 2010, 03:04
compwhizii compwhizii is offline
 
Join Date: Aug 2009
Send an email with vbmail()
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 09:02.

Layout Options | Width: Wide Color: