You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 51 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Article Ratings in Image on Front Page (Main) [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
clerc
Private
Private


Joined: Feb 14, 2003
Posts: 45

Location: USA

PostPosted: Wed Apr 16, 2003 4:09 pm Reply with quoteBack to top

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.
Find all posts by clercView user's profileSend private message
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Wed Apr 16, 2003 6:57 pm Reply with quoteBack to top

so just modify the code to only allow integers.

AI
Find all posts by ArtificialIntelView user's profileSend private message
clerc
Private
Private


Joined: Feb 14, 2003
Posts: 45

Location: USA

PostPosted: Wed Apr 16, 2003 7:39 pm Reply with quoteBack to top

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!
Find all posts by clercView user's profileSend private message
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Thu Apr 17, 2003 5:02 am Reply with quoteBack to top

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

AI
Find all posts by ArtificialIntelView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.161 Seconds - 296 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::