Closed (fixed)
Project:
Google AdSense integration
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Feb 2009 at 23:16 UTC
Updated:
25 Mar 2009 at 11:55 UTC
I would like to allow revenue sharing on user blogs not just on their content. Is there a way to modify the code to do this?
Comments
Comment #1
netentropy commentedwow i figured it out , at least I think
I just added an || blog to revenue_sharing_basic.module
please let me know if you see potential problems anywhere
Comment #2
jcnventuraWell, according to this your new expression is the same as:
if ((!$node_uid) && (arg(0) == 'node' || TRUE) && is_numeric(arg(1)))which simplifies to:
if ((!$node_uid) && is_numeric(arg(1)))This obviously has severe side-effects on the code.
Can you try:
if ((!$node_uid) && ((arg(0) == 'node') || (arg(0) == 'blog')) && is_numeric(arg(1)))and see if that still works for you?
João
Comment #3
netentropy commentedok i will stick it in tomorrow morning and let you know!
Comment #4
jcnventuraDid it work?? I'm thinking about marking this as a duplicate of #120141: revenue sharing content types not working.
João
Comment #5
jcnventuraNo info received in two weeks. Closing the issue.