Weaving dream cms to advertising method for Dedecms V5.7

Source: Internet
Author: User

Dedecms 5.7 New release, down upload to the server installation finished, click into the background login interface, how many advertising chain, and landing interface has changed, previously can not take such ah. Follow the step by step steps to go to the copyright again to advertise it.

 One, the place Backstage landing page login.php advertisement chain.

1. View the HTML source file and find the ad section code as follows:

< div class = "Dede-iframe" >

< iframe name = "Loginad" src = "login.php?dopost=showad" frameborder = "0" id = "Loginad" scrolling = "no" marginwidth = "0" Marginheight = "0" width = "100%" > </iframe >
</div>

The above code corresponds to the/dede/templets/login.html section, delete it, and modify the Login.htm bottom copyright notice section.

Then modify the title Section code:

<title><?php echo $cfg _softname. " ". $cfg _version;?></title>

For:

<title><?php echo $cfg _webname;?>-Admin Login </title>

2, careful analysis found that "Login.php?dopost=showad" corresponds to the login.php 42nd to 46th line part of the code,

Remove this part of the code:

if ($dopost = = ' Showad ')
{

Include (' templets/login_ad.htm ');

Exit

}

and also to delete the corresponding "/dede/templets/login_ad.htm" template file, this file is redundant, the official addition of the advertising chain part.

PS: Many similar tutorials on the Web do not have this step ha. Just cancel the call and not really delete it.

3, the whereabouts of the landing or operation success prompt jump page information "Dede CMS prompt information!" ”

include/common.func.php 182 and 215 rows total two.

   Two, remove the background landing after the default home page ads

1, the main is to remove two parts: text chain advertising and development team statement.

Open index_body.php and find the following code:

<?php

Exit

} else if ($dopost = = ' Showauth ')

{

Include (' templets/index_body_showauth.htm ');

Exit

} else if ($dopost = = ' Showad ')

{

Include (' templets/index_body_showad.htm ');

Exit

}

?>

To be replaced by:

<?php

Exit

}

?>

Delete the corresponding template file "index_body_showad.htm" and "index_body_showauth.htm" in the delete template directory.

2, modify the template index_body.htm, involves the modification content: the title section/the advertisement chain part/development team part, etc., here omits the concrete step.

3, backstage top copyright information and links mainly modify the index_top2.htm and index2.htm two template files.

4, right column detail part of the place dedecms mainly involves 3 template files: sys_data.htm/sys_info_mark.htm/sys_info.htm.

5, remove the left column "System Help", modify the template file as:/dede/inc/inc_menu.php

=================================================================================

At this point, basically complete the background to the advertising chain and copyright operations, concise and refreshing dedecms5.7 background interface presented in front of us.

======================================================================

Weave Dream 5.7 Version of the copyright information for the previous version, the relative increase of a copyright information, is on the link to add the friend link to the copyright and some website advertising. So now you need to change 19 files in order to completely remove the copyright of dream weaving.

First, we'll first list the copyright files in the removal template.

1. Search page:

/templets/default/search.htm

/templets/plus/heightsearch.htm

/templets/default/advancedsearch.htm

2. Common Bottom Template:

/templets/default/footer.htm

3. Shopping Cart:

/templets/plus/car.htm

/templets/plus/carbuyaction.htm

/templets/plus/shops_action_payment.htm

/templets/plus/shops_buyaction.htm

4. List

/templets/plus/download_links_templet.htm

5. Select the wrong page

/templets/plus/erraddsave.htm

6. Friendship Links

/templets/plus/flink-add.htm

/templets/plus/flink-list.htm

7. List templates

/templets/plus/list_diyform.htm

8. Message board

/templets/plus/plus_foot.htm

/templets/plus/guestbook-admin.htm

/templets/plus/guestbook-user.htm

9. Publish a template

/templets/plus/post_diyform.htm

10. Recommended

/templets/plus/recommend.htm

11.RSS Subscription Map

/templets/plus/rssmap.htm

12 Bank account Information

/templets/plus/shops_bank.htm

13. Atlas Detail Page

/templets/plus/showphoto.htm

14. Site Map

/templets/plus/sitemap.htm

15. Detailed Content

/templets/plus/view_diyform.htm

16. Prompt information

/templets/plus/view_msg.htm

/templets/plus/view_msg_catalog.htm

17. Poll results

/templets/plus/vote.htm

Secondly, it is the copyright that prompts the information, modifies the copyright for own website.

/include/common.func.php

Finally, it is to remove the newly added friend link copyright.

First find the include/taglib/flinktype.lib.php file under the root directory

And then open the Find, the following code

$dedecms = false;

$dedecms->id = 999;

$dedecms->typename = ' weaving dream chain ';

if ($type = = ' Dedecms ') $row [] = $dedecms;

Delete the above text to save, the dream chain disappears.

Weaving dream cms to advertising method for Dedecms V5.7

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.