M
M
midarovrk2019-08-04 18:48:04
DLE
midarovrk, 2019-08-04 18:48:04

How to change the link of {image-1} in shortstory?

Good afternoon.
Tell me how to change the link of the {image-1} tag in shortstory.tpl ?
I need
/uploads/posts/2019-08/1564931230_1cover.jpg
to become
/uploads/posts/2019-08/thumbs/1564931230_1cover.jpg
I found the code 2 times in the engine/modules/show.short.php file:

if( $value[12] AND file_exists(ROOT_DIR . "/uploads/posts/" .$path_parts['dirname']."/thumbs/".$path_parts['basename']) ) {
            $thumb_url = $config['http_home_url'] . "uploads/posts/" . $path_parts['dirname']."/thumbs/".$path_parts['basename'];
            $img_url = $config['http_home_url'] . "uploads/posts/" . $path_parts['dirname']."/".$path_parts['basename'];
          } else {
            $img_url = 	$config['http_home_url'] . "uploads/posts/" . $path_parts['dirname']."/".$path_parts['basename'];
            $thumb_url = "";
          }

$img_url replaced
$path_parts['dirname']."/".$path_parts
with
$path_parts['dirname']."/thumbs/".$path_parts
But for some reason this does not work.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question