Hongmu Notes
Home Program Notes Change article line breaks in EMLog to <p> tags.
Program Notes emlog

Change article line breaks in EMLog to <p> tags.

Change article line breaks in EMLog to <p> tags.

This new version of emlog is hard to get used to, and the editor still has a lot of problems!

But I'm not familiar with js, so I can only modify the newline in php!

Find a template for your own article page, for example:echo_log.php

Modify the variables of your article output!

ad1a1b7183222734

 

<?
$log_content = str_replace("<br />","</p><p>",$log_content);
echo $log_content;
?>

Directly replace the br tag with the p tag!

微信赞赏

WeChat

支付宝赞赏

Alipay

✍️ Author: Hong Mu

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

Author homepage View home page →

Related articles

Emlog enables automatic saving when editing articles.

Emlog enables automatic saving when editing articles. Program Notes emlog

The automatic save feature allows you to automatically save your edits when you publish an article – it doesn't generate any extra IDs or drafts! When you click the "Auto Save" button, the page will be automatically submitted and saved without interrupting your editing process! The advantage is that you can save your article at any time; if a power outage or network disruption occurs and your changes aren't saved, you might be in for a real headache! Let's get started with the tutorial! Step 1: Open /admin/views/artic...
👁 244
EMLOG backend editor – Set text size

EMLOG backend editor – Set text size Program Notes emlog

When editing text in EMLOG, the font size displayed is too small, making it very uncomfortable to read; if left unchanged, the text is practically impossible to read! To set the font size to 16px, you can modify the following code: Step 1: Open the `admin/views/article_write.php` file, and in the initialization section of both `Editor` and `Editor_summary`, locate the `path:` line...
👁 201
When editing articles in the EMLOG backend, automatic saving and display of word count statistics are enabled.

When editing articles in the EMLOG backend, automatic saving and display of word count statistics are enabled. Program Notes emlog

The specific modifications are shown in the figure below: This shows exactly how many seconds have been saved! It also displays the number of words in the article, making it very convenient for users to review their own content! Modification tutorial: Open the file `/admin/views/article_write.php`, and locate the code snippet: `<label>Article Summary:</label><%/label>` – this is approximately 18 lines of code. Add the following code snippet above this section: `<span i...`
👁 260
EMLog Pro – Happy Crack Version – For learning, sharing, and use.

EMLog Pro – Happy Crack Version – For learning, sharing, and use. Program Notes emlog

This website uses the WordPress platform; emlog was only temporarily used for learning and sharing purposes. Recently, I remembered using the emlog software to write a blog before – it worked quite well – so on a whim, I downloaded and started using it! However, there's a so-called paid version available! So, I searched online and found a cracked version of the software. Driven by my desire to learn, I gave it a try – and the results are as follows: The performance is excellent! In fact, the emlog source code is open-source, and...
👁 1587
EMLOG Pro Registration Code "Cracking" Tutorial (What should users do if the official or free version of EMLOG suddenly becomes unavailable?)

EMLOG Pro Registration Code "Cracking" Tutorial (What should users do if the official or free version of EMLOG suddenly becomes unavailable?) Program Notes emlog

Preface: A tutorial on "cracking" the EMLOG Pro registration code – why use quotation marks for the word "cracking"? Because EMLOG is fully open-source software; anyone can download and modify it freely. Since it's open-source, the concept of "cracking" doesn't really apply. Main text: What should users do if the official EMLOG version or the free EMLOG version suddenly disappears? What if your EMLOG Pro cannot connect to the server...
👁 1264
How to make administrator login visible on Emlog?

How to make administrator login visible on Emlog? Program Notes emlog

I took a look at EMLOG, downloaded a template, but during use, I noticed that there was no login-protected functionality! What I needed was features accessible only to administrators upon logging in. So, I checked the official documentation: there are directly usable constant variables and constant type definitions. For example: - `Option::EMLOG_VERSION` – retrieves the current EMLOG version number; - `ROLE` – indicates the current user role (user group): `admin` (administrator), `writer`, etc.
👁 259

Recommended reading

Art Photography Studio Website Template 1131

Art Photography Studio Website Template 1131 Practical Collection Yiyou template

An EyouCMS website template designed specifically for art photography studios. Its visual art-oriented design is perfect for showcasing photographic works, artistic styles, photography services, and brand stories. This template helps photography studios present their portfolio online and attract potential clients. Template Demo | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for EyouCMS | EyouCMS (EyouC...
👁 46
Responsive Resort Hotel Business Guest Room Website Template 0423

Responsive Resort Hotel Business Guest Room Website Template 0423 Practical Collection Yiyou template

An eyoucms responsive website template for resort hotels and business rooms. The design style is comfortable and high-end, and can display the hotel environment, room facilities, business services and online booking. Helps resort hotels attract tourists and business customers online. Template display Installation instructions Website backend: /login.php Account: admin Password: admin Related articles Summary of common problems in Yiyou CMS installation Yiyou CMS (E…
👁 38
(PC+WAP) Blue Industrial Furnace Website Template Industrial Machinery Equipment Enterprise Website Source Code Download 0908

(PC+WAP) Blue Industrial Furnace Website Template Industrial Machinery Equipment Enterprise Website Source Code Download 0908 Practical Collection pbootcms Template

A blue industrial furnace and mechanical equipment company PbootCMS website template, supporting PC and WAP. The design style is professional and industrial, suitable for displaying industrial furnaces, heat treatment equipment and other products. Helps industrial equipment manufacturers display their brands online and attract manufacturing customers. Template display Installation instructions Website backend:/admin.php Account: admin Password: admin Unzip password: www.4s5.cn Related...
👁 58
(Adaptive mobile version) PBootCMS template for hardware accessories websites; Download source code for machining equipment websites – 0231

(Adaptive mobile version) PBootCMS template for hardware accessories websites; Download source code for machining equipment websites – 0231 Practical Collection pbootcms Template

This set includes adaptive hardware accessories for mobile devices and mechanical machining equipment, along with a PbootCMS website template. The design features a professional and practical style, ideal for showcasing hardware components, mechanical machining services, and product specifications. It helps hardware accessory manufacturers showcase their production capabilities online and attract manufacturing industry clients. Template Display | Installation Instructions | Website Backend: /admin.php | Username: admin | Password: admin | Extraction Password: www.4s5.cn...
👁 61
Graphic Design & Advertising Printing Website Templates – 1132

Graphic Design & Advertising Printing Website Templates – 1132 Practical Collection Yiyou template

This EyouCMS template is ideal for the graphic design, advertising, and printing industries. Its creative and visually appealing design style makes it perfect for showcasing design works, advertising concepts, printing processes, and brand case studies. It helps design and printing companies demonstrate their professional expertise online and attract corporate clients. Template Display | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for EyouCMS | EyouCMS...
👁 57