Modified templates & plugins

Source: Internet
Author: User
ArticleDirectory
    • The plugin is modified as follows:

Tuesday, July th, 2006 @ · by Samuel Chen
Catalogs: maintaining

Some modifications have been made to the WordPress template and plug-in. The template uses almost spring. The modifications are as follows:

The template is modified as follows:
  • Comments. php:
    1. Add each 8 Comments to display an AdSense # page advertisement; PHP:
        1. <? PHP $ Comment_count=0;?>
      PHP:
      1. <? PHP // Display ad every 8
        Comments
      2. If($ Comment_count%8=0):
      3. If(Function_exists('Adsense _ deluxe_ads')):
      4. Adsense_deluxe_ads('Page');Endif;
      5. $ Comment_count. =1;
      6. Endif;?>
    2. Adsense # recommend advertisement is displayed at the top of the submit comment box; PHP:
      1. If ( function_exists ( 'adsense _ deluxe_ads ' ) ) :
      2. Adsense_deluxe_ads('Referend');Endif;?>
  • Index. php
    1. The author name display, date display, and category display are modified: PHP:
      1. <P
        Class="Postmeta"> </P>
      2.  
      3. <P
        Class="Postmeta">
      4. <? PHPThe_date() ?>@<? PHPThe_time() ?>
      5. &#183; <? PHP _ E ('by');?>
        <? PHP the_author ()?>
      6. <? PHPEdit_post_link(__('Edit'),'& #183 ;','');?>
      7.  
      8. <? PHP_ E('Tags :');?> <? PHPThe_category(',') ?>
  • Single. php
    1. The author name display, date display, and category display are modified:PHP:
      1. <P
        Class="Postmeta"> </P>
      2.  
      3. <P
        Class="Postmeta">
      4. <? PHPThe_date() ?>@<? PHPThe_time() ?>
      5. &#183; <? PHP _ E ('by');?>
        <? PHP the_author ()?>
      6. <? PHPEdit_post_link(__('Edit'),'& #183 ;','');?>
      7.  
      8. <? PHP_ E('Tags :');?> <? PHPThe_category(',') ?>
The plugin is modified as follows:
  • Adsense-deluxe:

    After installation, access is problematic; get the adsense-deluxe.php under plugins/, then delete the directory (only keep the file), OK.

  • IG-Syntax_Hilter:
    1. after installation, the directories in the Code do not match after decompression. Change the directory name to ig_syntax_hilite /, then, move all the files in the ig_syntax_hilite/
      (same name) directory to the upper layer and delete the ig_syntax_hilite/directory. The final directory structure is plugins/ig_syntax_hilite/, OK.
    2. Add background color for the code block, modify syntax_hilite.php, and add a layer

      /div>. automatic conversion of the WordPress editor is not avoided, I added a space after . PHP:
      1. $ Bbody = "
        class = \" alt \" " ;
      PHP:
      1. $ Bbody = " \n

      />"

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.