Home > Article > CMS Tutorial > 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’);
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'; }
modified to:
if( isset($GLOBALS[’needwatermark’]) ) { $photo_markup = $photo_markdown = empty($GLOBALS[’needwatermark’]) ? '0' : '1'; } else { $photo_markup=$photo_markdown='0'; }
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所有内容加一个d2d2b210a5407ac94e29e6630a41a1bc网站所有内容c997cec9f4b83324a7145373fde865ba最大盒子,然后把97a7bc6002dc9d2a159c5395fc15378f 5db79b134e9f6b82c0b36e0489ee08ed加在这个最大DIV盒子之前,f6b949d1d65029da42cddc649276bc28 5db79b134e9f6b82c0b36e0489ee08ed放在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>
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!