Page 11 of 12

Rating problem solved

Posted: Sat Jan 06, 2007 12:57 pm
by zurban
' star images
Function ImagesForRating (rating)
i = parseFloat(rating)/20
If i >0 Then

j = Floor(i)
k = 0
While k<j
ImagesForRating = ImagesForRating & "<image src='star.gif'>"
k = k +1
Wend
If (Not i=j )Then
If i-j >= .5 Then
ImagesForRating = ImagesForRating & "<image src='star_l.gif' alt="& i &i &i &">"
End If

End If
End if
End Function



==> make the changes in skinfunctions.vbs (basic skin directory, the darkskin is using the same file

We´re getting warmer ...

Posted: Sat Jan 06, 2007 5:19 pm
by arcspin
Hi,
We are getting closer...but not yet still there.

First I would like to thank you for that addition to the skinfunction.vbs script.
It do work except that half starts are not showing correctley. I get a box with a lot of numbers in it instead of a half star.

Other than that it do work !!!



Thanx and hope you can fix the half star bug

Cheers,
//P

Posted: Sun Jan 07, 2007 2:31 am
by cadmanmeg
These seems really cool! Am going to download it now and check it out. But I am curious, when do you think it may get finished? I think the skinning part would be a great addition as well. Thanks for the work and sharing!

Posted: Sun Jan 07, 2007 2:37 am
by Fedaykin-
I'm not sure if this has been asked before, but here goes:

I get an error when starting up MM. The error message is:


An error has occurred in the script on this page

Line: 65
Char: 2
Error: Object required: 'SDB.Player.CurrentSong'
Code: 0
URL: file//C:\Program Files\MediaMonkey\Scripts\MonkeyRok\skins\basic\skin.html

Do you want to continue running scripts on this page? [Yes/No]

Basically I need to hit 'Yes' everytime I start MM and I'd like to avoid doing that. Does anybody have any idea what it may be?


Cheers.

Re: Rating problem solved

Posted: Sun Jan 07, 2007 9:49 am
by RedX
zurban wrote:' star images
Function ImagesForRating (rating)
i = parseFloat(rating)/20
If i >0 Then

j = Floor(i)
k = 0
While k<j
ImagesForRating = ImagesForRating & "<image src='star.gif'>"
k = k +1
Wend
If (Not i=j )Then
If i-j >= .5 Then
ImagesForRating = ImagesForRating & "<image src='star_l.gif' alt="& i &i &i &">"
End If

End If
End if
End Function



==> make the changes in skinfunctions.vbs (basic skin directory, the darkskin is using the same file
i've added the lines to both skinfuncitons.vbs but it still won't work. The stars were displayed correctly even before those changes.

Since it always stops at Album by artist and Albums featuring artist, i decided to uncomment those two lines from functions.vbs but now they stop at the loading simbol. It still hangs up tho.

Code: Select all

If Not lastPlayedArtist = SDB.Player.CurrentSong.Artist.ID OR Not lastPlayedAlbumID	= SDB.Player.CurrentSong.Album.ID Then
		'document.all("current_album_content").innerHTML = "<img src='loading.gif'>"
		document.all("albums_by_content").innerHTML = "<img src='loading.gif'>"
		document.all("albums_featuring_content").innerHTML = "<img src='loading.gif'>" 
		
		UpdateCurrentAlbum
		'### Uncommented here
		'UpdateAlbumsByArtist
		'UpdateAlbumsFeaturingArtist
	Else
		'update playing indicators in last album
		If lastPlayedAlbumID>0 Then UpdateAlbum(lastPlayedAlbumID)
		'update playing indicators in current album
		If SDB.Player.CurrentSong.Album.ID > 0 Then UpdateAlbum(SDB.Player.CurrentSong.Album.ID)
	End If
I'm completely clueless as what is causing it, since i can't really work through the script.aculo.us javascript.

If trix released a version with debugging i'd be glad to help out with logs.[/code]

Posted: Sun Jan 07, 2007 1:02 pm
by trixmoto
I am now working on this script (starting properly this evening). I've got a list of all the previously mentioned bugs and feature requests, so a new version should appear soon. Please be patient! :)

Posted: Wed Jan 10, 2007 4:52 pm
by powerpill-pacman
Yay Trixmoto,
this is great news, i've been waiting quite q while for someone to pick up this great script (which doesn't work for me).
Thanks in advance

Posted: Thu Jan 11, 2007 5:21 am
by trixmoto
I've finished fixing all the reported bugs and am now working on some of the requests (plus a couple of ideas of my own). Hopefully the release will be ready in a few days.

Posted: Sat Jan 13, 2007 8:25 am
by trixmoto
The release is ready! I have created a new thread here: http://www.mediamonkey.com/forum/viewtopic.php?t=14494

Posted: Sun May 25, 2008 10:26 am
by XIONG
Luckily I saw the website, I wish all the people happy

Posted: Sun May 25, 2008 1:35 pm
by Vyper
Nothing like bringing up an old thread. :-?

Posted: Mon May 26, 2008 12:03 pm
by tinana
My heart skipped, when I saw this thread I thought it was some radical, new version of MonkeyRok. :o :oops: :P

Re: MonkeyRok Alpha 02

Posted: Fri Feb 20, 2009 1:42 pm
by mosherdude2005
Hey I really want to be able to use this script but I get an error every time a new song plays It's a pop up stating:
There was a problem querying the database:
Error executing SQL "SELECT TOP 5 Songs.ID, Songs.SongTitle, Songs.SongLength, Songs.Rating, Songs.PlayCounter,
Songs.IDArtist FROM Songs WHERE Songs.IDArtist =0 ORDER BY Songs.Rating DESC
" : near "5":syntax error (1,1)
and then below it has buttons for cancel retry and ignore.
also no album art will show up and I get a message when it first starts up where internet explorer wants to know if I'm sure I want to run ActiveX scripts. But I figure that message is normal. Please help!!!!

Re: MonkeyRok Alpha 02

Posted: Fri Feb 20, 2009 2:23 pm
by nynaevelan
This is an old version, you should upgrade to the latest version by Trixmoto.

Nyn

Re: MonkeyRok Alpha 02

Posted: Fri Feb 20, 2009 6:02 pm
by Vyper
Can this thread be locked with a link to the latest version thread? :)