Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ','

Hi all,

any help is extremely appreciated!!

I am getting the below error and i have no idea how to fix it:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ‘,’ or ‘;’ in /home/escortd3/public_html/wp-content/themes/directorypress/template_directorypress/_single.php on line 68

Below is the code:

[php]<?php

/**************** CLAIM LISTING RESULTS ***/
$GLOBALS[‘user_info’] = get_userdata($post->post_author);
$GLOBALS[‘claim_email’] = get_post_meta($post->ID, ‘email’, true);
/
CLAIM LISTING RESULTS *******************/

// SETUP GLOBAL VALUES FROM CUSTOM DATA
$PostMetaArray = array(“images”,“tagline”);
foreach($PostMetaArray as $value){
$GLOBALS[$value] = get_post_meta($post->ID, $value, true);
}

// GET CUSTOM FIELD DATA
$CustomFields = get_option(“customfielddata”);

// CHECK FOR THE WEBSITE LINK
$link = premiumpress_link($post->ID);

// REGISTER COLOURBOX
wp_register_script( ‘colorbox’, get_template_directory_uri() .’/PPT/js/jquery.colorbox-min.js’);
wp_enqueue_script( ‘colorbox’ );

wp_register_style( ‘colorbox’, get_template_directory_uri() .’/PPT/css/css.colorbox.css’);
wp_enqueue_style( ‘colorbox’ );

// START OUTPUT
get_header(); ?>

<?php if (have_posts()) : while (have_posts()) : the_post(); // TOOLBOX FOR POST AUTHOR if($post->post_author == $userdata->ID ){ ?>
<div class="green_box"><div class="green_box_content"> 

<h3 class="left" style="margin:0px; padding:0px; line-height:20px; width:200px"><img src="<?php echo get_template_directory_uri(); ?>/PPT/img/v7/icons/toolbox.png" align="absmiddle" style="padding-right:10px;" />
<?php echo $PPT->_e(array('title','15')); ?>
</h3>        

<div class="right">

<a href="<?php echo get_option('submit_url'); ?>?eid=<?php echo $post->ID; ?>" class="button green" rel="nofollow"><?php echo $PPT->_e(array('button','2')); ?></a> |    
<a href="<?php echo get_option('manage_url'); ?>?eid=<?php echo $post->ID; ?>&dd=1" onclick="return ppt_confirm('<?php echo $PPT->_e(array('validate','5')); ?>');" class="button green" rel="nofollow"><?php echo $PPT->_e(array('button','3')); ?></a>   

</div>
<div class="clearfix"></div>
       
</div>
</div> 
       
<?php } ?>

<?php 

// CLAMIN LISTING BOX

if(isset($GLOBALS['claim_email']) && $GLOBALS['claim_email'] !="" && $post->post_author == 1){ ?>

<div class="green_box"><div class="green_box_content">

 
<div class="right">      
<a href="javascript:void(0);" <?php if ( $userdata->ID ){ echo 'onclick="document.ClaimListing.submit();"'; }else{ echo 'onclick="alert(''.SPEC($GLOBALS['_LANG']['_side10']).'');";'; } ?> class="button green" rel="nofollow"><?php echo $PPT->_e(array('membership','8')); ?></a>  
</div>
<img src="<?php echo get_template_directory_uri(); ?>/template_directorypress/images/claimlisting.png" align="absmiddle" style="padding-right:10px;float:left;" />
<div class="left"> 
<div style="max-width:400px;">
<h3><?php echo $PPT->_e(array('membership','6')); ?></h3>    
<p class="noMargin"><?php echo $PPT->_e(array('membership','7')); ?></p>
</div>
</div>

<div class="clearfix"></div>           
</div>
</div> 
<form action="" method="post" name="ClaimListing" id="ClaimListing"><input type="hidden" name="action" value="claimlisting" /></form>

<?php } ?>
<?php
// FEATURED GRAPHIC
if(get_post_meta($post->ID, "featured", true) == "yes" && strlen(get_post_meta($post->ID, "featured_text", true)) > 1){ ?>      
<div class="group corner" style="margin-right:-2px;margin-top:-2px;">
<div class="wrap-ribbon right-corner strip lgreen"><span><?php echo get_post_meta($post->ID, "featured_text", true); ?></span></div>			
</div>
<?php } ?> 

<div class="itemboxinner ">


<div id="begin" class="inner">

<div class="right">  

Call Me:&nbsp<?php echo get_post_meta($post->ID,'ContactTelephoneNumber',true); ?>&nbsp &nbsp

</div>
 
    <h3><?php the_title(); ?></h3>
    
    <?php if(strlen($GLOBALS['tagline']) > 1){ ?><p class="tagline"><?php echo $GLOBALS['tagline'] ; ?></p><?php }else{ ?><br /><?php } ?>
    
    <ol class="page_tabs">
    
        <li><a href="#tab1"><?php echo $PPT->_e(array('title','17')); ?></a></li> 
                    
        <?php if(strlen($GLOBALS['images']) > 4){ ?><li><a href="#tab2"><?php echo $PPT->_e(array('title','16')); ?></a></li><?php } ?>
       
    </ol>
                        
</div>


<div class="page_container">

	<div id="tab1" class="page_content nopadding">
    
     	<h3 class="texttitle"><?php echo $PPT->_e(array('title','19')); ?></h3>
        
        <hr style="margin-top:0px;" />
          
        <div class="entry article"><?php the_content(); ?></div>
        
        <hr />    
        
        <div class="buttonbox">
           	 
            <?php if(strlen($link) > 2){ ?>
                
                <a class="button gray" href="<?php echo $link; ?>" target="_blank" <?php if($GLOBALS['premiumpress']['nofollow'] =="yes"){ ?>rel="nofollow"<?php } ?> title="<?php the_title(); ?>">
                     
                 <?php echo $PPT->_e(array('button','12')); ?>
                         
                </a>        
         
            <?php } ?>
                
            <?php if(get_option("display_contactform") =="yes"){ ?>
            
            <a href="#contactForm" class="button gray showform" rel="nofollow"><?php echo $PPT->_e(array('button','14')); ?></a>
            
			<?php } ?>
            
              
    
            
            <?php if(get_option("display_social") =="yes"){ ?> 
            
            	<a class="button gray addthis_button" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="nofollow">
            
            		<?php echo $PPT->_e(array('button','15')); ?>
                    
    			</a>
                
             <?php } ?>
             
        </div>
                
        <hr />
        
        <div class="clearfix"></div>    

.leftcollumn
{
float:left;
width:50%;
}

.rightcollumn
{
float:right;
width:50%;
}

.rightimage
{
float:right;
margin:10px;
padding:10px;
}

table {

border: 3px solid #6E6E6E;
font: normal 11px helvetica, verdana, arial, sans-serif;
background-color: #191919;
background-repeat: repeat;
border-spacing: 1px;
width:100%;
float:left;
margin:10px 0px 10px 0px;

}

.top {
background-color: black;
}
caption {
text-align: left;
font: normal 11px helvetica, verdana, arial, sans-serif;
background: transparent;
}
th {

padding: .8em;
color: #ec008b;
}
td {

padding: .8em;
color: #6E6E6E;
}
thead th, tfoot th {
font: bold 10px helvetica, verdana, arial, sans-serif;
text-align: left;
background: #000000;
color: #00FF0C;
padding-top:4px;
}
tbody td a {
background: transparent;
text-decoration: none;
color: #9F9F9F;
}
tbody td a:hover {
background: transparent;
color: #00FF0C;
}
tbody th a {
font: bold 11px helvetica, verdana, arial, sans-serif;
background: transparent;
text-decoration: none;
font-weight:normal;
color: #ec008b;
}

tbody td+td+td+td a {
padding-right: 14px;
background: transparent no-repeat bottom right;
}
tbody td+td+td+td a:hover {
padding-right: 14px;
background: url transparent no-repeat bottom right;
}
tbody th a:hover {
background: transparent;
color: #00FF0C;
}
tbody th, tbody td {
vertical-align: top;
text-align: left;
}

.odd {
background: #000000;
}
tbody tr:hover {
background: #0E0E0E;
}
tbody tr:hover th,
tbody tr.odd:hover th {
background: #0E0E0E;
}

Rates
Incall Outcall
Hourly Rate <?php echo get_post_meta($post->ID,'HourlyRate-Incall',true); ?> <?php echo get_post_meta($post->ID,'HourlyRate-Outcall',true); ?>
Overnight Rate <?php echo get_post_meta($post->ID,'OvernightRate-Incall',true); ?> <?php echo get_post_meta($post->ID,'OvernightRate-Outcall',true); ?>
Weekend Rate <?php echo get_post_meta($post->ID,'WeekendRate-Incall',true); ?> <?php echo get_post_meta($post->ID,'WeekendRate-Outcall',true); ?>
<?php echo get_post_meta($post->ID,'CustomRateName',true); ?> <?php echo get_post_meta($post->ID,'CustomRateIncall',true); ?> <?php echo get_post_meta($post->ID,'CustomRateOutcall',true); ?>
Details
Sexuality <?php echo get_post_meta($post->ID,'Sexuality',true); ?> Hair <?php echo get_post_meta($post->ID,'Hair',true); ?>
Nationality <?php echo get_post_meta($post->ID,'Nationality',true); ?> Eyes <?php echo get_post_meta($post->ID,'Eyes',true); ?>
Languages <?php echo get_post_meta($post->ID,'Languages',true); ?> Height <?php echo get_post_meta($post->ID,'Height',true); ?>
Age <?php echo get_post_meta($post->ID,'Age',true); ?> Travels <?php echo get_post_meta($post->ID,'Travels',true); ?>
Availability
Monday <?php echo get_post_meta($post->ID,'MondayAvailability',true); ?>
Tuesday <?php echo get_post_meta($post->ID,'TuesdayAvailability',true); ?>
Wednesday <?php echo get_post_meta($post->ID,'WednesdayAvailability',true); ?>
Thursday <?php echo get_post_meta($post->ID,'ThursdayAvailability',true); ?>
Friday <?php echo get_post_meta($post->ID,'FridayAvailability',true); ?>
Saturday <?php echo get_post_meta($post->ID,'SaturdayAvailability',true); ?>
Sunday <?php echo get_post_meta($post->ID,'SundayAvailability',true); ?>
Services
Entertain Male Clients <?php echo get_post_meta($post->ID,'EntertainMaleClients',true); ?>
Entertain Female Clients <?php echo get_post_meta($post->ID,'EntertainFemaleClients',true); ?>
Entertain Mature Clients <?php echo get_post_meta($post->ID,'EntertainMatureClients',true); ?>
Entertain Couples <?php echo get_post_meta($post->ID,'EntertainMatureClients',true); ?>
<?php echo $PPTDesign->Attachments($post->ID); ?>
        <?php the_tags("<div class='texttitle tags'>".$PPT->_e(array('title','20'))." ",' ','</div>') ?>
       
         <?php if(strlen(get_post_meta($post->ID, "map_location", true)) > 1  && $PPT->CanShow($post->ID, "map_location")){ ?><div id="map_sidebar2" style="margin-top:10px;"></div><?php } ?>    

         <hr />
         
        <?php 
		
		/* COMMENTS FORM */
		
		if(get_option("display_single_comments") =="yes"){  comments_template(); }  ?>
        
    
    </div>
    
    <!-- end tab 1 -->        
    
	<div id="tab2" class="page_content"> 
    
        <?php echo $PPTDesign->Attachments($post->ID); ?>
    
    </div>        

    <!-- end tab 2 -->              

</div> <!-- end page_container -->
<?php if(get_option("display_contactform") =="yes"){ ?> <?php wp_nonce_field('ContactForm') ?>

<?php echo $PPT->_e(array('contact','9')); ?>

<?php echo $PPT->_e(array('contact','10')); ?>

    <fieldset> 
                             
        <div class="full clearfix box"> 
        <p class="f_half left"> 
            <label for="name"><?php echo $PPT->_e(array('contact','1')); ?> <span class="required">*</span></label>
            <input type="text" name="message_from" id="message_name"  class="short" tabindex="1" />
        </p> 
        <p class="f_half left"> 
            <label for="email"><?php echo $PPT->_e(array('contact','2')); ?><span class="required">*</span></label> 
            <input type="text" name="message_subject" id="message_subject" class="short" tabindex="2" />               
        </p> 
        </div> 
 
              
        <div class="full clearfix border_t box"> 
        <p>
            <label for="comment"><?php echo $PPT->_e(array('contact','3')); ?> <span class="required">*</span></label> 
            <textarea tabindex="3" class="long" rows="4" name="message_message" id="message_message"></textarea>                    
        </p>
        </div>   
        
        <?php $email_nr1 = rand("0", "9");$email_nr2 = rand("0", "9"); ?>
        <div class="full clearfix border_t box"> 
        <p class="f_half left"> 
            <label for="name"><?php echo str_replace("%a",$email_nr1,str_replace("%b",$email_nr2,$PPT->_e(array('validate','6')))) ?> </label> 
            <input type="text" name="code" value="" class="long" tabindex="4" /> 
            <input type="hidden" name="code_value" value="<?php echo $email_nr1+$email_nr2; ?>" />
        </p> 
         </div>               
        
        <div class="full clearfix border_t box"> 
        <p class="full clearfix"> 
            <input type="submit" name="submit1" class="button gray" tabindex="5" value="<?php echo $PPT->_e(array('contact','4')); ?>" />  
        </p> 
        </div>	
    
    </fieldset> 
<?php } ?> <?php endwhile; else : endif; get_footer(); ?>[/php]

Thanks in advance!!! :slight_smile:

Joe

Pretty self exclamatory, you’re missing a ; at the end of one of the lines at or near line 68

Sponsor our Newsletter | Privacy Policy | Terms of Service