How to add number of votes?

If you need help on how to use the program
Post Reply
jermine01
Posts: 7
Joined: 2012-04-04 18:45:22

How to add number of votes?

Post by jermine01 »

I just started using Ant movie catalog. I want to add the no. of votes that each movie receives from imdb. How do I do this? Thanks.
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Hi,
Do you have some programming knowledge? As that would require to modify the script for IMDb, if it does not offer that option...
jermine01
Posts: 7
Joined: 2012-04-04 18:45:22

Post by jermine01 »

Unfortunately, I don't know any programming. Isn't there any other way?
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Find someone who will modify the script for you then :D
jermine01
Posts: 7
Joined: 2012-04-04 18:45:22

Post by jermine01 »

I found out how to download the no. of votes in the imdb script but I don't like the way it is implemented.
jermine01
Posts: 7
Joined: 2012-04-04 18:45:22

Post by jermine01 »

I don't Like the way the User ratings and No. of votes is inserted in the field.

eg. Instead of 'User Rating: 8.0 out of 10 (with 426,493 votes)' I would like it to show as '8.0/10 (426,493 Votes)'

Is there any way to do this? Thanks.
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

Choose IMDB script from the list, then click editor button. Now find line

Code: Select all

Value := 'User Rating: ' + GetField(fieldRating) + ' out of 10  (with ' + Value + ')';
and replace with

Code: Select all

Value := GetField(fieldRating) + '/10 (' + Value + ')';
If you want to replace 'votes' (beginning with small letter) with 'Votes' (starting with capital letter), add following line behind the modified line:

Code: Select all

Value := StringReplace(Value, 'votes', 'Votes');
Remember that you have to do these changes again when there are future script updates.
jermine01
Posts: 7
Joined: 2012-04-04 18:45:22

Post by jermine01 »

Thanks :).
jermine01
Posts: 7
Joined: 2012-04-04 18:45:22

Post by jermine01 »

Can the color of the no. of votes be changed? Eg. 8.0/10 (426,493 Votes) instead of 8.0/10 (426,493 Votes)?
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Not in the program itself.
You could add HTML tags to make that appear that way when exporting to HTML, but then you would see the HTML in the text in the program.
Post Reply