Closed (fixed)
Project:
Flag
Version:
6.x-2.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Oct 2009 at 06:03 UTC
Updated:
12 Nov 2009 at 14:30 UTC
After testing the current dev version with the new anonymous flagging code (works great! thanks!), my custom flag images don't appear any more. I was using this method from the handbook to replace the links:
http://drupal.org/node/305061
Do I have to adjust the code in some way?
Thanks for helping
Comments
Comment #1
quicksketchThe variable "flag_name_css" no longer exists in the 2.x version (all the classes are now grouped together as $flag_classes instead). Note that you'll need to delete/update any existing flag-*.tpl.php files you've overridden in you theme if you've done that also.
I've update the documentation to just use
$vars['flag']->nameinstead, which should work just as well, except that it uses underscores instead of hyphens (so it would be "flag-my_bookmark-on.png" instead of "flag-my-bookmark-on.png"). It won't make any difference if your flag name is a single word.So in short, open up your template.php file and in phptemplate_preprocess_flag() replace:
with
Comment #2
ju.ri commentedthanks a lot for the fast help! works great.