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