New version is up

Events happening in the community are now at Drupal community events on www.drupal.org.
Scott Reynolds's picture

I have updated Node Recommmendation to fix some bugs in the page callback and to use teasers instead of a item list to list recommended nodes on the page. My hope of course is that node recommendation page becomes the front page of many drupal sites.

Summer of Code is offically over but I do intend to keep this list semi-updated with work on the recommendation engine. There are several different things I will be expanding the project to do. I plan on setting it up for VotingAPI's point system. And then writing a module that will work with e-commerce to add a VotingAPI 'point' to each purchase. This of course would allow the engine to draw relationships between content based on who bought what. (Which I think is particalarly cool and interesting).

doneThough my immediate first step is to change the 'date' functionality of node_recommendation module. Robert Douglass sugguested that I add the functionality to set it up so it recommends content that is less then a week old and etc which of course makes perfect sense. done 9/11

And of course, I swear at some point I am goin to sit down and write out the views stuff.

Please let me know if you are still using the engine, and if not what is holding you back from using it

Scott

Comments

Is there a 4.7.3 compatible version?

Anonymous's picture

Tried to install it but am getting errors. Imagine it is because I just don't have a compatible version. This is for 4.7.x CVS right? Not 4.7.3 stable?

Also, is there a way to limit the amount of time that recommended content is shown (e.g, 3 days, etc)?

Well you shouldnt be getting

Anonymous's picture

Well you shouldnt be getting install errors. What did it say?

Also, is there a way to limit the amount of time that recommended content is shown (e.g, 3 days, etc)?

Afraid not. But what will happen is you can say never recommend content that is older then 3 days old. Then in that case, in 3 days the recommend content will change. In fact, i bet it changes daily.

Thats me ^ (previous reply)

Scott Reynolds's picture

Thats me ^ (previous reply)

What did I do wrong?

joshmccormack's picture

I installed the module according to the instructions (moved everything into the modules folder, selected them in the modules screen, turned cron on, ran the update script).

Your Recommendations is only showing up for the admin user, and when I click on it I get the following:

Your recommendations
These are your personal recommendations

* warning: Missing argument 2 for node_recommendation_cre_query() in /blah/modules/node_recommendation.module on line 443.
* user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'GROUP BY d.content_id1 ORDER BY score DESC' at line 1 query: SELECT d.content_id1 as 'content_id',sum(d.sum+d.count*r.value)/sum(d.count) as 'score',n.title FROM cre_similarity_matrix d,votingapi_vote r,node n WHERE d.content_type1='node' AND r.uid=1 AND d.content_id1<>r.content_id AND d.content_id2=r.content_id AND r.tag = 'vote' AND n.nid=d.content_id1 AND n.uid <> GROUP BY d.content_id1 ORDER BY score DESC in /blah/includes/database.mysql.inc on line 120.
* warning: Invalid argument supplied for foreach() in /blah/modules/node_recommendation.module on line 421.

query failed node_recommendation_cre_query

Josh McCormack
Owner, InteractiveQA
Social Network Development & QA testing
http://www.interactiveqa.com
917.620.4902
AIM:
jmccormciti
Skype:
joshmccormack
Yahoo:
joshmccormack
Google Talk:
joshmccormack@gmail.com
Windows Live

My Severe Error

Scott Reynolds's picture

My silly error. With the changes I made to node_recommendation.module I forgot that I had to make changes to cre.module. Please redownload and all you have to do is copy over cre.module into your modules directory. You did everything right. Just my silly error.

As far as only admin being able to see 'Your Recommendations', go to administer >> access control and the perminsions for the node_recommendation

closer

joshmccormack's picture

Hey Scott,

Thanks for the help. I did what you told me, ran update.php, waited for the cron job to run. I now see the recommendation links & content for other users, I see Recommended Users, but when I click on Your Recommendations it takes me to a blank page. Using the back button I see this error at the top of the home page:

warning: Invalid argument supplied for foreach() in /blah/modules/node_recommendation.module on line 418.

Josh McCormack
Owner, InteractiveQA
Social Network Development & QA testing
http://www.interactiveqa.com
917.620.4902
AIM:
jmccormciti
Skype:
joshmccormack
Yahoo:
joshmccormack
Google Talk:
joshmccormack@gmail.com
Windows Live

Well, not quite sure whats

Scott Reynolds's picture

Well, not quite sure whats wrong with it but I have a feeling that I just fixed it. So please re-download and install just like before. I am a bit hazing though on your site configuration.

Does Recommend Users list any users? Do you have any node recommendation blocks active in admin >> block and if so are any of the displaying recommendations? Have there been any votes placed on any nodes yet?

Got a url for me to see?

Sorry this is being such a pain. I just rewrote the Your Recommendations page.

more info

joshmccormack's picture

Here's the URL: http://www.travelersdiary.com

I downloaded again, deleted old modules and moved new ones over. Ran the cron script.

Recommended Users is showing users, This User Recommends to You is working. I placed some votes. Your recommendationst still isn't working (blank page, and error that I mentioned previously).

In admin>access I have userreview module to allow create user reviews and edit own user reviews for authenticated users.

I created a user test with pass test that you can use to try stuff out.

Josh

Josh McCormack
Owner, InteractiveQA
Social Network Development & QA testing
http://www.interactiveqa.com
917.620.4902
AIM:
jmccormciti
Skype:
joshmccormack
Yahoo:
joshmccormack
Google Talk:
joshmccormack@gmail.com
Windows Live

Ok please create an issue here:

Scott Reynolds's picture

Please create a bug report here: http://drupal.org/node/add/project_issue/cre/bug

Supply server configuration, drupal version, php version, apache or whatever web server. As much information as you can think of for your server. I can not repilcate your error so i am goin to bug some powers that be in the drupal world and see what I did wrong. I am pretty sure it has to do with loading of a node.

Also please try turning on the General Node Recommendation block. I believe that will work and it will list recommended nodes. If it doesn't then that will be a huge clue into whats goin on.

Will do

joshmccormack's picture

I have Node Recommendation module turned on, and General node Recomendation Engine block is enabled.

I'll create a bug report.

Thanks!

Josh

Josh McCormack
Owner, InteractiveQA
Social Network Development & QA testing
http://www.interactiveqa.com
917.620.4902
AIM:
jmccormciti
Skype:
joshmccormack
Yahoo:
joshmccormack
Google Talk:
joshmccormack@gmail.com
Windows Live

SoC 2006: Content Recommedation Engine

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: