Project:Path redirect
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

Hi, thanks for this great module!

I was wondering is it possible to increment a counter every time a redirect link is clicked?
Thanks!

Comments

#1

A counter would be very useful and informative. I wonder, that no one else would like to have this feature.

+1 for this idea

#2

Version:5.x-1.2» 6.x-1.x-dev
Status:active» postponed

New features should be made for the current version. Someone write a patch if you want the feature, otherwise I'm leaving this postponed.

#3

Version:6.x-1.x-dev» 5.x-1.2
Status:postponed» needs review

I have implemented redirect counter support. Find attached the patch for 5.x-1.2 version.

AttachmentSizeStatusTest resultOperations
counter.patch5.02 KBIdleFAILED: [[SimpleTest]]: [MySQL] Invalid patch format in counter_0.patch.View details | Re-test

#4

Version:5.x-1.2» 6.x-1.x-dev
Status:needs review» postponed

5.x is closed for feature requests

#5

can this be implemented in 6.x?

#6

Status:postponed» needs work

ok this is my first patch for 6.x-1.x dev
but you have to manually create the counter field in the database. int(10)
so far it seems to work
sorry if the patch are wrong.

AttachmentSizeStatusTest resultOperations
path_redirect.module.patch858 bytesIdleFAILED: [[SimpleTest]]: [MySQL] Unable to apply patch path_redirect.module_2.patch.View details | Re-test
path_redirect.admin_.inc_.patch921 bytesIdlePASSED: [[SimpleTest]]: [MySQL] 123 pass(es).View details | Re-test

#7

can someone help how to patch #6 the module so it can add the database changes when running in update.php ? I don't have a lot of drupal programming experience yet. It only has to add an Int field named counter.

#8

I think I have done the Git patch correctly.
This is for latest 1.x dev
Adds counter field to the database. You must use update.php.
Increments the counter field each time the redirect is used.
Displays counts in the redirect listings.

Please review.

AttachmentSizeStatusTest resultOperations
counter-265299-8.patch2.88 KBIdlePASSED: [[SimpleTest]]: [MySQL] 123 pass(es).View details | Re-test

#9

Status:needs work» needs review

#10

I tried it. Seems to work properly

#11

This is cool. Could this same concept lead to further reportage beyond counter, for instance, date, time, unique IP? I currently glean most of the redirect reportage from the core reportage (Top Pages), but it is tedious. I have specific redirects that go to external URLs and I am trying to capture and report back to my team not only how many have passed through the redirect but also individual date/time and IP. Suggestions?