I'm using the new buymeabeer-for-users setting for a site that does a lot of user-generated questions (as nodes) and answers (as comments). Right now the buymeabeer link is appearing below both questions (nodes) and answers (comments), but I just want it to appear below answers. Any idea what snippet in the buymeabeer.module code I would adjust/remove it from the node while preserving it for each comment? Or if there's a setting somewhere I missed?

Once again, thanks for the this extremely straightforward module, it really bridges a gap for our site.

Comments

yaph’s picture

Assigned: Unassigned » yaph

Uncheck the question node type on the buymeabeer settings, so the link is not displayed below the question. It should still be displayed on comments (answers) to questions.

fumbling’s picture

Thanks, sorry, I should clarify, as I already unchecked all the content types. I would like the link to appear below users comments, but not their new posts/nodes. Right now for users w/ buymeabeer turned on it shows on both their new nodes and their comments. Is it possible to restrict to just user comments?

yaph’s picture

I understand, there is no setting for that. You could hide the link below the node using CSS or hook_link_alter (http://api.drupal.org/api/function/hook_link_alter) to remove it from node display.
I see additional settings would be helpful here, maybe something like "show user link only in comments". What do you think would be a useful setting?

fumbling’s picture

That setting, just as you suggest it, would be perfect. I'm not savvy enough to do the hook link alter, but I work w/ a css guy that might be able to do it. Thanks again for your help.

yaph’s picture

I just released Buy me a Beer 1.1 Beta2 (http://drupal.org/node/388976) with the following changes:
show user link only in node links of enabled content types but in all comment links if buymeabeer_userbeer_enable is enabled.
So no additional setting is necessary.

fumbling’s picture

Thanks, downloaded, that did just the trick, appreciate it.

yaph’s picture

Status: Active » Closed (fixed)