All Good Things Must Come To An End

As you all know, I have been doing WordPress plugins and supporting it for the past 6 years. These 6 years of my life, I have been through my polytechnic education, my national service as well as my university education.

I just graduated from university in December 2009 and have been looking for full-time jobs. I am offered a full-time job and will be starting work on 1st February 2010.

I regret to say that I am NOT ABLE to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

However, I WILL still update my plugins whenever I can and you still can report bugs to me via email and I will try to fix it.

Author Topic: Show the alt-Text of the result-image instead of the RATINGS_AVERAGE  (Read 1880 times)

0 Members and 1 Guest are viewing this topic.

Offline media

  • Newbie
  • *
  • Posts: 5
    • View Profile
  • WordPress Version: WordPress 2.8.x
  • Theme Name: Peruns Weblog Theme
   1. WordPress Version: 2.9
   2. Theme Name: Peruns Weblog Theme
   3. Blog URL: http://www.gitarrenlieder.info/

Hello to everyone.

I would like to show the alt-Text of the result-image instead of:

%RATINGS_AVERAGE% of %RATINGS_MAX%

(Admin-Panel > Ratings > Rating Templates > Ratings Vote Text)


Please have a look at this example: http://img683.imageshack.us/img683/1879/21168668.jpg


Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,692
    • View Profile
  • WordPress Version: WordPress 3.0.x
  • Theme Name: lesterchan.net v3.4
The alt text is hardcoded in the plugin you can't change it in the templates.

Open up wp-postratings.php at around line 1011, Find:
Code: [Select]
$post_ratings_alt_text = sprintf(_n('%s vote', '%s votes', $post_ratings_users, 'wp-postratings'), number_format_i18n($post_ratings_users)).__(',', 'wp-postratings').' '.__('average', 'wp-postratings').': '.number_format_i18n($post_ratings_average, 2).' '.__('out of', 'wp-postratings').' '.number_format_i18n($ratings_max); That is the code for alt text, you can change it from there.

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline media

  • Newbie
  • *
  • Posts: 5
    • View Profile
  • WordPress Version: WordPress 2.8.x
  • Theme Name: Peruns Weblog Theme
Thanks for your answer. I'm not sure if you understood me right.

I don't want to change the alt text. I would like to show the alt text of the (result) square image as normal text instead of "average: 3.95 out of 5"


Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,692
    • View Profile
  • WordPress Version: WordPress 3.0.x
  • Theme Name: lesterchan.net v3.4
My bad, after re-reading what you have wrote:
Quote
I would like to show the alt-Text of the result-image

and
Quote
I would like to show the alt text of the (result) square image

In the first place do you know what ALT text is? it is only text and not image.

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline media

  • Newbie
  • *
  • Posts: 5
    • View Profile
  • WordPress Version: WordPress 2.8.x
  • Theme Name: Peruns Weblog Theme
yes, i know what ALT text is. but my question was incorrect.

once again:

on my blog http://www.mojoba.de/blog/filme/ i want to use in the alt-text, what in the Ratings Templates is called  %RATINGS_TEXT%

But this doesn't work:

$post_ratings_alt_text = $post_ratings_text;


Source:

$post_ratings_alt_text = sprintf(_n('%s vote', '%s votes', $post_ratings_users, 'wp-postratings'), number_format_i18n($post_ratings_users)).__(',', 'wp-postratings').' '.__('average', 'wp-postratings').': '.number_format_i18n($post_ratings_average, 2).' '.__('out of', 'wp-postratings').' '.number_format_i18n($ratings_max);