W
W
Way2015-04-02 20:34:59
PHP
Way, 2015-04-02 20:34:59

Uploading an image with the {images} tag, how to do it?

In general, I looked at how dle's pictures are uploaded and noticed that there is [img][/img]. And then I was pushed to one idea.
What if we make an input that has [img-input][/img-input] written at the beginning and end of the code example: [img-input]<input name="images">[/img-input]
The administrator user simply adds a link to the input, and then when the submit button is pressed, the code turns from [img-input]<input name="images">[/img-input]to <img src="Тут ссылка которую указал админ">and this code is sent in the database to the table with the newly created news. And already in shortstory.tpl output {images} (In place of {images} will be displayed <img src="Тут ссылка которую указал админ">). It's just that I couldn't do it. Can you tell me how to implement? With an example!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel Belousov, 2015-04-02
@YouTy6bl4

Is there a standard functionality for inserting a picture, why did he not please?

6
65536, 2015-04-02
@65536

FanatPHP is called to the post

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question