Elite_360_ I have a several reasons for functionality like this. One of them its create page with ALL posts from thread, and on which I can use CTRL+F from browser. It`s very easy way to search old posts with needful information. Anyway... its even nt my own desire, but users from my favorite forum.
So... I did not create a new topic, but simply asked in the existing. And this worked! )))
MarkFL thank you very much!!!! You save me a lot of time and nerves!!))
Although your code does not work on my forum, I was able to create the right module for me with to understanding its logic and right hook.
For me the result had like this:
PHP Code:
$post['message'] = preg_replace("/<a href=\"(\w{4,5}:\/\/.*attachmentid\=\d*)\"\s(.|\n)*<\/a>/U", "<img style=\"max-width: 400px; max-height: 400px;\" src=\"\\1\">", $post['message']);
It`s all right? The code dont have potentially errores?
Thanks again!!!!