Forums Sign Up Reply Search Statistics
Star Rating System GraFX Software Solutions - Forum / Star Rating System /

Having alot of problems

 
Author Anonymous
Guest
#1 Posted: 30 Jul 2003 12:42:11
Reply 
I've installed the star rating script and I'm having alot of problems. Firstly the page I'm testing the script is at is "http://www.fire-mosh.com/reform.php"

The include function I used is this: "<?php include("http://www.fire-mosh.com/rate/articol.php"); ?> "

Here is config.inc.php

$DEFAULT_URL = "http://www.fire-mosh.com/rate/";
$TEMPLATE_PATH = "/home/virtual/site114/fst/var/www/html/rate/templates/";
$RATE_PATH = "/home/virtual/site114/fst/var/www/html/rate/";
$RATE_URL = "http://www.fire-mosh.com/rate/";

It would probably be better to discuss this through a chat program like AiM or Msn. FirelordSoCko , or firelord_socko@hotmail.com . My email add is webmaster@fire-mosh.com
Thanks!
Author Anonymous
Guest
#2 Posted: 30 Jul 2003 12:43:19
Reply 
I tried to use this
$DEFAULT_URL = "http://www.fire-mosh.com/";
for the default url, but when you hit submit it would go to www.fire-mosh.com/rate.php instead of www.fire-mosh.com/rate/rate.php
Author software
Admin
#3 Posted: 30 Jul 2003 15:46:49
Reply 
No, you not include like this.

<?php

include_once("config.inc.php");
include_once($RATE_PATH."cls_rate.php");
include_once("cls_fast_template.php");
include_once("$LANG.inc.php");

$file=$_SERVER['REQUEST_URI'];
$file_real=$file;

$var_array = array(0=>"id");

$querystring=$_SERVER['QUERY_STRING'];
parse_str($querystring, $variable_array);

// undoing the query string with the $var_array variables
$buffer="";
foreach(array_keys($variable_array) as $v)
if(in_array($v,$var_array))
{
$buffer.=$v;
$buffer.="=";
$buffer.=$variable_array[$v];
$buffer.="&";
}

$buffer=substr($buffer,0, -1);

$file = strtok($file,"?");
if(sizeof($var_array)>0)
{
$file.="?";
$file.=$buffer;
}


$rate=new Rating("Rate",$file,$file_real);

echo "RATE",$rate->getRating();

?>

BUT not include the articol.php copy rhis in your PHP file to work correctly
 
Your Reply

» Username  » Password 
Only registered users are allowed to post here. Please enter your login/password details upon posting a message, or sign up first.