The Arcive of vBulletin Modifications Site. |
|
Delete attachment one command Details »»
|
||||||||||||||||||||||||||
What variables need to be substituted in string, what to delete the attachment one command?
![]() Quote:
![]() ![]() Show Your Support
|
||||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
You can't do that, but you can delete the attachment with an SQL query:
[sql]DELETE FROM attachment WHERE attachmentid = XXX;[/sql] |
|
#3
|
||||
|
||||
|
It would be desirable to use possibilities of moduls of a forum. If to use SQL - there is a necessity of creation of all authentications...
in editpost.php unit there is a section PHP Code:
|
|
#4
|
||||
|
||||
|
That section includes many other functions, and to use it as-is you will need to POST data to that page, and that data will need to include the post's message, title, icon, and everything else that the code updates.
You must rewrite it. |
|
#5
|
||||
|
||||
|
Quote:
I have all attributes of the message, and also a thread and forum. Prompt as to generate string(command) - that not calling the web-form "editing post" to delete attachmen... Not forcing the user to press "Save Changes" button. |
![]() |
|
|