1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

setup error. can someone help?

Discussion in 'HTML & Website Design' started by Scarface., Dec 31, 2006.

  1. #1
    Hi, what does this mean?


    Parse error: syntax error, unexpected T_VARIABLE in /home/nitpoker/public_html/tmblueprints/include/common.php on line 13



    and how can i fix it?
     
    Scarface., Dec 31, 2006 IP
  2. rb3m

    rb3m Peon

    Messages:
    192
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It means that you probably have a typo on that line. Post the code.
     
    rb3m, Dec 31, 2006 IP
  3. wwws

    wwws Notable Member

    Messages:
    3,385
    Likes Received:
    285
    Best Answers:
    0
    Trophy Points:
    225
    #3
    whats the name of the scripts your using? also check the common.php on line 13
     
    wwws, Dec 31, 2006 IP
  4. Scarface.

    Scarface. Peon

    Messages:
    349
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    <?php
    
    
    
    	$config = array();
    
    	global $config;
    
    
    
    	/*
    
    	GENERAL DECLARATIONS
    
    	*/
    
    
    
    	$config['baseurl'] = 'http://www.tmblueprints.com';
    
    	// The actual location of openlistings on the machine -- leave off the trailing slash
    
    	$config['basepath'] = '/home/nitpoker/public_html/tmblueprints'
    
    	$config['admin_name'] = ''; // Your name -- all email will come from this name
    
    	$config['admin_email'] = 'tiam.feridoni@gmail.com'; // all email which is sent from the site will come from this address
    
    	$config['site_title'] = 'TM-Main site-template,logos,banners, and much more'; // Site title
    
    
    
    	/*
    
    	DATABASE SETTINGS
    
    	*/
    
    
    
    	global $db_type;
    
    	$db_type = 'mysql';
    
    
    
    	$db_user = '********';			//database user
    
    	$db_password = '******';			//database password
    
    	$db_database = '******';	//database definition file
    
    	$db_server = 'localhost';		//database server
    
    
    
    	/*
    
    	LANGUAGE SETTINGS
    
    	You can use anthing you want in the value. But you should have one
    
    	name.php file in the language directory. Means If you chose 'en' then
    
    	in the language folder you should have en.php file. There is a dummy file
    
    	lang.php which you can edit and change to your name.
    
    	*/
    
    	$config['language']='en';
    
    
    
    	/*
    
    	LOCATION OF SEVERAL FOLDERS
    
    	*/
    
    	$config['template_path'] = $config['basepath'].'/template'; // leave off the trailing slashes
    
    	$config['template_url'] = $config['baseurl'].'/template'; // leave off the trailing slashes
    
    	$config['template_upload_path']=$config['basepath'].'/thetemplates';
    
    	$config['template_upload_url']=$config['baseurl'].'/thetemplates';
    
    	$config['secure_upload_path']=$config['basepath'].'/secure';  //the templates will be stored here
    
    	$config['customer_download_path']=$config['basepath'].'/cstomer';  //the templates will be stored here
    
    	$config['customer_download_url']=$config['baseurl'].'/cstomer'; //the templates will be stored 		here
    
    
    
    	/*
    
    	TEMPLATE SETTINGS
    
    	*/
    
    	$config['listings_per_page'] = 6; //number of listings to show on one page:
    
    	$config['s_p_p']=5;		//number of special templates shown per page
    
    	$config['add_linefeeds'] = 'yes'; // convert returns to line feeds? yes or no
    
    	$config['money_sign'] = '$'; // default is dollars, but it could be "&#163;" for pounds or "&#128;" for euros
    
    	$config['show_no_photo'] = 'yes'; // if a listing doesn't have a photo, should it use the /images/nophoto.gif instead?
    
    
    
    	/*
    
    	SPECIAL USER WHO SIGNED UP SETTINGS
    
    	*/
    
    	$config['duration']='60'; //For how many months they are member
    
    	$config['s_fee']='50';   //Signup fee for duration
    
    	$config['affiliate_comission_sp']='20'; //affiliate comission for this type of signup
    
    	$config['sp_upload_path']=$config['basepath'].'/sptemplates';
    
    	$config['sp_upload_url']=$config['baseurl'].'/sptemplates';
    
    
    
    	/*
    
    	UPLOAD SETTINGS
    
    	*/
    
    	$config['max_upload_size'] = '100000'; // (in bytes)
    
    	$config['max_upload_width'] = '450'; // max width (in pixels)
    
    	$config['max_upload_height']='600'; // max width (in pixels)
    
    
    
    	$config['allowed_upload_extensions'] = array('jpg','gif','png','fla','zip','rar','swf'); //possible allowed file extensions
    
    	$config['make_thumbnail'] = 'no'; // use an external thumbnailing tool to resize images
    
    	$config['thumbnail_width'] = '170'; // max width (in pixels) of thumbnails
    
    
    
    	/*
    
    	This line is for GD Lib Image Support
    
    	*/
    
    	$config['gd_version']='2.5';	
    
    	$config['path_to_thumbnailer'] = $config['basepath'].'/include/thumbanil_gd.php'; // path to the thumnailing tool
    
    	$config['path_to_resizer'] = $config['basepath'].'/include/resizer_gd.php'; // path to the thumnailing tool
    
    	$config['strip_html'] = 'yes'; // Should HTML be stripped out of listings? yes or no
    
    	$config['allowed_html_tags'] ='<a><b><i><u><br>'; // which html tags can a person inp
    
    
    
    	/*
    
    	These two lines are for ImageMagick Support
    
    	*/
    
    
    
    	//$config['path_to_thumbnailer'] = $config['basepath'].'/include/thumbnail_imagemagick.php'; // path to the thumnailing tool
    
    	//$config['path_to_imagemagick'] = '/usr/X11R6/bin/convert'; // path to the convert tool, OPTIONAL! (Fill this only if you use ImageMagick)
    
    
    
    	/*
    
    	AFFILIATE SECTION
    
    	*/
    
    	$new_affiliate_signup_mail_subject = "Welcome to TM-Template Seller";
    
    	$new_affiliate_signup_mail_header = "Welcome to TM-Template Seller";
    
    	$new_affiliate_signup_mail_footer = "Thanks for using TM-Template Seller  affiliate program.";
    
    
    
    	$suspended_mail_subject="Your account suspended";
    
    	$suspended_mail_body_header="This is an urgent message from TM-Template Seller ";
    
    	$suspended_mail_body_footer="This mail was automatically sent from TM-Template Seller";
    
    
    
    	$deleted_mail_subject="Your account has been deleted";
    
    	$deleted_mail_body_header="This is an urgent message from TM-Template Seller";
    
    	$deleted_mail_body_footer="This mail was automatically sent from TM-Template Seller";   
    
    
    
    	$reactivated_mail_subject="Your account has been re-activated";
    
    	$reactivated_mail_body_header="This is an urgent message from TM-Template Seller";
    
    	$reactivated_mail_body_footer="This mail was automatically sent from TM-Template Seller";   
    
    	$config['affiliate_comission']='25';   //affiliate comission percentage
    
    	$config['designer_comission']='40';    //designer comission percentage
    
    
    
    	/*
    
    	PAYPAL SETTINGS
    
    	CURRENCY: 1='USD',2='GBP',3='EUR',4='CAD',5='JPY'
    
    	*/
    
    	$config['paypal_receiver_email']='tiam@dal.ca'; //paypal e-mail address
    
    	$config['paypal_error_email']='tiam@dal.ca'; //Any fraud attemp will be sent to this.
    
    	$config['paypal_currency']='USD';
    
    	$config['paypal_fee']='0';
    
    	$config['check_fee']='1.5';
    
    	$config['bank_fee']='5';
    
    	$config['min_withdraw_amount']='10'; //This is the minimum withdraw amount what a
    
    					   //user can request.
    
    
    
    	/*
    
    	2CHECKOUT SETTINGS
    
    	*/
    
    	$config['check_id'] = '11';   //ENTER YOUR 2CHECKOUT ID
    
    	
    
    
    
    	/*
    
    	DON'T TOUCH HERE
    
    	*/
    
    
    
    	include($config['basepath'].'/include/adodb/adodb.inc.php');
    
    	$conn = &ADONewConnection($db_type);
    
    	$conn->PConnect($db_server, $db_user, $db_password, $db_database);
    
    ?>
    
    
    PHP:

    here is the code.
     
    Scarface., Dec 31, 2006 IP
  5. rb3m

    rb3m Peon

    Messages:
    192
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You're missing a ; in this line:


    $config['basepath'] = '/home/nitpoker/public_html/tmblueprints'
     
    rb3m, Dec 31, 2006 IP
  6. Scarface.

    Scarface. Peon

    Messages:
    349
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #6
    OMG im an blind idiot. thank you. i must have read through that line like 1000 times.
     
    Scarface., Dec 31, 2006 IP
  7. rb3m

    rb3m Peon

    Messages:
    192
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Happens to all of us. Sometimes a fresh pair of eyes help.
     
    rb3m, Dec 31, 2006 IP