post-page

WP Plugin: Where did they go from here?

117
responses
by
 
on
June 4th, 2007
in
WordPress, WordPress Plugins

If you have been paying attention to Amazon’s single product pages and if Amazon’s engineers have been doing their job well, you have most likely clicked on one of the links in the group of deep links called “Customers who bought this item also bought”.

This plugin tries to create a similar group of links for your blog. If you have enough links in your theme (Contextual Related Posts plugin comes in handy) for readers to explore, then as and when readers click on links, this plugin checks to see if it was referred from your blog, checks to see if it can identify a post or a page from the information it has and then adds a link to the referring page. I have been testing it on this blog for a few days while I iron out the bugs. Check out the pages and what grabs readers’ attention on various pages and posts.

Installation is very simple, just download, unzip, upload and activate. The plugin should automatically add the list to the bottom of every single page right before the comment form. Please refer to the plugin file for troubleshooting hints. Future development plans include an admin page to control the number of links, autoplacement etc.

Please let us know if you are using the plugin and whether you like it. Bugs should be posted here.

[EDIT] I have noticed a bug on some blogs and the following might be a quick fix. If your footer.php template file does not have the correct “actions” described, you will notice that the links are not generated and the N/A stays on the post. Take a look at the default footer.php in the wordpress theme folder and make sure the wp_footer() function is in your footer template. Basically, it needs to have the following line right before the close of the body and html tags.
<?php wp_footer(); ?>

New Version 1.3
Download Where did they go from here? v1.3

New Version 1.4
Download Where did they go from here? v1.4

Check out the updated plugin.

heading
heading
117
Responses

 

Comments

  1. Ashish Mohta says:

    Hi Mark, sounds like a good idea. I am using this plugin but have 2 questions about it

    1. How much time it takes to show up the link.
    2. I have removed hook added at the end ( that makes it appear just before commenents) and called the funcion instead. Doest it affect ?

  2. Jenny says:

    I like this idea. I’ma try it out on my site.

  3. Mark Ghosh says:

    Ashish, that should be fine.

  4. Just testing this out on Sciencebase, I’m just seeing N/A at the moment, but hopefully as visitors come and go it will begin to populate, there are 1000+ posts on that site to choose from so, hopefully…soon……

    db

  5. Klaus says:

    Hi,
    after activating the plugin I get under the line: Readers who viewed this page, also viewed: a little sign and N/A
    something went wrong ???
    Greetings
    Klaus

  6. Mark Ghosh says:

    Klaus, that is normal. Just click on one of the outgoing deep links in your blog and the NA should change to links.

  7. IngaOz says:

    Somehow it only appears on my single.php but not on index.php… Do you give me any advice how I can fix that? Thanks 🙂

  8. Ashish Mohta says:

    @Mark: I tried clicking some of the related links and re check it again. No links appear. Seems like it takes time. I will test it for a day and Will tell you if it works

  9. IngaOz says:

    Ok, I’ve found how to add that plugin to index page as well but now I can’t find how to add Contextual Related Posts plugin to index page LOL

  10. Mark Ghosh says:

    Ashish, sent you an email with the information in the edit in the post above.

    Inga, none of these plugins are meant or coded to be displayed on the front page. Doing so might break things and/or confuse your readers.

  11. IngaOz says:

    @Mark: oh… I see, ok, then I go and remove it from index.php better… Thanks.

  12. Ashish Mohta says:

    @Mark : Is there any restriction that it works with your Contextual Related Posts plugin. The wp_footer function is called in my theme

  13. Emre says:

    If my host lets me activate plugin,i will try it. 🙂
    It looks awesome.I must use it.

  14. Mike says:

    What would be really sweet is a mod that would coordinate the “related posts” and “also read” posts so they don’t overlap. I would guess that people are very likely to click on the “related posts” at the end, which would also put the post on the “also read” list more times than not. E.g. above, where the Jabberbot plugin post made it onto both lists. With a little tweaking, I would think someone could make the plugin look for overlapping posts and omit them from one list or the other.

    Great idea for a plugin, btw. Seems that it would be great for increasing page views within a site/blog.

  15. LcF says:

    It looks great. thanks

  16. Mark Ghosh says:

    Ashish, there is no co-relation between the two plugins. There are probably suppressed warnings that would help a lot in finding the bug.

  17. Ashish Mohta says:

    @Mark: Thanks for the update. I will be testing it for a complete day and lets see if it works. Will update you here

  18. LcF says:

    can’t get it to work… what did i missed?

  19. c0y0te says:

    Huh. I thought the title of this post actually referred to a story about where certain plugin authors went (e.g. started out writing plugins and look where they ended up!!).

    Guess I should pay more attention next time. 😉

  20. Doesn’t seem to work on my site.
    I manually removed the hook in the plugin file and added the show_where_they_go call to my comments.php but the links don’t show up.

  21. Mark Ghosh says:

    Affenheimtheaterbesitzer: Take a look at the edit at the bottom of the post. See if that is where things are breaking. There might be another bug I have not quite pinned down yet. If you can turn on warning messages for your server, there should be a warning at the footer that would help a lot in debugging.

  22. Ian says:

    How do you move it up to where you have it? Right now it shows up underneath where a reader would comment on my blog.

  23. Jaypee says:

    I just installed this plugin and like Ian, I get the list between the comment box and the submit button. How do we customize it to have it display in a specific part of a post? Thanks!

  24. I agree with Ian: how did you have it appear at the top? My related entries are before my comments, and that would be the perfect place to put them.

  25. khrys says:

    Same question as Jaypee and lan … it shows under the comment entry. How do I move it up, just under the article ?

  26. Mark Ghosh says:

    Jaypee, Ian, khrys, do the following to achieve your objective:
    Remove the following line from the plugin:
    add_action(‘comment_form’,’show_where_they_go’);

    Add the following line to your single.php where you want the list to display:
    <?php wp_footer(); ?>

  27. @Mark:

    I tried it, and it didn’t work. It gave me a WP error, or it would show footer stuff in the wrong location.

    But I did find a way. I change it around in:

    add_action('comment_form','show_where_they_go');

    … to:

    add_action('show_where_they_go','comment_form');

    And then, I added the php string, as indicated in the plugin file, to the exact location I wanted in my single.php template:

  28. Mark Ghosh says:

    Michel,
    That works because the add_action is backwards in your case. Just remove that line and it should have the same effect. Glad you got it working! 🙂

  29. Jaypee says:

    Thanks Mark! It’s now working perfectly on my blog. 😀

    What I did was:
    1. Remove this line from the plugin file – add_action(‘wp_footer’,’add_wherego_count’);

    2. Copy this line of code to where I want it to be displayed –

  30. Ashish Mohta says:

    I removed both the hooks, Add the hook add_action(’wp_footer’,’add_wherego_count’); to where I want to display….doesnt work still

  31. khrys says:

    Well, I actually read your instruction in the php file, and those worked. I also commented out the add_action(’comment_form’,’show_where_they_go’); part.

    Now it shows, but it seems to always be N/A … I guess it takes some time to change …

  32. Paul Bradish says:

    Sounds like a great plug in (found this off of Digg). Thanks for sharing!

  33. Carlo says:

    Please, move the “Readers who viewed this page” inside the if block that follows.
    I can provide the trivial patch on request.
    Thanks

  34. Bruce says:

    I installed and activated, but nothing happens. I like the idea though.

  35. Bruce says:

    Ohhhh I get it… This only works if comments are enabled. I wonder how to change this to make it work with comments disabled.

  36. Pande says:

    I’m getting this error;
    Warning: unserialize() expects parameter 1 to be string, array given in /home/mydomain/wp-content/plugins/wheredidtheygov1.php on line 63

    Can you help me Mark?
    Thanks.

  37. Mark Ghosh says:

    Pande, wonderful catch! Fixed bug and uploaded new version 1.3
    Please let me know if that works.

  38. Pande says:

    The plugins still says it’s Version: 1.2

  39. IngaOz says:

    So, is it better to even if I didn’t see any errors with previous one?

  40. IngaOz says:

    Gosh, part of my comment was gone :-S The question was: is it better to upload new version now even if I didn’t see any errors with previous one?

  41. Mark Ghosh says:

    Pande, it should say 1.3. I just checked it again.
    Inga, it would probably make sense to upload the new one since the bug might have caused some problems.

  42. mike says:

    Also translated this one, contact me if you want the file

  43. Pande says:

    I did what you recommend in comment #28 but still getting similar error at the bottom of the page:
    Warning: unserialize() expects parameter 1 to be string, array given in /home/myURL/wp-content/plugins/wheredidtheygov1.php on line 64

  44. GammaBlog says:

    This is fun. Thanks.

  45. Still seeing the N/A on Sciencebase.com with this plugin, even after rendering the suggested patch, I was hoping to blog about it and trackback here with my success story, but unfortunately that will have to wait till someone suggests another fix…

    db

  46. Carlo says:

    I’ve just let on
    http://perassi.org/2007/06/06/.....go-plugin/
    a simple patch for the users that don’t want to see the “N/A” that appears when $lpids is 0

  47. Pande says:

    Now is OK, but I can’t place the list of article where I want. If I call and delete the line you said get an error.

  48. Matt Keegan says:

    This looks good to have. I have been running Auction Ads for some time and have wanted to include Amazon on the site too. I shall give it a try!

  49. Jason says:

    This Plugin is a great idea and works nicely for me.
    The default installation didn’t mesh well with my theme so I did the following:
    1) commented out the this line in the plugin:
    add_action(‘comment_form’,’show_where_they_go’);
    2) added this function call to my single.php file:
    show_where_they_go();

    That allowed me to place the list wherever I wanted without having to worry about my severely hacked footer getting in the way of things.

  50. Rich Tatum says:

    I’m interested, but I’m worried about a couple things:

    1) How much database bloat will this cause if I install it, and where’s the data stored? A unique table that I can easily clear out, or a new field in the posts table?

    2) Does it track both inbound and outbound views? (In other words, when a visitor clicks from page A to page B, do both page A and B show the relationship?)

    3) Does it use a cookie to determine page relationships over time so that if I visit page A on Monday then return to visit page C the next week, will it register a relationship? Or is it only tracking referrers from within my site?

    Looks interesting, but if it’s only going to show people the links that already exist on-page, then it’s information overload.

    Rich
    BlogRodent

  51. Hi:

    I’m having the following error message at the end of the blog:
    “Fatal error: Call to undefined function: attribute_escape() in /home/.august/ultrapodcaster/ultrapodcaster.com/wp-content/plugins/wheredidtheygov1.php on line 49”
    Any ideas? Thanks! I’m using WP 2.0.2

  52. Mark Ghosh says:

    Alejandro, you really need to upgrade your version of WordPress.

  53. Cool plug-in, thanks. I use it on my site but have modified your code so that the header and links appear only when there is something to link to. IMHO, there is no need for an “else” statement. Take a look:


    if ($lpids) {
    echo "Readers who viewed this page, also viewed:";
    foreach ($lpids as $lpid) {
    echo ''.get_the_title($lpid).'';
    }
    echo "";
    }

    You might think about doing this for your next patch release of the plug-in.

  54. starlounge says:

    Hey! its a very cool plugin, but it doesnt run on my blog 🙁 i have already checked this thing with the footer … everything is allright. some error should occur in the add_wherego_count() function, because it doesnt even wright the meta to the post. i’ve tried to echo the $id = $post->ID but it returns an empty value. $matchvar returns 1.

    please help ^^

  55. nchenga nchenga says:

    i’m getting N/A all the time.
    checked my footer… that seems to be ok.

    Any further ideas?

  56. Jens says:

    This Plugin sounds nice, but it does not work in my wordpress. I checked footer. I added a debug-message in the function add_wherego_count. The message is written in the blog, so the function had started, but it makes no entries in the database. Any suggestions?

  57. Jens says:

    Ok, my error_reporting was switched off. Now I can see, whats the problem: I have to update my wordpress because a function is not defined. 🙁

  58. Great Plugin! … and I got it to work, but I had to make a code change to a line that seems to have a typo.

    I downloaded ver1.3 from the link above and it wouldn’t store anything in the db. always said N/A.

    changed $sitevar = str_replace("/","\/",$sitevar); to $sitevar = str_replace("/","",$sitevar); and it started working.

    I’m confused as to how it ever worked for other people, but happy that it works for me now. 🙂

  59. yoichi says:

    mmm…This is strange.
    The plugin was working beautifully until last year.
    But data is not being updated since Jan 1st 2008.
    Does anybody have a fix to this?

  60. yoichi says:

    Oh, by the way one specific post appears for all the entry since Jan 1st.
    Would really appreciate any suggestions.
    Thanks 🙂

  61. foelin says:

    Thank you for this pretty good plugin!
    But i get a problem, that is it occurs below the comments form…
    So, i made some change of your plugin~~

    • Dave says:

      I have the same problem. The plugin is beneatht the comments box on my pages too. What changes did you make to make it run smoothly?

      Cheers

      Dave

  62. foelin says:

    This plugin is pretty good!
    But i got a problem, that is it appears below the comment form…
    So i made some changes to make it running well.

  63. Jamie@queerspace.com says:

    I’m getting the following error message:

    warning: unserialize() expects parameter 1 to be string, array given in /home/xxxxxxxx/public_html/wp-content/plugins/wheredidtheygov1.php on line 97

    I think this coincided with the upgrade to 2.6, though I’m not positive of that. Any ideas?

  64. Mark Ghosh says:

    Probably does have to do with 2.6 Jamie, Look for an update soon.

  65. nik says:

    I’ll confirm that WDTGFH has been quirky since I upgraded to WP2.6. Three different cases. Strange thing though is that on some pages it works no prob, others gives the same error Jamie’s getting. I’ve not been able to figure out a pattern.

    Looking forward to the update though. Thanks!

  66. ajua says:

    Thanks. I will try it locally before uploading it to my server.

  67. Kate Davis says:

    I like the sound of this plugin, but was wondering if it was possible to change the location from the bottom of the page; I am interested in having it in the sidebar.

    Thanks

  68. dohkoos says:

    I downloaded version 1.4 from the link above and tried it. But I got a warning “Invalid argument supplied for foreach()”

    I add a line code after:
    $lpids = get_post_meta($post->ID, ‘wheredidtheycomefrom’, true);

    $lpids = unserialize($lpids);

    Now, It’s working perfectly on my blog.

    BTW: The WP version used is 2.3.2

  69. Johnny C says:

    Hi Mark! I’ve been having a problem I didn’t see related here… my blog shows the links, but inside the commentform! only problem is, my commentform is configured to not showing as default.

    Check it out: http://www.proveisso.net/2008/.....s/#respond

    anyway to work it around?

  70. This plugin was not working in my localhost and in live then I edited this line and works like a charm

    //$matchvar = preg_match(“/$siteurl/i”, $sitevar);
    $matchvar = true;

  71. I am using version 1.4

  72. Carl Nelson says:

    It works for me, but without being able to style DIV tags, I can’t make it work well with my theme. Too bad, this would be a cool plugin otherwise 🙁

  73. fahirsch says:

    It works in the site I am testing it on, but below the comment form.
    Also, is there a way to make it appear on the main page where the latest posts ar shown?
    Thanks for this plugin
    Francisco



Trackbacks/Pingbacks

  1. […] Source:Weblog Tools Collection If you have been paying attention to Amazon’s single product pages and if Amazon’s engineers have been doing their job well, you have most likely clicked on one of the links in the group of deep links called “Customers who bought this item also bought”. This plugin tries to create a similar group of links […] Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages. […]

  2. […] The plugin is located here: where-did-they-go-from-here […]

  3. […] http://feeds.feedburner.com/we.....ction/UXMP info: Weblog Tools Blogging Tools Blog – WP Plugin: Where did they go from here? WP Plugin: Where did they go from here? WordPress Plugin Competition […]

  4. […] Find out where your readers went (within your blog at least) with this cool plugin: Where did they go from here? […]

  5. […] just started using this “Where did they go” plugin for WordPress: it works but I wrote a simple patch for it as previously described here. The A simple patch for […]

  6. […] more stats and more attention from blog readers. I already have installed them both on this blog. WP Plugin: Where did they go from here? – This plugin tries to create a similar group of links for your blog. If you have enough links in […]

  7. […] mycket intressant WordPress plugin med namnet Where did they go from here? har släppts av Weblog Tools Collection. If you have been paying attention to Amazon’s single […]

  8. […] haven’t already grabbed it, download and install a Related Posts plugin and then install the Where Did They Go From Here […]

  9. […] exam time, I’ve made a couple of subtle changes to my site, mostly in the form of adding cool plugins and hacking them. The main changes are: you’ll see that little sidebar on a lot of […]

  10. […] Si es la primera vez que nos visitas, te puedes suscribir a nuestro feed RSS aqui. Gracias por tu visita![Entrada traducida. Original] […]

  11. […] 如果有注意过亚马逊(国内是卓越网)单一产品页面下面,你就会发现在每个商品下面有:查看此商品的顾客也查看了,这里显示了一组查看过此商品的顾客同时查看过的别的商品的链接,记录读者的访问记录,这是非常好的一个增加博客的粘性的非常的方法,那么怎么实现呢?你可以使用这个插件:Where did they go from。这个插件安装非常简单,下载,上传到你的插件文件,激活之后,一段时间(几个小时或者几天,看你的博客的点击量)之后,它就会在留言框前显示读者浏览记录(原作者是这样说的,但是我安装之后显示在留言框后面)。如果你想自己定义他出现的位置,你可以把 add_action(’comment_form’,’show_where_they_go’); 注释掉,然后在你想显示地方(一般我喜欢把它放在 single.php 文章的后面)输入以下代码: 。另外默认情况下它最多显示5篇日志,你可以修改插件文件中的 $maxLinks 这个变量为你想要的数字。 […]

  12. […] 以下插件始终不能用, Extended Live Archives,改掉archives模板再写出的页面,怎么也出不来ELA的东西。 Gravatar,换了一个主题,把csså’Œcomment.php已经改了,可还是出不来头像。 Emotions,也是换了主题就出不来了。改死comments.php没反应。 Where did they go from here,这个就更恶心了,老是N/A显示在下面,搜了解决方法改了footer也不行。 […]

  13. […] Where did they go from here? Tai truputį kitoks nei kiti čia pristatomi įskiepiai. PagrindinÄ— jo užduotis – kiekviename straipsnyje registruoti į kuriuos puslapius perÄ—jo skaitytojai ir pateikti penkių dažniausiai aplankytų puslapių sÄ…raÅ¡Ä…. Ä®skiepis dar labai jaunas, todÄ—l turi daug trÅ«kumų. […]

  14. […] 我前面写过一篇关于如何增加你博客粘性的日志,其中提到了三个插件:Where did they go from,Contextual Related Posts å’Œ Random Posts,它们分别用于记录读者在你网站上的浏览记录,显示相关日志和显示随机日志。很多阅读过这篇日志的人也去安装了这三个插件,不知道是否增加了它们博客的粘性(有人说粘性这个词让他想到了电影异性,我对此无语!)。但是还是有些读者安装时候碰到了些问题,于是我想这三个插件在增加网站的粘性都做的不错,不如把这三个插件整合在一起,并且把名字去做 WP-Stickiness。当然了,如果你不认同,你完全可以认为这并不是一个插件,但是我制作它完全是为了能够让大家能够方便使用。 […]

  15. […] ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????Where did they go from??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? add_action(’comment_form’,’show_where_they_go’); ??????????????????????? single.php ????????????? <?php if (function_exists(’show_where_they_go’)) show_where_they_go(); ?>?????????????5??????????????? $maxLinks ???????????? […]

  16. […] ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????Where did they go from??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? add_action(’comment_form’,’show_where_they_go’); ??????????????????????? single.php ????????????? <?php if (function_exists(’show_where_they_go’)) show_where_they_go(); ?>?????????????5??????????????? $maxLinks ???????????? […]

  17. […] Here is a perfect example of why I love plugin developers! Weblog Tools Collection has released a new plugin that should help you really increase the stickiness of your site: Where did they go from here? […]

  18. […] Where Did They Go From Here: Works with related posts to show where other readers went after reading the current post. Useful for you to track visitor behaviour, and a useful way of showing the reader further posts of interest. […]

  19. […] ?????“?????”?Where did they go from?Contextual Related Posts ? Random Posts??????????????????????????????????????????????????????? […]

  20. […] 217) Where did they go from here? […]

  21. […] For more information and to download it visit: Where Did They Go From Here  […]

  22. […] ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????Where did they go from???????????????????????????%E […]

  23. […] ???????????????????????????????????????????????????????????????????????????????????????????????????????????????Where did they go from???????????Contextual Related Posts?????????? Random Post??????????????????????????????????????????????????????????????????? ?????? ??????????????????????????????????????????????????? WordPress ?????????????????? Cookies ?????????????????????????"Welcome back, user!" WordPress tip????????????????????????????? Who See Ad??????????????????? […]

  24. […] 227 Where did they go from here? […]

  25. […] ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????Where did they go from??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? add_action(’comment_form’,’show_where_they_go’); ??????????????????????? single.php ????????????? <?php if (function_exists(’show_where_they_go’)) show_where_they_go(); ?>?????????????5??????????????? $maxLinks ???????????? […]

  26. […] Where did they go from here? : Proposer une liste de liens comme : Visiteurs qui ont regardé cet article, ont également consultés (liste d’articles). […]

  27. […] in the first place. Every site that refers you here, every post you click on, every page you visit, every link you follow, every comment you make, every post you rate and every search you perform is recorded and is used […]

  28. […] ??????.???????Where did they go from.?????????????????.??????????:????: […]

  29. […] Emotions???????????????comments.php???? Where did they go from here???????????N/A??????????????footer???? […]

  30. […] May 27th, 2008 at 12:13pm ???? ??: 2 Where did they go from here? ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ??????????????????????????????????????????????????????? single.php ????? show_where_they_go() ????? […]

  31. […] Where did they go from here? is awesome plugin which can display a list of posts that readers who viewed this post, also viewed. But there is a small bug in the plugin, it will record the Pages. I don’t think it is good idea. Because every page in blog have the Pages links, then there will be lots of Pages link be displayed on such lists. I have made a small modification for the plugin, now it can only record post, and disable the function which can automatic insert the list brefore comment form. You need add the function show_where_they_go() in the single.php file of your WordPress Theme. […]

  32. […] subscribe to our feed! You can also receive updates from this blog via email.I have updated my Where did they go from here Plugin to make it compatible with WordPress 2.6 and beyond. The plugin adds the small list of links […]

  33. Leonaut.com says:

    Where did they go from here?…

    The plugin adds the small list of links to the bottom of each post, as on this blog, of places within your blog that visitors went to after visiting a particular post. This emulates an Amazon functionality of similar nature….

  34. […] In the spirit of sharing, today I’d like to introduce to you a plugin – I’m not too sure if it is the first of its kind but it certainly caught my attention – aptly named Where Did They Go From Here? […]

  35. […] Where did they go from here? 1.4 Show “Readers who viewed this page, also viewed” links on your page. Much like Amazon.com’s product pages. This plugin is currently broken with WordPress 2.7. But normally, it would display a list of other posts readers have viewed. […]

  36. […] in 2007, Mark released a plugin that would help you display the same on your WordPress […]

  37. […] 241 Where did they go from here? […]

  38. […] Where did they go from here? 1.4 Show “Read­ers who viewed this page, also viewed” links on your page. Much like Amazon.com’s prod­uct pages. This plu­gin is cur­rently bro­ken with Word­Press 2.7. But nor­mally, it would dis­play a list of other posts read­ers have viewed. […]

Obviously Powered by WordPress. © 2003-2013

css.php