月度归档:2017年01月

wordpress wp-postviews统计插件

1、在管理后台搜索并安装统计插件wp-postviews

2、archvie.php、author.php、category.php、index.php、search.php、single.php、tag.php

<span class="tags"><?php the_tags('', ', ', ''); ?></span>

在该代码后面插入postviews统计调用代码

<?php if(function_exists('the_views')){the_views();} ?>

3、进行wp-postviews后台配置

4、查看配置效果

5、如果启用小工具,可以在侧边栏调用最新文章和最热文章,设置调用全部的,也可以调用某个或多个分类目录,调用功能强大。

wordpress利于SEO优化的十三个插件

第一个插件:all in one seo

是一款很多网友在使用的SEO插件,给文章添加关键词和描述时使用,也可以自定义标题。

第二个插件:WP No Category Base – WPML compatible

这个插件的主要功能是自动替换URL中的category字段,使用这个插件后目录层级就变浅了,更好的结构让蜘蛛更好爬行。

第三个插件:WP-PostViews

想知道哪篇文章更受到搜索引擎和网友们的青睐,安装统计插件才能知晓,要不就只能靠猜了。
继续阅读

Ubuntu 安装 Sublime Text 3

最新版 3.2 build 3200 已经解决了中文输入问题,正常安装即可。

安装

Install the GPG key:

wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -

Ensure apt is set up to work with https sources:

sudo apt-get install apt-transport-https

Select the channel to use:

  • Stable

    echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

  • Dev

    echo "deb https://download.sublimetext.com/ apt/dev/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

Update apt sources and install Sublime Text

sudo apt-get update
sudo apt-get install sublime-text sublime-merge

安装插件

插件来源:https://packagecontrol.io/installation

  1. Click the Preferences > Browse Packages… menu
  2. Browse up a folder and then into the Installed Packages folder
  3. Download Package Control.sublime-package and copy it into the Installed Packages directory
  4. Restart Sublime Text

配置代理

由于网站背墙,插件无法安装,此时需要配置一下 http proxy。

打开 Preferences > Package Settings > Package Control > Settings - User 菜单

编辑 Package Control.sublime-settings,添加两行:

// 改为真实IP和端口
"http_proxy": "http://127.0.0.1:8123",
"https_proxy": "http://127.0.0.1:8123"

Joomla: Blank administrator backend after login

I’m facing an issue when I try to migrate a Joomla installation to a different server. Let me first of all say I have copied all files from the old server to the new one, and migrated the Joomla database to a different server.

I’ve updated configuration.php to reflect the changes in the MySQL server.

When loading the site, it apparently works fine: connects to DB and allows all operations. However, when trying to access to the Joomla administration panel, and after successful login, an empty screen appears. There is no possible way to enter the backend.
继续阅读

WinSetupFromUSB多系统U盘引导启动工具

大多数情况重装系统的一般是U盘写入一个PE,网上找一个ghost系统,然后傻瓜式的一键安装,这个方法虽然方便,但是可能存在极大的风险,如今老毛桃、大白菜等PE均捆绑软件,锁定主页等行为,并且第三方ghost系统原本就植入了很多推广软件,更加推荐的做法是从官方下载原版镜像使用NT6等方式安装,不过最近发现一个神器WinSetupFromUSB可以制作多系统引导安装工具。

这个工具可以将多个镜像写入到U盘,包括windows、linux、PE等,只要你的U盘容量足够大,这些都不是问题,使用这个工具将将官方原版系统写入到U盘进行安装,保证系统的原汁原味,也不会受到任何第三方软件的捆绑。
继续阅读