Home CMS Tutorial DEDECMS What are the problems faced by dedecms when building a Taobao blog site?

What are the problems faced by dedecms when building a Taobao blog site?

Dec 03, 2019 am 09:44 AM
dedecms

What are the problems faced by dedecms when building a Taobao blog site?

dedecmsWhat are the problems in building a Taobao blog site?

The first question:

The time is also updated to the latest when dedecms edits content (some friends don’t want this, and hope to keep the content as originally published time. Of course, when dedecms is editing, the article publishing time is updated to the latest time by default. This is also considered based on the needs of most webmasters, and I am talking about a small number of webmaster friends here). Many friends may immediately think of this problem. Someone has mentioned it before, indeed many friends have shared this issue. But they are all talking about article editing (change "$nowtime = GetDateTimeMk(time())" in the root directory dede/templets/article__edit.htm file around line 464 to "$nowtime = GetDateTimeMk($arcRow[" pubdate"])")

Recommended study: 梦Weavercms

What I want to talk about today is your website picture collection image, software software, which most friends have not noticed. The release time of the product shop is also updated to the latest time by default when editing (at least I encountered this problem when I was working on baby.ag optimization.cn, a blog-type Taobao customer site).

The same principle: (dede here is the default backend directory name of the program, if it is changed, it depends on your changes)

Use Notepad to modify the root directory dede/templets/ folder The album_edit.htm file (about 345 lines, if you can’t find it, you can consider using the search function to find it. Notepad has this function), soft_edit.htm file (about 453 lines, I assume this defaults to the editing software and does not update the time. You don’t need to change it. ) of "$nowtime = GetDateTimeMk(time())" is "$nowtime = GetDateTimeMk($arcRow["pubdate"])". (Commodity)

Second question:

dedecms watermark problem. In order to save someone from saying I’m verbose, let me ask the question directly. Many people have encountered it. In the article, there are solutions to the problem of uploading pictures without adding picture watermarks everywhere on the Internet (changed as follows), but what Aguang is going to talk about today is the problem of not being able to add picture watermarks when uploading pictures in the photo album (actually The changing method is the same, the same problem seems to be dedecms5.7) and the setting of whether to add watermark to the picture is invalid. Solution:

Solution to the problem of adding watermark to picture and adding watermark to picture collection:

1 , System-> Basic System Parameters-> Attachment Settings-> Whether to use watermarks in the atlas (small pictures will also be affected): Yes

2. System-> Picture Watermark Settings//As required , set it up

Open dede\swfupload.php, find

//WaterImg($cfg_basedir.$fileurl, ‘up’);
Copy after login

and remove the // in front of this sentence, that’s it! Then upload the image again.

dedecms5.7 pictures are watermarked or not. The problem and solution are invalid:

Open the "/include/helper/image.helper.php" file under the DeDeCMS installation root directory and find the following Code snippet:

if( isset($GLOBALS[’needwatermark’]) )
{ $photo_markup = $photo_markdown = empty($GLOBALS[’needwatermark’]) ? '0': '1'; }
Copy after login

modified to:

if( isset($GLOBALS[’needwatermark’]) )
{ $photo_markup = $photo_markdown = empty($GLOBALS[’needwatermark’]) ? '0' : '1'; }
else
{ $photo_markup=$photo_markdown='0'; }
Copy after login

The third problem:

Issues with calling thumbnails on content pages such as articles and products. This question was raised by my wife. You can now see that there is a picture above "I want to buy" at the top of the right side of my blog's Taobao content page. If there are no pictures in it, then visitors will not know what product you are recommending, and this kind of Taobao is destined to fail. My wife proposed this, so I think it’s very good. Do not insert product advertisements in the content of the article, which invisibly closes the distance between visitors and makes the advertisement invisible. This is the highest state of Taobao customers at this stage. It is said that it can improve the conversion rate. Haha, I don’t know yet. I believe there will be results after a trial run for a while. Yes.

Fourth question:

When browsing photos on the baby photo album content page (single photo album page): the previous photo is not displayed in IE8 when the mouse is parked on the picture. Next arrow symbol.

Because this photo album template uses the template from another website that I copied intact, it appears normal on the other website, but not normal on this website, which is strange. Yesterday afternoon I was so dizzy that I didn’t know whether to go home or not. The hard work paid off and I finally discovered the reason. It was that when using cursor: url in CSS to call these two icons, the paths used were different. Another website of mine used cursor: url(/templets/image/arr_left.cur ), and my blog uses cursor: url(../image/arr_left.cur), which causes it not to display properly, but it works fine in Google Chrome. Later, after checking online, it turned out that the cursor: url under IE8 does not support relative paths in the form of the upper-level directory (such as ../image/1.jpg). It was OK to change the blog image arr_left.cur and arr_right_cur calls to absolute paths. That is to say, my blog’s cursor: url(/statics/image/arr_left.cur) call can be viewed normally through the image content of my blog.

The fifth question:

The problem of special effects at the top and bottom of the imitation QQ music website's return website. Many websites have released the code, but for novice level people Speaking of, the introduction of the program I have used is not very clear, so I will just say it here, hoping to help new people who may encounter it later. The download address of the specific code is given at the bottom of my blog.

接下我来我具体说说在使用过程中要达到效果就必须要注意的问题:

必须对网站body所有内容加一个

网站所有内容
最大盒子,然后把 加在这个最大DIV盒子之前, 放在DIV最大盒子之后,其它代码任意放都可以。下面我给出具体的放法(CSS代码外部调用就是了,附件里面有这里就不列出,加个“ ”是为了兼营IE6):

<a name="gotop"> </a>
<DIV>网站所有内容</DIV>
<a name="gobottom"> </a>
<div class="go">
<a rel="nofollow" title="返回顶部" class="top" href="#gotop"></a>
<a rel="nofollow" title="如果您有意见,请反馈给我们!" class="feedback" href="http://baby.ag优化.cn/plus/guestbook.php#write" target="_blank"></a>
<a rel="nofollow" title="返回底部" class="bottom" href="#gobottom"></a>
</div>
Copy after login

The above is the detailed content of What are the problems faced by dedecms when building a Taobao blog site?. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Where is the imperial cms resource network template? Where is the imperial cms resource network template? Apr 17, 2024 am 10:00 AM

Empire CMS template download location: Official template download: https://www.phome.net/template/ Third-party template website: https://www.dedecms.com/diy/https://www.0978.com.cn /https://www.jiaocheng.com/Installation method: Download template Unzip template Upload template Select template

How dedecms implements template replacement How dedecms implements template replacement Apr 16, 2024 pm 12:12 PM

Template replacement can be implemented in Dedecms through the following steps: modify the global.cfg file and set the required language pack. Modify the taglib.inc.php hook file and add support for language suffix template files. Create a new template file with a language suffix and modify the required content. Clear Dedecms cache.

What website can dedecms do? What website can dedecms do? Apr 16, 2024 pm 12:24 PM

Dedecms is an open source CMS that can be used to create various types of websites, including: news websites, blogs, e-commerce websites, forums and community websites, educational websites, portals, other types of websites (such as corporate websites, personal websites, photo album websites, video sharing website)

How to upload local videos to dedecms How to upload local videos to dedecms Apr 16, 2024 pm 12:39 PM

How to upload local videos using Dedecms? Prepare the video file in a format that is supported by Dedecms. Log in to the Dedecms management backend and create a new video category. Upload video files on the video management page, fill in the relevant information and select the video category. To embed a video while editing an article, enter the file name of the uploaded video and adjust its dimensions.

How to use dedecms How to use dedecms Apr 16, 2024 pm 12:15 PM

Dedecms is an open source Chinese CMS system that provides content management, template system and security protection. The specific usage includes the following steps: 1. Install Dedecms. 2. Configure the database. 3. Log in to the management interface. 4. Create content. 5. Set up the template. 6. Manage users. 7. Maintain the system.

What loopholes does dedecms have? What loopholes does dedecms have? Aug 03, 2023 pm 03:56 PM

DedeCMS is an open source content management system that has some potential vulnerabilities and security risks: 1. SQL injection vulnerability. Attackers can perform unauthorized operations or obtain sensitive data by constructing malicious SQL query statements; 2. File Upload vulnerability, attackers can upload files containing malicious code to the server to execute arbitrary code or obtain server permissions; 3. Sensitive information leakage; 4. Unauthenticated vulnerability exploitation.

How does dedecms implement template replacement? How does dedecms implement template replacement? Apr 16, 2024 pm 12:21 PM

To implement template replacement in DedecMS, you need to perform the following steps: Determine the template file to be replaced. Common files include index.htm, list.htm and show.htm. Create a new template file, retaining the DedecMS markup. Upload the new template file, overwriting the original file. clear cache. Refresh the site to see the changes.

Accurate and reliable dedecms conversion tool evaluation report Accurate and reliable dedecms conversion tool evaluation report Mar 12, 2024 pm 07:03 PM

Accurate and reliable dedecms conversion tool evaluation report With the rapid development of the Internet era, website construction has become one of the necessary tools for many companies and individuals. In website construction, using a content management system (CMS) can manage website content and functions more conveniently and efficiently. Among them, dedecms, as a well-known CMS system, is widely used in various website construction projects. However, sometimes we are faced with the need to convert the dedecms website to other formats, in which case we need to use a conversion tool

See all articles