Support anonymous user tracking (+ Improve frontpage presentation)

vstmusic - October 31, 2008 - 15:44
Project:Clickpath
Version:6.x-1.x-dev
Component:User interface
Category:task
Priority:normal
Assigned:Unassigned
Status:reviewed & tested by the community
Description

How make the block visible by anonymous users ? Possible ?

#1

vstmusic - November 5, 2008 - 05:51

No response ?

#2

coltrane - December 17, 2008 - 23:51

As the module stands there is a critical bug #216308: call to undefined drupal_get_path_alias but it otherwise works with anonymous users, you just have to set the permission for anonymous to see the block.

Note, the latest patch in that issue at this time would mean clickpath wouldn't work for anonymous users ...

#3

coltrane - December 18, 2008 - 17:54
Priority:normal» minor

Version 1.1 effectively keeps paths from being stored by the module for anonymous users. To provide anonymous user support there will need to be a solution to the problems identified in #216308: call to undefined drupal_get_path_alias. I am open to a solution but will not being pursuing one myself any time soon.

#4

dropchew - December 19, 2008 - 05:17

+1 subscribe

#5

coltrane - March 21, 2009 - 20:12
Priority:minor» normal
Status:active» postponed (maintainer needs more info)

Changing priority and status.

#6

arphaus - April 2, 2009 - 11:41

Subscribing

#7

dkruglyak - May 31, 2009 - 02:17
Version:6.x-1.0» 6.x-1.x-dev
Status:postponed (maintainer needs more info)» needs review

What more info is needed?

Seems to me this feature could work just fine if page caching is turned off. With caching turned off all the right modules would be loaded and the problem from http://drupal.org/node/216308 (call to undefined drupal_get_path_alias) would never show itself.

I propose to replace the check for $user->uid with a test for function_exists('drupal_get_path_alias') and be done with it.

Thoughts?

#8

coltrane - May 31, 2009 - 16:01
Status:needs review» active

I believe that would work fine, but needs a patch (hence status back to active) and testing.

#9

coltrane - May 31, 2009 - 21:21

I think there should be some help text in the README but probably also the admin page explaining that page caching must be off for clickpath to work for anonymous users.

#10

dkruglyak - June 2, 2009 - 12:01
Title:is it possible to extend this module to anonymous users ?» Support anonymous user tracking (+ Improve frontpage presentation)
Category:feature request» task
Status:active» reviewed & tested by the community

OK, I rolled the patch and everything works great for anon users, even with normal (not aggressive) caching on.

Note, I added another enhancement to this patch, concerning the home page treatment. The default behavior (hardcoded 'Home') is not very helpful. I added the ability to specify this string in module settings and if it is not specified, default to 'Home' and if it is set to nothing, use the site name.

Everything is tested and ready to commit.

AttachmentSize
clickpath.patch 1.61 KB

#11

dddave - September 16, 2009 - 23:16

RTBTC indeed!

Works like a charm. Thx!

#12

haveabreak - October 11, 2009 - 22:55

Could you attach full clickpath.module to work for anonymous users ?

#13

GiorgosK - November 16, 2009 - 15:10

patch from #10 works as expected

#14

GiorgosK - November 16, 2009 - 15:12

here is the 1.4 .module modified
everything else is the same

AttachmentSize
clickpath.module.txt 6.29 KB
 
 

Drupal is a registered trademark of Dries Buytaert.