Please add token support for Unflag not allowed text field so we can put tokens in it, right now token is not replaced. If you can suggest a way to add it that would be great.

Thanks.

CommentFileSizeAuthor
#1 flag_access_denied_tokens.patch672 bytesquicksketch

Comments

quicksketch’s picture

Title: Please add token support for Unflag not allowed text field » Token support for "Unflag not allowed text" not working
Category: feature » bug
Status: Active » Fixed
StatusFileSize
new672 bytes

Thanks, token support was completely intended but we were missing a parameter to the get_label() method (which is responsible for replacing tokens). I've committed the attached patch which will be in the next beta.

Plazmus’s picture

Thanks for this patch works great!

There is one problem that I have with "Unflag not allowed text".

I set permission for Anonymous and Authenticated users to flag only, if I use i.e. "Display link on node teaser" then everything works great, when I use:
print flag_create_link('vote', $node->nid); in my tpl file, link is displayed if user clicks on it then "Unflag not allowed text" is shown and everything looks fine, but unfortunately after page refresh this text disappears.

You can see how it looks here

Status: Fixed » Closed (fixed)

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