Patch to support content profile module

mariusooms - October 29, 2008 - 09:35
Project:User Visits
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

Here's a patch that modifies the Drupal 6 version to support the Content Profile module. It also removes support for usernode and nodeprofile. These module have been replaced by content profile.

Please review this minor change.

Regards,

Marius

AttachmentSize
user_visits_content_profile.patch537 bytes

#1

GolDRoger - May 12, 2009 - 22:10

mhhh I've tryed to install the patch but continue to fail.

Maybe something wrong in the file patch?

#2

tberger97 - September 16, 2009 - 12:39
Category:feature request» bug report

I believe the patch is missing the closing } for the if statement. Add that and should be good to go. Code I used is below.

if (module_exists('content_profile') && is_content_profile($node->type)) {
           //Don't count if role is hidden
           if (!user_visit_is_hidden($user)) {
             $referer = referer_uri();
           }

#3

GolDRoger - September 23, 2009 - 13:46

mhhh I tryed to apply the patch but still continue to showing me tish error (see attached file)

AttachmentSize
error.jpg 52.7 KB
 
 

Drupal is a registered trademark of Dries Buytaert.