Jump to content

Parse error: syntax error, unexpected T_LNUMBER


coingallery

Recommended Posts

Let me begin by saying that I know pretty much nothing about PHP, and was just attempting to swap image sliders on my homepage as one was conflicting with a required plugin. I'm getting this error:

 

Parse error: syntax error, unexpected T_LNUMBER in /home2/cgobr/public_html/wp-content/themes/coin/page-home.php on line 17

 

Can somebody please tell me where the coding is wrong. I mean, I'm not retarded, I know css, I know html, just not php stuff. Please please please help!!! Below is the code:

<?php
    /**
     * Template name: Home
     */
?>

<?php get_header() ?>

    <script type="text/javascript">
        jQuery(document).ready(function() {
            jQuery('#mycarousel').jcarousel();
        });
    </script>
       
    <div id="home_top">
        <div id="home_rare"><ul><?=do_shortcode("[home_rare]") ?></ul></div>
        <?php echo do_shortcode("[soliloquy id="79129"]"); ?>
	<div class="clear"></div>
    </div>
    <center>
        <object width="980" height="30">
<param name="movie" value="http://www.monex.com/tickers/ticker_980.swf" />
<embed src="http://www.monex.com/tickers/ticker_980.swf" width="980" height="30">
</embed></object>
<br><Br><a href="http://stores.ebay.com/coingalleryofbocaraton" target="_blank"><img src="http://cgobr.com/wp-content/uploads/2013/04/EbayStoreBanner1.jpg"></a></center><br>
    <div id="home_content">
        <div id="home_content_left">
            <?php the_post() ?>
            
            <h2 class="entry-title"><?php the_title() ?></h2>
    		<div class="entry-content">
                <?php the_content() ?>
                <?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'kameleon' ) . '&after=</div>') ?>
                <?php edit_post_link( __( 'Edit', 'kameleon' ), '<span class="edit-link">', '</span>' ) ?>
    		</div>
            
        </div>
        <div id="home_content_right">
            <h2 class="entry-title">Featured Video</h2>
            
<iframe width="300" height="169" src="//www.youtube.com/embed/YQ2UIEZMCAE" frameborder="0" allowfullscreen></iframe>
<br><br>
<h2 class="entry-title">Like Us on Facebook</h2>
<iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2FCoinGalleryofSouthFlorida&width=292&height=500&show_faces=true&colorscheme=light&stream=true&border_color&header=true&appId=277341438944784" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:292px; height:500px;" allowTransparency="true"></iframe>
            <?=get_post_meta($post->ID, 'featured_video', true)?>
        </div>
        <div class="clear"></div>
    </div>
    <?php
    global $woocommerce;

   		$query_args = array('posts_per_page' => $number, 'no_found_rows' => 1, 'post_status' => 'publish', 'post_type' => 'product' );

		$query_args['meta_query'] = array();

		$query_args['meta_query'][] = array(
			'key' => '_featured',
			'value' => 'yes'
		);
	    $query_args['meta_query'][] = $woocommerce->query->stock_status_meta_query();
	    $query_args['meta_query'][] = $woocommerce->query->visibility_meta_query();

		$r = new WP_Query($query_args);

		if ($r->have_posts()) : ?>

		
		
    <div id="home_featured">
        <h2>Featured</h2>
        <ul id="mycarousel" class="jcarousel-skin-tango">
        <?php while ($r->have_posts()) : $r->the_post(); global $product; ?>
        
        <li><a href="<?php echo esc_url( get_permalink( $r->post->ID ) ); ?>" title="<?php echo esc_attr($r->post->post_title ? $r->post->post_title : $r->post->ID); ?>">
			<?php echo $product->get_image("shop_catalog"); ?>
			<h3><span><?php if ( $r->post->post_title ) echo get_the_title( $r->post->ID ); else echo $r->post->ID; ?></span></h3>
		</a> <span class="price"><?php echo $product->get_price_html(); ?></span></li>
        
        <?php endwhile; ?>
        </ul>
    </div>
    
    <?php endif; ?>
    
    <?php /*
    <div id="home_bottom">
        <div id="home_bottom_left" class="bottom_box">
            <a class="button" href="<?=home_url()?>/product-category/rare-coins/" title="View all">View all</a>
            <h2><span>Rare coin inventory</span></h2>
            <?php
            global $post;
            $tmp_post = $post;
            $args = array(
                'numberposts' => 1,
                'post_type'=> 'product',
                'orderby' => 'rand',
                'tax_query' => array(
            		array(
            			'taxonomy' => 'product_cat',
            			'field' => 'slug',
            			'terms' => 'rare-coins'
            		)
            	)
            );
            $myposts = get_posts( $args );
            foreach( $myposts as $post ) : setup_postdata($post); $first = $post->ID; ?>
                <a class="home_pic" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
                    <?php if ( has_post_thumbnail() ) : ?>
                
                		<a itemprop="image" href="<?php echo wp_get_attachment_url( get_post_thumbnail_id() ); ?>" class="zoom" rel="thumbnails" title="<?php echo get_the_title( get_post_thumbnail_id() ); ?>"><?php echo get_the_post_thumbnail( $post->ID, apply_filters( 'single_product_large_thumbnail_size', 'shop_single' ) ) ?></a>
                
                	<?php else : ?>
                
                		<img src="<?php echo woocommerce_placeholder_img_src(); ?>" alt="Placeholder" />
                
                	<?php endif; ?>
                </a>
                <div class="home_bot_cont">
                    <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
                    <div><?php the_excerpt(); ?></div>
                </div>
            <?php endforeach; ?>
            <?php $post = $tmp_post; ?>
        </div>
        <div id="home_bottom_right" class="bottom_box">
            <a class="button" href="<?=home_url()?>/product-category/rare-coins/precious-metals-bullion/" title="View all">View all</a>
            <h2><span>Precious Metals & Bullion</span></h2>
            <?php
            global $post;
            $tmp_post = $post;
            $args = array(
                'numberposts' => 1,
                'post_type'=> 'product',
                'orderby' => 'rand',
                'exclude' => $first,
                'tax_query' => array(
            		array(
            			'taxonomy' => 'product_cat',
            			'field' => 'slug',
            			'terms' => 'precious-metals-bullion'
            		)
            	)
            );
            $myposts = get_posts( $args );
            foreach( $myposts as $post ) : setup_postdata($post); ?>
                <a class="home_pic" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
                    <?php if ( has_post_thumbnail() ) : ?>
                
                		<a itemprop="image" href="<?php echo wp_get_attachment_url( get_post_thumbnail_id() ); ?>" class="zoom" rel="thumbnails" title="<?php echo get_the_title( get_post_thumbnail_id() ); ?>"><?php echo get_the_post_thumbnail( $post->ID, apply_filters( 'single_product_large_thumbnail_size', 'shop_single' ) ) ?></a>
                
                	<?php else : ?>
                
                		<img src="<?php echo woocommerce_placeholder_img_src(); ?>" alt="Placeholder" />
                
                	<?php endif; ?>
                </a>
                <div class="home_bot_cont">
                    <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
                    <div><?php the_excerpt(); ?></div>
                </div>
            <?php endforeach; ?>
            <?php $post = $tmp_post; ?>
        </div>
        <div class="clear"></div>
    </div> */?>

<?php // get_sidebar() ?>
<?php get_footer() ?>

Link to comment
Share on other sites

Nice explanation, but you still aren't showing the code.....

<?php
/**
* Template name: Home
*/
?>

<?php get_header() ?>

<script type="text/javascript">
jQuery(document).ready(function() {
jQuery('#mycarousel').jcarousel();
});
</script>
<div id="home_top">
<div id="home_rare"><ul><?=do_shortcode("[home_rare]") ?></ul></div>
<?php echo do_shortcode("[soliloquy id=\"79129\"]"); ?>
<div class="clear"></div>
</div>
<center>
<object width="980" height="30">
<param name="movie" value="http://www.monex.com/tickers/ticker_980.swf" />
<embed src="http://www.monex.com/tickers/ticker_980.swf" width="980" height="30">
</embed></object>
<br><Br><a href="http://stores.ebay.com/coingalleryofbocaraton" target="_blank"><img src="http://cgobr.com/wp-content/uploads/2013/04/EbayStoreBanner1.jpg"></a></center><br>
<div id="home_content">
<div id="home_content_left">
<?php the_post() ?>
<h2 class="entry-title"><?php the_title() ?></h2>
<div class="entry-content">
<?php the_content() ?>
<?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'kameleon' ) . '&after=</div>') ?>
<?php edit_post_link( __( 'Edit', 'kameleon' ), '<span class="edit-link">', '</span>' ) ?>
</div>
</div>
<div id="home_content_right">
<h2 class="entry-title">Featured Video</h2>
<iframe width="300" height="169" src="//www.youtube.com/embed/YQ2UIEZMCAE" frameborder="0" allowfullscreen></iframe>
<br><br>
<h2 class="entry-title">Like Us on Facebook</h2>
<iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2FCoinGalleryofSouthFlorida&width=292&height=500&show_faces=true&colorscheme=light&stream=true&border_color&header=true&appId=277341438944784" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:292px; height:500px;" allowTransparency="true"></iframe>
<?=get_post_meta($post->ID, 'featured_video', true)?>
</div>
<div class="clear"></div>
</div>
<?php
global $woocommerce;

$query_args = array('posts_per_page' => $number, 'no_found_rows' => 1, 'post_status' => 'publish', 'post_type' => 'product' );

$query_args['meta_query'] = array();

$query_args['meta_query'][] = array(
'key' => '_featured',
'value' => 'yes'
);
$query_args['meta_query'][] = $woocommerce->query->stock_status_meta_query();
$query_args['meta_query'][] = $woocommerce->query->visibility_meta_query();

$r = new WP_Query($query_args);

if ($r->have_posts()) : ?>

<div id="home_featured">
<h2>Featured</h2>
<ul id="mycarousel" class="jcarousel-skin-tango">
<?php while ($r->have_posts()) : $r->the_post(); global $product; ?>
<li><a href="<?php echo esc_url( get_permalink( $r->post->ID ) ); ?>" title="<?php echo esc_attr($r->post->post_title ? $r->post->post_title : $r->post->ID); ?>">
<?php echo $product->get_image("shop_catalog"); ?>
<h3><span><?php if ( $r->post->post_title ) echo get_the_title( $r->post->ID ); else echo $r->post->ID; ?></span></h3>
</a> <span class="price"><?php echo $product->get_price_html(); ?></span></li>
<?php endwhile; ?>
</ul>
</div>
<?php endif; ?>
<?php /*
<div id="home_bottom">
<div id="home_bottom_left" class="bottom_box">
<a class="button" href="<?=home_url()?>/product-category/rare-coins/" title="View all">View all</a>
<h2><span>Rare coin inventory</span></h2>
<?php
global $post;
$tmp_post = $post;
$args = array(
'numberposts' => 1,
'post_type'=> 'product',
'orderby' => 'rand',
'tax_query' => array(
array(
'taxonomy' => 'product_cat',
'field' => 'slug',
'terms' => 'rare-coins'
)
)
);
$myposts = get_posts( $args );
foreach( $myposts as $post ) : setup_postdata($post); $first = $post->ID; ?>
<a class="home_pic" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php if ( has_post_thumbnail() ) : ?>
<a itemprop="image" href="<?php echo wp_get_attachment_url( get_post_thumbnail_id() ); ?>" class="zoom" rel="thumbnails" title="<?php echo get_the_title( get_post_thumbnail_id() ); ?>"><?php echo get_the_post_thumbnail( $post->ID, apply_filters( 'single_product_large_thumbnail_size', 'shop_single' ) ) ?></a>
<?php else : ?>
<img src="<?php echo woocommerce_placeholder_img_src(); ?>" alt="Placeholder" />
<?php endif; ?>
</a>
<div class="home_bot_cont">
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div><?php the_excerpt(); ?></div>
</div>
<?php endforeach; ?>
<?php $post = $tmp_post; ?>
</div>
<div id="home_bottom_right" class="bottom_box">
<a class="button" href="<?=home_url()?>/product-category/rare-coins/precious-metals-bullion/" title="View all">View all</a>
<h2><span>Precious Metals & Bullion</span></h2>
<?php
global $post;
$tmp_post = $post;
$args = array(
'numberposts' => 1,
'post_type'=> 'product',
'orderby' => 'rand',
'exclude' => $first,
'tax_query' => array(
array(
'taxonomy' => 'product_cat',
'field' => 'slug',
'terms' => 'precious-metals-bullion'
)
)
);
$myposts = get_posts( $args );
foreach( $myposts as $post ) : setup_postdata($post); ?>
<a class="home_pic" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php if ( has_post_thumbnail() ) : ?>
<a itemprop="image" href="<?php echo wp_get_attachment_url( get_post_thumbnail_id() ); ?>" class="zoom" rel="thumbnails" title="<?php echo get_the_title( get_post_thumbnail_id() ); ?>"><?php echo get_the_post_thumbnail( $post->ID, apply_filters( 'single_product_large_thumbnail_size', 'shop_single' ) ) ?></a>
<?php else : ?>
<img src="<?php echo woocommerce_placeholder_img_src(); ?>" alt="Placeholder" />
<?php endif; ?>
</a>
<div class="home_bot_cont">
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div><?php the_excerpt(); ?></div>
</div>
<?php endforeach; ?>
<?php $post = $tmp_post; ?>
</div>
<div class="clear"></div>
</div> */?>

<?php // get_sidebar() ?>
<?php get_footer() ?>
Edited by coingallery
Link to comment
Share on other sites

Let's try this again.

 

Please show us lines 1-20 and point out the line that is giving you the error.

I have explained to you, that is all of the coding. Line 1 begins with <? php. The line that WAS giving me problems was 17. I found though that it was a plugin conflict. The slider is displaying as long as i have the plugin conflicting with it disabled. That sucks.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.