Project:Kudos
Version:6.x-1.6
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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.

Comments

#1

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

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

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

Hey Champ,

I get this:

Only local images are allowed.

#5

"Only local images are allowed."

#6

--Only local images are allowed.--

#7

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

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

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

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

Status:active» closed (fixed)

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

nobody click here