Support from Acquia helps fund testing for Drupal Acquia logo

Comments

JoeMcGuire’s picture

FileSize
4.47 KB
Accesslog table support

I’ve added support for the accesslog table

If the statistics module is enabled site administrators can then choose between the history and accesslog table.

The advantages of the accesslog table

  1. Control over how long records are kept
  2. Also records anonymous user traffic
Ankit22’s picture

FileSize
4.13 KB

I just want to know weather the way i have implemented this patch is correct or not?

thanks

JoeMcGuire’s picture

Doesn't appear to be. let me know if it's something I need to look at.

Ankit22’s picture

Can you tell me how to fix it?

or whats the problem?

thanks

Ankit22’s picture

FileSize
5.41 KB

I tried implementing it again...
can you have a look ...

thanks

JoeMcGuire’s picture

That looks like a winner

Ankit22’s picture

FileSize
5.55 KB

When i used this file mysite's /admin/settings/history_rec page went blank ... i guess some formatting trouble

Ankit22’s picture

that page is giving me a blank page ... can you tell me what are "-" signs in that file and
For example have a look at the following piece of code from ur patch

- function _history_rec_wrap_each(&$item) {
- $item = "'$item'";
+ switch(variable_get('history_rec_source', 'history')) {
+ case 'accesslog':
+ return history_rec_run_recommender_accesslog();
+ break;
+ default: // history table
+ return history_rec_run_recommender_history();
+ break;
}
+}
+

Now what does - means before that function

also

diff -upN ../old/history_rec/history_rec.module ./history_rec.module
--- ../old/history_rec/history_rec.module 2009-09-21 20:17:12.000000000 +0100
+++ ./history_rec.module 2010-04-22 14:47:32.000000000 +0100
@@ -111,11 +111,19 @@ function history_rec_run_recommender() {
if (empty($enabled_types)) {
return;
}

do the above mentioned piece of code needs to be added ...

thanks for quick response joeMcGuire

it would be gr8 help if you can explain anything from above mentioned queries.

danithaca’s picture

Sorry guys. I'm pretty occupied with daily work these days. Will take a look on the patch when I've got time.

Ankit22’s picture

I have been waiting for long ... still got no result :(

danithaca’s picture

@Ankit22, JoeMcGuire: May I ask you to be co-maintainers of the module? I'll focus my attention on improving the RecAPI module and might not be able to work on this module soon. Thanks. (http://michiza.com/blog/roadmap-recommender-api-module-and-helper-modules).

jm.federico’s picture

Status: Active » Needs review

Hi Guys

I'm co-maintaining this module now.

@Ankit22, read http://drupal.org/node/367392 for info about patches

@JoeMcGuire, are you using this module on a live site with your patch? Would like to know how it is working.

Cheers

Ankit22’s picture

I would love to. I have sent you a mail regarding the same.

apaderno’s picture

FYI, Ankit22 is now co-maintainer of this project.

danithaca’s picture

Version: 6.x-1.0-beta1 » 7.x-1.0-alpha1
Status: Needs review » Active

@ JoeMcGuire: Thanks for your patch. I can add you as as co-maintainer if you like to.
@Ankit22: I have added you as co-maintainer for the module. If you want to commit your patch, please do so on the 6.x-1.x release.

I'll add accesslog as a feature for 7.x-1.x release. Make the status as "active" for that.

JoeMcGuire’s picture

Hi Guys,

Sorry i wrote this patch for a project I'm not involved in any more. I'll let you know if I pick it up again but no plans to at the moment.

colinchan’s picture

Version: 7.x-1.0-alpha1 » 6.x-1.4
FileSize
8.08 KB
5.07 KB

Based on the patch submitted by JoeMcGuire, these are the updated files as applied to the 6.x-1.4 release, with a minor spelling tweak that was bothering me (changing "Aviod duplicate results" to "Avoid duplicate results"). From initial testing, it seems to work as expected.

Thanks Joe and Daniel!

danithaca’s picture

Title: take "accesslog" as browsing history input » take "accesslog" as browsing history input (6.x)
danithaca’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

This is feature is in the D7 release. D6 is not supported anymore. I'm closing the issue unless someone is willing to give it a shot.