Contact
|
Store
|
Not Registered Yet?
Click here to sign up
Home
Products
Web Based PHP Program
FREE PHP Classes
Dreamweaver Extensions
Control Panel Addons
Real Estate Software
Forum
Affiliate
Download
Services
HOW TO get support from us
Web Design Integration
PLESK Based Dedicated or VPS Hosting Management Services
Web Hosting
Web Development
PLESK Crash Recovery
Dedicated-Root-Managed servers
Virtual Private Server - VPS
•
Forums
•
Sign Up
•
Reply
•
Search
•
Statistics
•
GraFX Software Solutions - Forum
/
Star Rating System
/
Having alot of problems
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!
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
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
.
Pre-Sales Questions
Hacks And Addons
Company Website Builder
Company Website Builder PRO
CVS or SVN for Dreamweaver
Star Rating System
Basic Statistics
Fast Template
CodeFaster Code Generator
myFloorplan Designer
GrafXPress Article Manager
G-Dating
GraFX Press Article Manager
Pre-Sale Questions
Feature Requests
Support Issues and Questions
Customisation, Integration, Tips & Hints
Pre-Sales Questions
Power Toys
Search Engine Tools (SEO) Tools for PLESK
HOW-TO setup PLESK