Reprint ECTouch1.0 Edit AD list display ad image in background ad management

Source: Internet
Author: User

Http://www.ectouch.cn/topics/94.html

Effect

Operation:

1.

Modify the background controller file to call out the relevant field information. mobile\include\apps\admin\controller\advertcontroller.class.php function ad_list Position: $ad _list[$key] [' orders '] = $ This->get_orders ($value [' ad_id ']); Add code to the following line
  if ($value [' media_type '] = = 0) {                if (Strpos ($value [' Ad_code '], '/http ') = = = False && strpos ($value [' Ad_ Code '], ' https://') = = = False)                {                    $ad _list[$key] [' ad_code '] = __url__. ' /‘. $value [' Ad_code '];                } else{                    $ad _list[$key] [' ad_code '] = $value [' Ad_code '];                }            }

2. Then just display it in the template file. mobile\include\apps\admin\view\advert_ad_list.php Location: <th class= "Text-center" >{$lang [' Media_type ']}</th > Add a row after
<th class= "Text-center" >{$lang [' ad_code_img ']}</th>

Location: <td class= "Text-center" >{$vo [' media_type ']}</td> add a row after

<TD class= "Text-center" ></td>

As for the width of the table and picture can be adjusted to the most appropriate display effect. Finally, modify a language pack file mobile\include\apps\admin\language\zh_cn\advert.php anywhere:
$_lang[' ad_code_img '] = ' advertising image ';

The modification is complete and the cache is cleared.

Reprint ECTouch1.0 Edit AD list display ad image in background ad management

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.