Icons

azwildcat - June 10, 2009 - 23:20
Project:Kudos
Version:6.x-1.6
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hi,

I have a problem with the Kudos module in that the icon I want displayed when a user wants to give kudos is missing only on node reply. Other than that, all the icons I want displayed—give icon, rescind icon, and disabled icon—are visible. All of my icons are stored in sites/default/themes/clean/kudos/. When a user wants to add a new comment or reply to an existing comment, the icon does not display in the original node with the reply form present. It would be nice to have consistency throughout for aesthetic reasons and also so a user can give kudos even if he’s replying to a node. Any suggestions in how I can get the icons to appear when a user is replying to a node? Thanks.

#1

socki - June 11, 2009 - 00:53

Hi...

I just tried this locally, and I was able to duplicate it in one particular case. If you go in the admin configuration page (admin/settings/kudos), in the field "Filepath of kudos images:", make sure that there is a leading '/'. So instead of:

themes/garland/kudos/

Use:
/themes/garland/kudos/

The instructions appear to be incomplete in that regard.

Does this solve your issue?
-T

#2

azwildcat - June 11, 2009 - 01:46

Hi,

Same results. I tried /themes/clean/kudos/ and /sites/default/themes/clean/kudos/ and they don’t render any image at all, even in full node. When I did what the instructions below “Filepath of kudos images:” suggests, i.e., “This should be provided for kudos of type 'Form Icon' or 'Images'. For example: sites/default/themes/deco/kudos/ (Include the trailing slash),” it works, just not in the comment/reply page—and that’s the problem I have. Thanks.

#3

socki - June 11, 2009 - 02:22

That's weird. If you look at the source on the reply page. What is the url of the image that it is attempting to display? See the screenshots i've attached for what i mean.

AttachmentSize
Image path in source 72.81 KB
Reply form 28.91 KB

#4

azwildcat - June 11, 2009 - 06:19

Hey Champ,

I get this:

#5

azwildcat - June 11, 2009 - 06:20

""

#6

azwildcat - June 11, 2009 - 06:21

----

#7

azwildcat - June 11, 2009 - 06:22

img src="sites/default/themes/clean/kudos/thumbs_up.png" alt="Give Kudos" title="Give Kudos" name="kudos" value="Give Kudos" id="kudo-kudos-node-147" class="kudos_clicker kudos_give"

#8

socki - June 12, 2009 - 01:07

from that image tag, it appears that you are missing the leading slash. Please make sure that the setting for "Filepath of kudos images:" is set to:

/sites/default/themes/clean/kudos

Please update that setting, and then check what the image path is. Basically if there is the leading slash, it shouldn't matter what page you are on, the image should display all the same.

Note: in a future version, I will look to make this easier by having it be a file upload.

#9

azwildcat - July 20, 2009 - 06:45

Attached is what a user will see. I tried everything you suggested. Please help.

AttachmentSize
SDC10287.JPG 119.96 KB
SDC10288.JPG 208.16 KB

#10

socki - August 2, 2009 - 20:14

Do you have rescind enabled?

If so, you need to provide an icon for give as well as rescind?

Can you right click on the image and see what image path it is attempting to serve the image as? My inclination is still that that leading / is missing from the image tag, and thus when you are on the reply page, the image does not get properly resolved.

Sorry for all the back and forth.

-T

#11

socki - September 26, 2009 - 22:13
Status:active» closed

This appears to be functioning properly. Please reopen if this is still an issue you are facing. Thx.

 
 

Drupal is a registered trademark of Dries Buytaert.