插件支持:列表模板,標簽模板,內容模板,評論JS的調用模板,以及新出的內容頁評論ajax分頁顯示插件的調用。
插件安裝使用說明:
把userfun.txt里面的內容復制到 /e/class/userfun.php 文件里(放在<?php和?>之間就可以了。
調用說明:
1、在標簽模板、列表模板中的調用:
代碼:
1 | '.user_time($r[newstime],0).' |
2、在內容頁中調用
代碼:
1 | <?=user_time( $navinfor [newstime],0)?> |
3、在評論JS調用模板調用方法:
在評論JS調用模板把
1 | [!----pltime--] |
換成:
1 | <?=user_time( $r [saytime],1)?> |
然后打開e/pl/more/index.php ,找到:
1 | require ( "../../class/connect.php" ); |
下一行加入以下代碼:
1 | require ( "../../class/userfun.php" ); |
然后保存
4、在官方的內容頁評論AJAX分頁顯示插件中調用:
打開e/extend/infocomment/template/index.php
把:
1 | <?= $r [saytime]?> |
替換成:
1 | <?=user_time( $r [saytime],1)?> |
然后打開e/extend/infocomment/index.php 查找:
1 | require ( "../../class/connect.php" ); |
在下一行加入以下代代碼:
1 | require ( "../../class/userfun.php" ); |
新聞熱點
疑難解答