HI,

I want to know if it is possible to use the token module for revenue sharing between us and our node authors.

Is it possible to create a token that will replace the token by a custom profile value? I want to show our own profile field value 50% of the time, the profile field value of the node author 40% of the time and the profile field value of the author referrer 10% of the time.

Is it possible to do this with the token modules?

I'm sorry for my poor english.

Thank you.

Comments

greggles’s picture

Status: Active » Fixed

This is certainly possible, but would be up to your custom module to implement. Please see the API.txt file for details on how to implement hook_token_list and hook_token_values which provide tokens.

Christefano-oldaccount’s picture

This sounds like something that the Rep[lacement]Tags module can do.

greggles’s picture

It also sounds like something that token can do. I don't think we need to go following up in the other project's issue queue saying "me too" on every issue ;)

Christefano-oldaccount’s picture

Sorry, just trying to be helpful.

greggles’s picture

That's ok and I certainly appreciate the help. But you can imagine if we started the precedent of saying "could also be done with replacement module X".

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.