Board Logo

2Web template items
Khirsah - 3-26-2006 at 02:19 AM

Right so I'm running a site with Joomla and managed to get 2Web to fit in very nicley and I'm quite happy with 2Web!

In the templates, are there more options than whats listed in the example that it comes with, date/artist/title/album? (rating??) I might be crazy, but I kinda wanna put the stars up next to my photo on some pages..

-Khirsah


Audiosoft - 3-26-2006 at 03:55 AM

If you want I will update 2Web FTP so the template can see the $rating value but you would still have to write some javascript to convert the rating value into star images yourself.

The star rating is a value 0-100. So the javascript would first need to take the rating and divide it by 10. Which would give a value representing how many 1/2 star images that need to be added. You would then have to run a loop and insert <img src=firstpartofstar.gif> then <img src=lastpartofstar.gif> and repeat until the 0-10 value is reached. Not easy to do and the star images need to be put on your webserver manually....which is why I did not include the $rating already. Let me know if you still want me to add $rating to the template.


Khirsah - 4-22-2006 at 11:21 PM

Wow a month later I get back to you.. so sorry! I tend to go on eJukeBox kicks for a few days then sit back and let it work.

As to the stars, yeah that does sound like more work than I am looking to do. Making the module for joomla is enough for me :cool:

I suppose what you could do.. to make it easier on me (grin) is do somthing similar to the cover art. Say ejukebox uploads an image of 3 stars.. or better yet.. so I can pick my own star layout, have it just generate the number from within ejukebox so when i enter $rating it returns 3star.jpg (or whatever) and I can have pictures on my site for 0star.jpg, 05star.jpg, 1star.jpg and so on..

Ya know.. now that I think about it, it doesnt really matter that much to me if they show up. I guess it depends on how much work it is to do, and if anyone else want this :cool:

Thanks for the reply just the same!

-Khirsah