Hello, it would be nice to include article rating 5 stars image already inside 'Read More...' page to Rating: (image) on the front page main on each article posts.
Easy to do? Not sure how to accomplish this in PHP codes. My first thought would be to do <PHP include... thing.
Tips please.
PS: I already enabled that with an hack, but dont like having to create images for every rating number. Like 4.31, 2.66, 2.33, etc. I keep making them everytime I see an broken image.
ArtificialIntel
Joined: Jan 31, 2004
Posts: -88
Posted:
Wed Apr 16, 2003 6:57 pm
so just modify the code to only allow integers.
AI
clerc Private
Joined: Feb 14, 2003
Posts: 45
Location: USA
Posted:
Wed Apr 16, 2003 7:39 pm
That simple answer really blows me away! What are integers? If you tell me what that is, I could go and take a look at what I can modify.
I'm assuming you're talking about the hack I already am using not the php include, correct?
Actually, I'd like to get rid of the hack because I have to add the hack everytime I do an upgrade in several files. I think it'd be easier to just throw in one line of code on the index file in the News Module with php include.
An example of php include code would be great!
ArtificialIntel
Joined: Jan 31, 2004
Posts: -88
Posted:
Thu Apr 17, 2003 5:02 am
integers are whole numbers. There's a PHP function (you might have to look it up, cause I can't remember what it is) that rounds numbers to the nearest whole number
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum