http://drupal.org/node/940532
This patch is intended to improve theming of widget. Now we can override individual widget (fivestar,yesno etc) by copying existing template from templates/ into your theme directory.

CommentFileSizeAuthor
rate-theming-940532.patch10.89 KBymakux

Comments

giupenni’s picture

Works like a charm!!!

Thanks!

geetotes’s picture

Awesome! Just what I was looking for, and it works! Thank you!

eigentor’s picture

Well, one could do this before, only if one kept the strange naming convention with prefixing the template name with rate_template_

therobyouknow’s picture

"Works like a charm!!!"

"Awesome! Just what I was looking for, and it works! Thank you!"

- Folks, pleased it works fo you, but could you enlighten me on how it works for you, please? Examples?

The other link, http://drupal.org/node/940532 gives no clues except for snippets of code that are unrelated.

To the patch maker (primarily or other folks please comment too):
I presume this patch enables us to override the output of rate in our own theme such that we can insert markup for a title above the five-star, for example?

i.e. the override code would go in our own theme, here, for example: sites/all/themes/mytheme/template.php

If so can you supply the function to override?

hachesilva’s picture

@therobyouknow:
You must use 7.x-1.x-dev version of the module. Then, you patch it using git (https://snipt.net/hachesilva/applying-a-patch-from-drupalorg-in-2-second...) or watherver tool you use for that purpose.

After patching your module, yo can copy files from the module's template folder to your theme. Modify the file you copied and clear caches.

Worked for me.

therobyouknow’s picture

Thank you @hachesilva which of the patch did you apply yourself for it to work - there are several mentioned in: http://drupal.org/node/940532 or was the patch from somewhere else? I couldn't see your name in the comments so I am not sure - please give the URL to the page that links to the patch that you applied.

(By the way, @hachesilva, thank you for the link on applying patches - tips like these are always very welcome though I am fairly familiar with applying patches, a different example of my applying a patch here: https://drupal.org/node/1244204#comment-6678836

hachesilva’s picture

I used this one: https://drupal.org/node/940532#comment-6950932, that is the same linked at the top of this thread.

therobyouknow’s picture

Thanks @hachesilva !

mxt’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

Provided patch works for me also.

4 confirmations can allow RTBTC.

Can this be committed please?

Thank you very much!

nikit’s picture

Provided patch is working nice. Commit please.

mauritsl’s picture

Status: Reviewed & tested by the community » Fixed

Patch is committed to 7.x-1.x and included in the 1.7 release. Thanks!

Status: Fixed » Closed (fixed)

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