PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
blith
Client


Joined: Jul 18, 2003
Posts: 977

PostPosted: Wed Jun 02, 2004 8:00 am Reply with quote Back to top

I would like to make it possible to not have to score. Right now you have to choose a numerical value. I would like no score to be an option. Maybe a - (dash) to be no score chosen. Any ideas? Thanks!
View user's profile Send private message Visit poster's website
blith
Client


Joined: Jul 18, 2003
Posts: 977

PostPosted: Thu Jun 03, 2004 12:38 pm Reply with quote Back to top

Anyone have any thoughts on this? Thanks!
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Thu Jun 03, 2004 4:32 pm Reply with quote Back to top

Okay, I'm going to hang out the carrot and expect you to get it Laughing

in modules/Reviews/index.php you should have a couple instances of
Code:
    <option name=\"score\" value=\"1\">1</option>
Add this line after it
Code:
    <option name=\"score\" value=\"0\">0</option>


Then, find any code that looks like this (should only be 1)
Code:
    if (($score < 1) || ($score > 10)) {
and modify it to read
Code:
    if (($score < 0) || ($score > 10)) {


Now I haven't tested this, just glanced at it Wink
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
blith
Client


Joined: Jul 18, 2003
Posts: 977

PostPosted: Fri Jun 04, 2004 7:46 am Reply with quote Back to top

That's got it! BUT... I tried some non numerical values and it wouldn't take probably because of the "value" command... so I am going to look into being able to have a - (dash) as a value... maybe a hint on how to do that...
View user's profile Send private message Visit poster's website
blith
Client


Joined: Jul 18, 2003
Posts: 977

PostPosted: Fri Jun 04, 2004 7:47 am Reply with quote Back to top

Wait I am going to try and figure it out... if I can't then I will be back... trying to fish!
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Fri Jun 04, 2004 7:53 am Reply with quote Back to top

You really need to leave it as a value to avoid exploits that required using the intval() to fix. If you use alpha-numeric values, you can't use the intval() and will have to have some kind of a security trap.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
blith
Client


Joined: Jul 18, 2003
Posts: 977

PostPosted: Fri Jun 04, 2004 8:03 am Reply with quote Back to top

okay. Thank you! whew.. I am soo glad you are on the job!!
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous 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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum