Posted in: 张贴于:
3,035 views 3035意见
Please note: This page was originally written in English.请注意:此网页最初是用英文写的。
The original post can be viewed原来的文章可被视为 here这里 . 。
Please note: This page was originally written in English.
The text has been translated using an online service such as Google or Babelfish.
The original post can be viewed here.
Ever wished you could get back a previous version of a web page? 以往任何时候都希望你能回到以前版本的网页? You can - quickly using google cache! 你可以-迅速地使用谷歌的缓存!
I was hacking my Wordpress comments.php file the other day and changes that I made didn’t work.我是黑客我WordPress的comments.php文件有一天和变化,我没有工作。 When I decided to back them out I realized I made too many to remove by hand - so I used a version I had on my local PC.当我决定回到他们我意识到我太多,消除手-所以我使用的版本我有我的地方电脑。 I thought it was the latest version.我认为这是最新的版本。 It turns out that the last time that I made changes I did it in through the theme editor in Wordpress, so my local version was really old.事实证明,我最后一次更改我没有通过它的主题编辑WordPress的,所以我当地版本很旧。
Last Month I wrote about creating上个月,我写关于建立 Rockstar Comments in Wordpress in 12 Steps的Rockstar在WordPress的评论在12个步骤 . 。 When I wrote that article I modified my comments.php file and placed a new block at the top of the Comment form showing readers that we reward comments.当我写道,第一条修改我的comments.php文件,并置于一个新的块上方的评论的形式展示的读者,我们奖励的意见。 Now those changes are gone!现在,这些变化都不见了!
I backup my site and I could dig up my previous version from a backup - but there’s an easier (and quicker) way.余备份我的网站,我可以挖我以前的版本从备份-但有更简单(快)的方式。 This has worked for me before when I made a change and needed to get back the previous version within a week.这很适合我面前时,我犯了一个变化和需要找回以前的版本在一个星期内。 With this method you can “restore a blog page” yourself!用此方法可以“恢复博客页面”你自己!
First you need the full URL of your page.首先您需要完整的网页。 Then paste it in google.然后将其粘贴在谷歌。 When the search result comes up just click on “cached” (which I have highlighted in red below):当搜索结果出现只需点击“缓存” (我已经以红色突出显示如下) :

When I clicked on it the google cache says that the page it’s showing me is from February 4th (and today is the 9th).当我打开了谷歌的缓存说,网页上的表现我是从2月4日(今天是第9次) 。 Perfect!完美!

When I scoll down the page I find the block of text that I need to recover.当我向下滚动一页我发现此段文字,我需要恢复。 I take my mouse and highlight it, and then right-click the mouse and choose “view selection source” (you can only do this in Firefox).我要我的鼠标,并强调它,然后右击鼠标并选择“视图选择源” (你只能做到这一点在Firefox ) 。

Once you do that just what you highlighted will he highlighted in the html code for you like this:一旦你这样做正是您将着重突出了他的HTML代码为您这样的:

I copied the div I had lost and pasted it back into my comments.php (on my local PC of course) and then made the changes in Wordpress.本人复制的专区我失去并粘贴回到comments.php我(在我的本地PC当然) ,然后作出改变WordPress的。 I have successfully recovered my page using google cache!我已经成功地收回我的网页上使用谷歌的缓存! This method also works if you somehow delete a page and don’t have it at all - google cache to the rescue!这种方法还不知如果你删除一个网页,并没有在所有-谷歌缓存救援! It’s not nearly as specific, but if you want to go back in time months or years这不是近作为具体,但如果你想回去时数月或数年 You can always check out the Wayback machine at the Internet Archive您可以随时检查机器的Wayback在互联网档案馆 ! ! My blogging mistake this time was not keeping a local backup copy of all my Wordpress theme files!我的博客错误这个时候是不是符合当地的备份副本,我的所有WordPress的主题文件! Editing them in Wordpress using the theme editor is handy, but overwrites the previous copy every time.编辑在使用WordPress的主题编辑方便,但覆盖以前的每一次复制。
Have a story about losing a page, post or content?有一个故事,失去一个网页,张贴或内容? Have a question?有一个问题? Please, comment now!请,评论了!



























February 10th, 2008 at 10:42 am 二〇 〇八年2月10日在上午10点42分
Thanks for the tip!谢谢您的小费! Glad I stopped by to drop kick your EC高兴我停止下降开始您的欧共体
spostareduro’s last blog post.. spostareduro最后的博客帖子.. Shari Voigt’s ?Strange but True? 丁沙福格特的?奇怪,但真?
February 12th, 2008 at 1:56 pm 08年2月12日在下午1时56分
I’ve had to use that trick more than once.我已经使用这种伎俩一次以上。 Once I used it to find out how to unlock a GM car stereo.当我用它来了解如何解锁通用汽车音响。 There is a phone call you have to make to do it.有一个电话,你必须作出这样做。 Then all you do is type in some numbers and it gives you a code.然后,所有你要做的就是输入一些数字和它给你一个代码。 The dealership charges for this.经销商收费这一点。 I found a forum post through Google, but GM got to the site first and took the post down.我发现了一个论坛后通过谷歌,但通用汽车公司到了现场,并第一次后下降。 Using ye olde Google cache, I saved myself what was $30 at the time.用你们olde谷歌缓存,我救了我什么是30美元的时候。 I don’t mind spending money, but paying someone to make a five minute phone call, too much.我不介意花钱,但付出的人作5分钟电话,太多。
Stephan Miller’s last blog post.. 斯特凡米勒最后的博客帖子.. Blog Monetization Strategies 博客商业化战略
March 12th, 2008 at 12:41 pm 08年3月12日在下午12时41分
I find the Wayback Machine bookmarklet very useful (link below, scroll down a bit).我觉得Wayback机书签非常有用的(下面的链接,向下滚动,有点) 。 You could also create a similar bookmarklet for a suitable Google search.您也可以建立类似书签适合谷歌搜索。
http://www.archive.org/web/web.php
kometbomb’s last blog post.. kometbomb最后的博客帖子.. Software Improvements That Made Hardware Better 软件改进,取得更好的硬件