Hongmu Notes
Home Program Notes Empire cms gets the pictures inside the content php
Program Notes Empire cms

Empire cms gets the pictures inside the content php

Empire cms gets the pictures inside the content php
if(empty($add['titlepic'])){ 
$str = $add['newstext']; 
$isMatched = preg_match("/<img .*?(?=src)src=\"([^\"]+)\"/si", $str, $matches); 
$add['titlepic'] = $matches[1]; 
} 
微信赞赏

WeChat

支付宝赞赏

Alipay

✍️ Author: Hong Mu

webmaster · Thanks for reading, stay tuned for more exciting content

Author homepage View home page →

Related articles

Empire CMS database statement & SQL statement format

Empire CMS database statement & SQL statement format Program Notes Empire cms

Introduction to Imperial CMS extended SQL program writing, basic examples of Imperial CMS database statements & SQL statement formats: Note: The following examples are based on placing PHP files in the system root directory. Example 1: Connect to MYSQL program. (a.php)<?php require('e/class/connect.php'); //Introduce database configuration files and public function files requ…
👁 351
Empire CMS obtains the system COOKIE variable function getcvar()

Empire CMS obtains the system COOKIE variable function getcvar() Program Notes Empire cms

Get the system COOKIE variable function syntax: getcvar($var,$ecms) Description: $var: is the variable name $ecms: 0 is to set the foreground COOKIE variable, 1 is to set the background COOKIE variable. This parameter can be omitted and defaults to 0. Usage example: getcvar('mlusername'), get the user name of the front-end login member getcvar('loginu...
👁 296
Empire CMS smart label call field collection

Empire CMS smart label call field collection Program Notes Empire cms

Collect and classify all fields that support smart tag calls into Empire CMS smart tags: [e:loop={column ID/topic ID, number of items displayed, operation type, only display pictures with titles, additional SQL conditions, display sorting}] Template code content [/e:loop] Calling time: <?=date('m-d',$bqr[newstime])?> <?=dat…
👁 3749

Recommended reading

Responsive greenery and floral website template – 0716

Responsive greenery and floral website template – 0716 Practical Collection Yiyou template

An eYouCMS responsive website template designed for the greenery and floriculture industries. Its fresh and natural design is ideal for showcasing plant and floral products, cultivation techniques, brand stories, and gardening services. This template helps floral and greenery brands effectively present their products online, attracting both individual and corporate customers. Template Overview | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Common Questions About eYouCMS Installation...
👁 46
Responsive Landscape Flower and Plant Sculpture Website Template 0717

Responsive Landscape Flower and Plant Sculpture Website Template 0717 Practical Collection Yiyou template

This EyouCMS responsive template is ideal for the landscaping, floral, and plant sculpture industry. Its natural and artistic design style is perfect for showcasing floral products, garden sculptures, landscape designs, and brand stories. It helps landscaping businesses showcase their works online and attract customers. Template Display | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for EyouCMS | EyouCMS...
👁 59
Responsive Fruit Tree Landscape Potted Plant Website Template 0718

Responsive Fruit Tree Landscape Potted Plant Website Template 0718 Practical Collection Yiyou template

An eYouCMS responsive website template designed for the fruit tree landscaping and potted plant industry. Its natural and artistic design style is ideal for showcasing fruit tree products, landscape designs, potted plant arrangements, and brand stories. This template helps landscaping and gardening businesses showcase their projects online and attract customers. Template Display | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for eYouCMS | eYouCMS...
👁 53
Resource website typecho001 template

Resource website typecho001 template Program Notes Typecho

typecho001 template template please do not modify the folder name of this template. The folder name is: typecho001 1.4 Fix the js output problem on the article page 1.3 Fix the error prompt when the plug-in is not installed Optimize the list page code output 1.2 Fix the comment function and add a custom homepage title 1.1 Fix the comment reply asymmetry function Add a separate title setting function on the homepage Add the website favicon.ico icon Add one...
👁 198
Responsive Xiangzhou Livestock Farming Cooperative Website Template 0719

Responsive Xiangzhou Livestock Farming Cooperative Website Template 0719 Practical Collection Yiyou template

This EyouCMS responsive template is ideal for Xiangzhu Livestock Breeding Cooperative. Its natural and professional design effectively showcases Xiangzhu pig farming operations, cooperative management, product supply chain, and breeding techniques. It helps livestock breeding cooperatives demonstrate their online presence and expand their sales channels. Template Overview | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for EyouCMS | EyouCMS...
👁 57
Modification of typecho paging style

Modification of typecho paging style Program Notes Typecho

Sir, times have changed! Typecho is currently the most perfect solution, because Baidu can only see the code of fixed thinking. The actual generated HTML code is breathtakingly clean and fully customized, including adding classes to the li element, adding classes to the a element, adding classes to the previous page and next page, and removing the li tags that come with typecho to express more. I can even add some text to the content inside...
👁 517