The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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!) |
#2
|
||||
|
||||
Have you tried looking at how vBulletin does it? Look at the forms, then looks at the processing behind them.
|
#3
|
|||
|
|||
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!) |
#4
|
||||
|
||||
When you call the "save" method of the Post DM, you will receive that post's ID.
|
#5
|
|||
|
|||
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 !!! |
#6
|
||||
|
||||
Create a posthash, create attachments for the posthash, pass the hash to the threadfp dm - just like vBulletin does it
|
#7
|
|||
|
|||
Quote:
I will try this. |
#8
|
|||
|
|||
Quote:
|
#9
|
||||
|
||||
Take a look at build_new_post() in includes/functions_newpost.php, read and learn how vBulletin does stuff :-)
PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|