升pr4 卖链接啦 20/month

腾讯微博 twitter 你好,欢迎光临! 

Tag Archives: wordpress

wordpress 完全自定义的前一页和后一页

2012.01.21 , , 5 Comments , 208 views

首先说previous posts link这个函数其实很好用~~

如果你没什么变态的要求或怎样怎样~~好像都可以满足了~不过我是觉得有时候非得用他的函数的样式然后有些麻烦~

说起来前一页和后一页完全只是一个链接而已~那么为什么我不能完全的去像写一个链接一样的去弄呢~

写这个的原因是我有时候觉得前一页后一页的那些title太长了不美观~想去截断~~感觉起来蛮简单的~~不过其实previous posts link这个函数还没到那么好用~~

截断的话是用的这个函数 mb_strimwidth

首先定义一个这样的函数:

For several reasons, including portability, reducing download size, and general code neatness, I like to make all links within a website root relative.

wordpress, on the other hand, seems to like absolute URLs for some reason. To clean this up a bit I have the following simple function in my functions.php file to strip the protocol and domain name from URL strings:

为什么我也不知道~~我只是copy过来的~~

然后就ok了~~

直接用了

你会发现这个像极了a的形式~~的确是这样~~就可以随便用了~~

代码真不好编辑·~算了~~自己去原来的地址看吧~~

via:http://www.456bereastreet.com/archive/201012/conditional_and_custom_nextprevious_post_links_in_wordpress/

http://www.456bereastreet.com/archive/201010/how_to_make_wordpress_urls_root_relative/

 

 

wordpress搬家中的一些问题

2012.01.20 , , No Comments , 130 views

首先就是一般的ftp下载上传~~数据库的导出与导入~~。。。基本上没什么需要变化的话这样就ok了。。。

如果换了个域名的话怎么办呢~~

1.数据库里的一些要修改的

搜索数据库里面的旧地址:比如    old.com    然后会出现一些表里面有这样的

然后就是在数据库里进行替换~~一个一个替换比较累~还是用语句吧。

1
UPDATE wp_posts SET guid = REPLACE(guid,'old.com','new.com');

这里面的wp_posts 是表名字,后面的guid是表里面的结构的名字。。。自己对应的表一个一个去替换吧。

这样基本上就ok了~~数据库搞定~对了,记得要把config.php这个文件的数据库地址名字用户名密码改下~~ icon redface wordpress搬家中的一些问题

2.301重定向

直接通过.htaccess来设置了,其他的办法可以Google下~

1
2
3
4
5
6
7
8
# BEGIN WordPress
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine on
rewritecond %{http_host} ^www.a.com[nc]
rewriterule ^(.*)$ http://www.b.com/$1 [L,R=301]
</IfModule>
# END

WP Turbo Version 1.3 (NULLED) – 又一个wordpress自动博客插件149$

2012.01.13 , , 4 Comments , 229 views

WP Turbo Version 1.3 (NULLED) - Autoblogging Plugin142017JBI WP Turbo Version 1.3 (NULLED)   又一个wordpress自动博客插件149$

WP Turbo is an auto blogging plugin for wordpress, Create niche blogs on any subject you can think of, mix in videos, music, affiliate products and more...

个人感觉这个插件还不错~不过有点类似模仿WP Robot的样子~~不过其实也差不多~后台选项也蛮多的~~支持的也和WP Robot类似。。。呵呵     总是用起来效果还不错~感觉还是WP Robot好用~不过看作者更新吧,毕竟售价149$。

另外WP Robot的可以看看这里~WP Robot 3.58最新破解版分享下载

Create a video blog, a lyrics website, a cookery site, a job listings board, a twitter aggregator, flash games portal or coupon codes site. You name it and there's a good chance WPTurbo can create it.

WP Turbo Features :
Amazon Module
Articles Module
ClickBank Module
ICodes Coupons Module
eBay Module
Eventful Module
Flickr Module
Heyzap Module
IMDB Module
Itunes Module
Jobs Module
LinkShare Module
Musixmatch Module
Oodle Module
PressRelease Module
Recipes Module
RSS Module
Twitter Module
Yahoo Answers Module
Yahoo News Module
Youtube Module

WP Turbo SALES PAGE     http://adf.ly/4iWIa

WP Turbo Version 1.3  DOWNLOAD:

WP Turbo