Drupal 6 support
bneijt - March 18, 2008 - 00:06
| Project: | Content Recommendation Engine |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
Hi,
I would love to see Drupal 6 support for this module. Any comments on the how this is coming along?

#1
Me too and I would be willing to help sponsor future development. :)
#2
Sry fellas for taking so long getting back to you guys. I am very busy right now but I'm hoping to do update the 5.x versions and then start a new 6.x branch next week.
I happen to be working and going to school full time so Im in and out sometimes. But this is what I hope to start on monday.
#3
tracking
#4
Hello Scott! Any news on the update? Thanks
#5
Hi Scott,
I really hope you get the time to look at it, it would be greatly appreciated by the Drupal community!
I just built a web site with Drupal 5 and having looked at Drupal 6, I hope I don't have to go back to 5 8o)
Thanks
#6
subscribe!
#7
I really want to use this on http://blog.to.it , I would have a look at porting it myself, but I have issues to fix on my own module first. Anyone else want to give it a go. There are modules and documetation to help.
#8
FYI, I'll be porting this module over the next few weeks to Drupal 6. That'll be the start of some other planned enhancements I'll be working on for a client. Expect a patch soon.
#9
Any patches plz work of latest dev. I haven't settled on the new architure completely, but the new node recommendations requires views. So the port isn't straight forward, requires views work. I am hoping to touch on it soon, tackling a new related content module right now.
#10
Subscribing.
#11
I'm working on the upgrade right now. I've got all the code upgraded except for the tables and views. Question for Scott -- cre.module is trying to include a cre_query_obj.inc which wasn't in CVS. What's that? I'm supposing it's critical. If you have time today, it'd be great if you could push it into cvs.
BTW, what's the new related content module you're working on?
#12
+1
#13
Subscribing
#14
+1
#15
Someone should try running this module through the converter to see if it will work without major modifications. I doubt VotingAPI has changed much since their port, so there is a good chance of the automated port working fairly well.
See: http://drupal.org/project/deadwood
P.S. I cannot run deadwood because my hosting site has safe-mode enable for security.
#16
+1
#17
Attached is a start which was created using the automatic modifications made by the deadwood module and manual modifications made from suggestions by the coder module. Fill free to tinker with it...I will appreciate any help you can give.
Aside from the website being blank and nonfunctional, here are the errors I receive when attempting to enable cre module:
* warning: Invalid argument supplied for foreach() in /hsphere/local/home/cabanga/alittlebirdy.com/includes/common.inc on line 3279.
* warning: Invalid argument supplied for foreach() in /hsphere/local/home/cabanga/alittlebirdy.com/includes/common.inc on line 3200.
* Error in CRE table creation
* user warning: Table 'cabanga_birdy.sequences' doesn't exist query: SELECT id FROM sequences WHERE name = 'votingapi_vote' in /hsphere/local/home/cabanga/alittlebirdy.com/sites/all/modules/cre/cre.install on line 15.
* user warning: Table 'cabanga_birdy.cre_average_vote' doesn't exist query: INSERT INTO cre_average_vote (uid, sum, count) VALUES (1, 0, 5) in /hsphere/local/home/cabanga/alittlebirdy.com/sites/all/modules/cre/cre.install on line 31.
* user warning: Table 'cabanga_birdy.cre_average_vote' doesn't exist query: INSERT INTO cre_average_vote (uid, sum, count) VALUES (3, 0, 6) in /hsphere/local/home/cabanga/alittlebirdy.com/sites/all/modules/cre/cre.install on line 31.
I get the following suggestions from Coder:
@file block missing from all module files (http://drupal.org/node/1354#files)
Line 201 and 216: global variables (global $pos;) should start with a single underscore followed by the module and another underscore
There is also a long list of TODO's from Deadwood which have been added to the top of the module files.
I have only worked on getting the cre and node_recommendation modules functioning, since that is what I will be using. Comment_recommendation and user_recommendation are marked so they say they are not compatible with drupal 6.
#18
subscribing to this discussion
#19
OK. Deadwood would automatically changed:
include_once(drupal_get_path('module', 'cre') . '/cre_query_obj.inc');to
module_load_include('inc', ''cre'', 'cre_query_obj');This caused the module to break, so I had to remove the extra '' around cre:
module_load_include('inc', 'cre', 'cre_query_obj');Now it allows the website to function. Still doubt the module will work.
#20
This would be my plan for this: http://groups.drupal.org/node/12347#comment-61203
#21
Subscribing
#22
My plan ended up being more involved then I thought. I have similarity module ready for a release but CRE is still behind. The issue is, when a similarity between two nodes changes, so should all the recommendations for both those nodes. So basically, CRE has to adjust its recommendation cache to changing similarities and new votes.
I could go back to generating the recommendations at query time but that will involve some math at the SQL level that could really slow things down to much.
But its close, it allows for any similarity to be used as its basis, so you can use the search index, tags on a node, node title or votes as the basis for the recommendation.
(more similarities are coming as more gets put into similarity module or CRE itself).
#23
Glad to hear it's close! I'm checking out the D5 version now. I view this as a really useful module that seems to be fairly unique. You should try and enlist some co-maintainers! =)
#24
Keep up the good work, hope I can see a working version soon =)
#25
Subscribing
#26
subscribe!
#27
+1
#28
curious about how things are coming along? Seems like a very useful and unique module to me.
#29
For all people interested in this module, take a look at the "Recommender API"
Check the developers blog for a detailed explanation of this set of modules!
#30
I have just rolled this. The packaging script should get to it soon. The 6 dev version is very stable. Makes use of the similarity module.