Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 01 Feb 2010, 17:28
XTF XTF is offline
 
Join Date: Sep 2004
attachdata_postsave replacement

In 3.8 I used the attachdata_postsave hook to update rows in the attachment table after an insert. In 4.0, this hook doesn't appear to be called. What's the proper replacement?
Reply With Quote
  #2  
Old 04 Feb 2010, 12:32
XTF XTF is offline
 
Join Date: Sep 2004
Somebody?
Reply With Quote
  #3  
Old 04 Feb 2010, 22:12
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
There is still a hook called attachdata_postsave. It's in the file class_dm_attachment.php
__________________
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
  #4  
Old 05 Feb 2010, 17:58
XTF XTF is offline
 
Join Date: Sep 2004
I know, but it doesn't appear to be called. When should it get called?
Reply With Quote
  #5  
Old 05 Feb 2010, 19:36
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
What do you mean it isn't called? Perhaps you need to change your code to use the variable names in that function. It's hard to give you a specific fix when we know nothing about your code.

Just an FYI, but attachments changed quite a bit in vB4. You will not be able to use your old queries - they will need to be modified.
__________________
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
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Miscellaneous Hacks [you] Replacement Boofo Modification Graveyard 122 27 Jun 2008 18:03
Miscellaneous Hacks [you] Replacement Mod Boofo Modification Graveyard 49 09 Mar 2007 03:44



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 05:44.

Layout Options | Width: Wide Color: