![]() |
How to attach files with new thread (using data manager) ?
How can i attach files when i want to create a thread with data manager?
i think that i must use class_dm_attachment.php but how? can anyone help me? (i am new to vb programming!) |
Have you tried looking at how vBulletin does it? Look at the forms, then looks at the processing behind them.
|
Quote:
when we want to create a new thread, there is a variable named posthash that in the processing point to the first post of thread! but when we use data manager, posthash doesn't exist! (sorry for my bad grammer!) |
When you call the "save" method of the Post DM, you will receive that post's ID.
|
Quote:
PHP Code:
Did you mean attach files after posting thread?! But if i want to make links to attached files in the thread, i need to attach files before posting thread, or edit thread after attaching files !!! |
Create a posthash, create attachments for the posthash, pass the hash to the threadfp dm - just like vBulletin does it :)
|
Quote:
I will try this. |
Quote:
|
Take a look at build_new_post() in includes/functions_newpost.php, read and learn how vBulletin does stuff :-)
PHP Code:
|
All times are GMT. The time now is 06:16 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|