Having issues installing PHP Clone script

I am trying to install a php script for a clone of Freelancer.com

The installation guide is below. I have followed everything on the installation guide (I am pretty sure) but it still isn’t working. (Check out the site www.findmytradey.com to see what the errors are)

Can anyone please help? I am thinking it might have something to do with step 5… (I have also included below the standard script for config.php)

  1. Extract archive
  2. Copy all the files from public_html to document root on server (usually public_html)
  3. Chmod templates_c, admin/templates_c, upload and subfolders of this folders to 777
  4. From cpanel, create database and user for mysql. Import from mysql_database the workman_main.sql into your database
  5. Edit includes/config.php
    case “yourwebsite.com”:
    case “www.yourwebsite.com”:
    $config[‘DB_Type’] = ‘mysql’;
    $config[‘DB_Host’] = ‘localhost’;
    $config[‘DB_Name’] = ‘database name’;
    $config[‘DB_User’] = ‘databaase username’;
    $config[‘DB_Passwd’] = ‘database password’;
    break;
    default:
    $config[‘DB_Type’] = ‘mysql’;
    $config[‘DB_Host’] = ‘localhost’;
    $config[‘DB_Name’] = ‘database name’;
    $config[‘DB_User’] = ‘databaase username’;
    $config[‘DB_Passwd’] = ‘database password’;
    break;

$config[‘Website’]=“http://www.yourwebsite.com”;

$config[‘Google_Api_Key’]=“ABQIAAAA7cAzs1OfS6G22u1wo258kxSaRmIXYHE1eZRG6FscWOnrgMJXvxSwVGHOOYhXjIehbxYTGn1UoRvHvg”;

$config[‘Twitter_Link’]=“http://www.twitter.com/twitteraccount”;

$config[‘Facebook_Link’]=“http://www.facebook.com/facebookaccount”;

  1. Check if .htaccess is overwritten, if not overwrite with the file from public_html

  2. Edit tweet.php
    $sqlhost=“your sql hostname”;
    $sqluser=“mysql usernam”;
    $sqlpass=“mysql password”;
    $sqldb=“mysql database”;
    $website=“your website ex. http://www.mywebsite.tld”;
    $twitteruser=“twitter username”;
    $twitterpass=“twitter password”;

  3. Hosting cpanel add the following to cron where Your Home Directory is the path on server, ex /home/mywebsite in cpanel
    you can find this value in the left at Stats second row.
    0,30 * * * * php Your Home Directory/public_html/cronjobs/send_mail_30_mins.php

          •   php Your Home Directory/public_html/cronjobs/deactivate_user.php
            
          •   php Your Home Directory/public_html/cronjobs/membership.php
            
          •   php Your Home Directory/public_html/cronjobs/send_all_project.php
            
          •   php Your Home Directory/public_html/cronjobs/send_area_wise_project.php
            
          •   php Your Home Directory/public_html/cronjobs/send_new_projects.php
            

first one is executed every 30 minutes, rest of them every minute.

  1. Chmod 777 public_html\2010sp.xml and public_html\recent.js

  2. Edit twitter.php and change with your username and password.

  3. Links and important files

  • admin http://www.yoursite.com/admin default username and password: admin admin
  • default layout - templates/default_layout.tpl
  • default header - templates/default_header.tpl
  • configuration file - includes/common.php
  • mysql database - table website_config
  • if you need anything bulk replace, there is a replace.php file in root, just read and edit

CONFIG.PHP

[php]<?php
/* this file is used for database connection */
$config[‘tplEx’] = ‘.tpl’; // file extension
//$Language_Types = isset($_POST[‘Language_Types’]) ? $_POST[‘Language_Types’] : (isset($_SESSION[‘Language_Types’])?$_SESSION[‘Language_Types’]:“en” );
//$_SESSION[‘Language_Types’] = $Language_Types;

$config[‘Website’]=“freelance.v-eva.com”;
$config[‘Google_Api_Key’]=“ABQIAAAAk27O0F6NttJWXubTNawHBBSiuLO6tF5ZpIf4RihbdBsq-eLWZxRdvoq-mGdlR8FHTYmnMWmd2g7J8g”;
$config[‘Twitter_Link’]=“http://www.twitter.com/stefanantonius”;
$config[‘Facebook_Link’]=“http://www.facebook.com/antonius.stefan”;

#====================================================================================================

Database

#----------------------------------------------------------------------------------------------------
switch($config[‘Server_Name’])
{
case “GANESH”:
$config[‘DB_Type’] = ‘mysql’;
$config[‘DB_Host’] = ‘localhost’;
$config[‘DB_Name’] = ‘veva2010_Freelance’;
$config[‘DB_User’] = ‘root’;
$config[‘DB_Passwd’] = ‘’;

    break;
	
case "MYLOCAL":
	$config['DB_Type']      = 'mysql';
    $config['DB_Host']      = 'localhost';
    $config['DB_Name']      = 'veva2010_Freelance';
    $config['DB_User']      = 'root';
    $config['DB_Passwd']    = '';
    break;
	

case "freelance.v-eva.com":
case "www.freelance.v-eva.com":
    $config['DB_Type']      = 'mysql';
    $config['DB_Host']      = 'localhost';
    $config['DB_Name']      = 'veva2010_Freelance';
    $config['DB_User']      = '';
    $config['DB_Passwd']    = '';
    break;
	
default:
    $config['DB_Type']      = 'mysql';
    $config['DB_Host']      = 'localhost';
    $config['DB_Name']      = 'veva2010_Freelance';
    $config['DB_User']      = '';
    $config['DB_Passwd']    = '280165';
    break;

}

?>
[/php]

Anyone? Will give you a virtual hug!!!

Ok willing to pay someone to help me out.

Are you still having a problem? I looked at the link given and didn’t see any errors.

This is because i havent made this script to show user menu in index.php after login. just add the following code at the very top of index.php

<?php session_start; ?>

If you want to show the user menu like settingslogout etc… then add this code below the above line.

Well, Hetfield, I looked at the link to the site, and it was working good. Also, you didn’t ask an actual question. You installed a clone of another site and set it up. But, where is it actually failing? Give us some help so we can help you… If the problem is in their code, we would need it all, so maybe we could download it, but, if it is a PHP question, show us the PHP code that is failing and I am sure one of us can solve the error!

Let us know…

Sponsor our Newsletter | Privacy Policy | Terms of Service