website construction

ecshop home page calls article picture successful version

Recently, I have returned to ecshop. Nima encountered a problem as soon as the results came up. I called the picture of the article on the front page. I searched it on Baidu, and God, I found a lot of results […]

article directories

Recently, I have returned to ecshop. Nima encountered a problem as soon as the results came up. I searched for pictures of the article on the front page. I searched for it under Baidu. God, many of the results found were really good. The result didn't work after I tried it. After thinking about it, I Google it. I put the results together and posted a method on the third page of Google. Try it, the result was beautiful, the result was successful, whoosh, the method from Baidu online is missing one sentence.

1. Open includes/lib_article.php
Find the following code:

$arr[$article_id][‘url’] = $row[‘open_type’] != 1 ? build_uri(‘article’, array(‘aid’=>$article_id), $row[‘title’]) : trim($row[‘file_url’]);

Add the following code after this line:
$arr[$article_id][‘file_url’] = trim($row[‘file_url’]);
2. Open index.php in the root directory
Find the function index_get_new_articles() function
Add $arr[$idx]['file_url'] to the last line in the box? ?? ?? ?= trim($row[‘file_url’]);?

This sentence is very important. Baidu posted it without this sentence.
You can call the image in the template:
{$article.file_url} This is the picture tag to call. Explain. The picture that calls the article is the picture in the attachment...

Demonstrate the following code: Link, title, picture, all have a date and add a date:{$article.add_time} can all be used in the DWT file or placed in the LBI
<A href=”{$article.url}” target=_blank><IMG
alt=”{$article.title|escape:html}” src=”{$article.file_url}” width=140
height=90>{$article_item.short_title|truncate:”10″:”…”}</A>

So that's it first, and I'll continue to trouble.