Answer the question
In order to leave comments, you need to log in
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
Is there a standard functionality for inserting a picture, why did he not please?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question