19
Feb
Author: Eric // Category:
WordPress
WordPress 出現 Fatal error: Maximum execution time of 30 seconds exceeded 是因為主機對程式的執行時間作了限制,解決方法如下 :
// 擇一使用即可,依不可行性排序
01. 自己的主機 or 虛擬主機且可以修改 php.ini
a. 修改 php.ini 裡 max_execution_time 的數值,重新啟動 Server
b. .htaccess 加上 php_value max_input_time 300
c. wp-config.php 加上 set_time_limit( 300 );
02. 虛擬主機 : 不可以修改 php.ini
a. .htaccess 加上 php_value max_execution_time 300
b. wp-config.php 加上 set_time_limit( 300 );
// 如果主機有安裝 suPHP
.htaccess file 的 php_value max_execution_time 300 改成 max_execution_time = 300
Ref :
01. PHP Runtime Configuration
02. PHP set_time_limit ( int $seconds )
04
Oct
Author: Eric // Category:
Free Teaching
Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /Path_to_your/www/wp-includes/functions.php on line 35
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /Path_to_your/www/wp-includes/functions.php on line 43
Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /Path_to_your/www/wp-includes/functions.php on line 35
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /Path_to_your/www/wp-includes/functions.php on line 43
Read more...
27
Sep
Author: Eric // Category:
Free Teaching
1. 如果想要讓圖片顯示在首頁的文章標題
a. 打開 ./wp-content/themes/Your_Theme_Name/index.php
b. 找到
<?php the_title(); ?>
c. 選擇下面任一種 code 加上
2. 如果想要讓圖片顯示在內文的文章標題
a. 打開 ./wp-content/themes/Your_Theme_Name/single.php
b. 找到
<?php the_title(); ?>
c. 選擇下面任一種 code 加上
Read more...
19
Mar
Author: Eric // Category:
Free Resource,
Free Teaching
00. 請同意閱讀後,不會修改掉Theme(風格)作者的資訊,感謝配合。
01. 有時候好不容易看中意一個 WordPress Theme,不幸的是把 footer.php 打開來卻發現,它怎麼變的鬼模鬼樣,不是一般熟悉的 PHP、Html 語法。這時如果你需要放廣告在最下面,或者需要放此空間由xxx提供、代管之類的文字,但 footer 又不能更改,且又不想改放在其它位置,這時你可能就會放棄這個好不容易看上的 Theme (風格),想著或許它不是我的 soulmate,所以又再一次踏上尋覓之路。如果你有上述的問題,且你的 footer 的編碼的方式是類似於 eval gzinflate base64_decode,就請照著下面的步驟來解決吧。
02. 請先連到 Decrypt or Decode eval gzinflate base64_decode
03. 原本footer.php大概是長的這樣
<? eval(gzinflate(str_rot13(base64_decode('................')))); ?>
04. 但我們只需要把中間的程式碼貼到上方大框框,然後按下Decode即可
eval(gzinflate(str_rot13(base64_decode('................'))));
05. 神奇的事情就發生了
?> <!-- Sidebar -->
<div class="sidebar sidebar-right">
<h3>Categories</h3>
<ul>
<?php noXD_list_categories('title_li='); ?>
</ul>
<h3>Blogroll</h3>
<ul>
<?php noXD_list_bookmarks('categorize=0&title_li='); ?>
</ul>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(2) ) : ?>
<?php endif; ?>
</div>
<!-- Sidebar -->
<div class="clear"></div>
</div></div></div>
<!-- /Main -->
<!-- Footer -->
<div id="footer">
<!-- Copyright -->
<div id="copyright">
<br />(c)Copyrighted <?php bloginfo('name'); ?>, All Rights Reserved.<br />
Designed by: <a href="http://www.reikimadrid.com">Reiki</a>
</div>
<!-- /Copyright -->
</div>
<!-- Footer -->
</div>
<!-- /Page -->
<?php noXD_footer(); ?>
</body>
</html><?
Read more...