Works on Demo - Live Site Doesn't
14 posts • Page 2 of 2 • 1, 2
Re: Works on Demo - Live Site Doesn't
Parse error: syntax error, unexpected T_STRING in /home1/hiphopre/public_html/daytonchessclub/wp-content/plugins/featured-content-gallery/content-gallery.php on line 44
- drivenmg
- Posts: 12
- Joined: Wed Apr 01, 2009 7:34 pm
- Thank you for using the Featured Content Gallery Forum
Re: Works on Demo - Live Site Doesn't
you pasting it wrong,..but anyway, it will work..but is is just test..do not waste your time...
problem here is your files, check with your host why javascript/css do not work
problem here is your files, check with your host why javascript/css do not work
Yelena Khamidullina
Web Applications Developer, iePlexus
1. Check settings to exclude fcg-YOU conflict
2. Try to turn off all your plugins at once to exclude fcg-other plugin conflict
3. Try default theme to exclude fcg-theme conflict
4. Post in this forum to involve me in your troubleshooting. URL is required
Web Applications Developer, iePlexus
1. Check settings to exclude fcg-YOU conflict
2. Try to turn off all your plugins at once to exclude fcg-other plugin conflict
3. Try default theme to exclude fcg-theme conflict
4. Post in this forum to involve me in your troubleshooting. URL is required
-

admin - Site Admin
- Posts: 4789
- Joined: Fri Jan 16, 2009 9:29 am
- Location: Seattle, WA
Re: Works on Demo - Live Site Doesn't
- Code: Select all
<?php
/*
Plugin Name: Featured Content Gallery
Plugin URI: http://www.featuredcontentgallery.com
Description: Used to create a customizable rotating image gallery anywhere within your WordPress site. <a href="http://www.featuredcontentgallery.com" target="_blank">FeaturedContentGallery.com</a>: plugin page, instructions, gallery and support.
Version: 3.2.0
Author: iePlexus
Author URI: http://www.ieplexus.com
*/
/* Copyright 2009 iePlexus (email : info@ieplexus.com)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/* options page */
$options_page = get_option('siteurl') . '/wp-admin/admin.php?page=featured-content-gallery/options.php';
/* Adds our admin options under "Options" */
function gallery_options_page() {
add_options_page('Featured Content Gallery Options', 'Featured Content Gallery', 10, 'featured-content-gallery/options.php');
}
function gallery_styles() {
/* The next lines figures out where the javascripts and images and CSS are installed,
relative to your wordpress server's root: */
$gallery_path = get_bloginfo('wpurl')."/wp-content/plugins/featured-content-gallery/";
/* The xhtml header code needed for gallery to work: */
$galleryscript = "
<!-- begin gallery scripts -->
<link rel="stylesheet" href="http://www.featuredcontentgallery.com/wp-content/plugins/featured-content-gallery/css/jd.gallery.css.php" type="text/css" media="screen" charset="utf-8"/>
<link rel="stylesheet" href="http://www.featuredcontentgallery.com/wp-content/plugins/featured-content-gallery/css/jd.gallery.css" type="text/css" media="screen" charset="utf-8"/>
<script type="text/javascript" src="http://www.featuredcontentgallery.com/wp-content/plugins/featured-content-gallery/scripts/mootools.v1.11.js"></script>
<script type="text/javascript" src="http://www.featuredcontentgallery.com/wp-content/plugins/featured-content-gallery/scripts/jd.gallery.js.php"></script>
<script type="text/javascript" src="http://www.featuredcontentgallery.com/wp-content/plugins/featured-content-gallery/scripts/jd.gallery.transitions.js"></script>
<!-- end gallery scripts -->\n";
/* Output $galleryscript as text for our web pages: */
echo($galleryscript);
}
function get_a_post($id='GETPOST') {
global $post, $tableposts, $tablepostmeta, $wp_version, $wpdb;
if($wp_version < 1.5)
$table = $tableposts;
else
$table = $wpdb->posts;
$now = current_time('mysql');
$name_or_id = '';
$orderby = 'post_date';
if( !$id || 'GETPOST' == $id || 'GETRANDOM' == $id ) {
if( $wp_version < 2.1 )
$query_suffix = "post_status = 'publish'";
else
$query_suffix = "post_type = 'post' AND post_status = 'publish'";
} elseif('GETPAGE' == $id) {
if($wp_version < 2.1)
$query_suffix = "post_status = 'static'";
else
$query_suffix = "post_type = 'page' AND post_status = 'publish'";
} elseif('GETSTICKY' == $id) {
if($wp_version < 1.5)
$table .= ', ' . $tablepostmeta;
else
$table .= ', ' . $wpdb->postmeta;
$query_suffix = "ID = post_id AND meta_key = 'sticky' AND meta_value = 1";
} else {
$query_suffix = "(post_status = 'publish' OR post_status = 'static')";
if(is_numeric($id)) {
$name_or_id = "ID = '$id' AND";
} else {
$name_or_id = "post_name = '$id' AND";
}
}
if('GETRANDOM' == $id)
$orderby = 'RAND()';
$post = $wpdb->get_row("SELECT * FROM $table WHERE $name_or_id post_date <= '$now' AND $query_suffix ORDER BY $orderby DESC LIMIT 1");
get_post_custom($post->ID);
if($wp_version < 1.5)
start_wp();
else
setup_postdata($post);
}
/* we want to add the above xhtml to the header of our pages: */
add_action('wp_head', 'gallery_styles');
add_action('admin_menu', 'gallery_options_page');
?>
What am I missing that's incorrect?
the host on the demo and the live site are the same - same server.
- drivenmg
- Posts: 12
- Joined: Wed Apr 01, 2009 7:34 pm
Re: Works on Demo - Live Site Doesn't
paste this piece
- Code: Select all
<?php
/*
Plugin Name: Featured Content Gallery
Plugin URI: http://www.featuredcontentgallery.com
Description: Used to create a customizable rotating image gallery anywhere within your WordPress site. <a href="http://www.featuredcontentgallery.com" target="_blank">FeaturedContentGallery.com</a>: plugin page, instructions, gallery and support.
Version: 3.2.0
Author: iePlexus
Author URI: http://www.ieplexus.com
*/
/* Copyright 2009 iePlexus (email : info@ieplexus.com)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/* options page */
$options_page = get_option('siteurl') . '/wp-admin/admin.php?page=featured-content-gallery/options.php';
/* Adds our admin options under "Options" */
function gallery_options_page() {
add_options_page('Featured Content Gallery Options', 'Featured Content Gallery', 10, 'featured-content-gallery/options.php');
}
function gallery_styles() {
/* The next lines figures out where the javascripts and images and CSS are installed,
relative to your wordpress server's root: */
$gallery_path = get_bloginfo('wpurl')."/wp-content/plugins/featured-content-gallery/";
/* The xhtml header code needed for gallery to work: */
$galleryscript = "
<!-- begin gallery scripts -->
<link rel='stylesheet' href='http://www.featuredcontentgallery.com/wp-content/plugins/featured-content-gallery/css/jd.gallery.css.php' type='text/css' media='screen' charset='utf-8'/>
<link rel='stylesheet' href='http://www.featuredcontentgallery.com/wp-content/plugins/featured-content-gallery/css/jd.gallery.css' type='text/css' media='screen' charset='utf-8'/>
<script type='text/javascript' src='http://www.featuredcontentgallery.com/wp-content/plugins/featured-content-gallery/scripts/mootools.v1.11.js'></script>
<script type='text/javascript' src='http://www.featuredcontentgallery.com/wp-content/plugins/featured-content-gallery/scripts/jd.gallery.js.php'></script>
<script type='text/javascript' src='http://www.featuredcontentgallery.com/wp-content/plugins/featured-content-gallery/scripts/jd.gallery.transitions.js'></script>
<!-- end gallery scripts -->\n";
/* Output $galleryscript as text for our web pages: */
echo($galleryscript);
}
function get_a_post($id='GETPOST') {
global $post, $tableposts, $tablepostmeta, $wp_version, $wpdb;
if($wp_version < 1.5)
$table = $tableposts;
else
$table = $wpdb->posts;
$now = current_time('mysql');
$name_or_id = '';
$orderby = 'post_date';
if( !$id || 'GETPOST' == $id || 'GETRANDOM' == $id ) {
if( $wp_version < 2.1 )
$query_suffix = "post_status = 'publish'";
else
$query_suffix = "post_type = 'post' AND post_status = 'publish'";
} elseif('GETPAGE' == $id) {
if($wp_version < 2.1)
$query_suffix = "post_status = 'static'";
else
$query_suffix = "post_type = 'page' AND post_status = 'publish'";
} elseif('GETSTICKY' == $id) {
if($wp_version < 1.5)
$table .= ', ' . $tablepostmeta;
else
$table .= ', ' . $wpdb->postmeta;
$query_suffix = "ID = post_id AND meta_key = 'sticky' AND meta_value = 1";
} else {
$query_suffix = "(post_status = 'publish' OR post_status = 'static')";
if(is_numeric($id)) {
$name_or_id = "ID = '$id' AND";
} else {
$name_or_id = "post_name = '$id' AND";
}
}
if('GETRANDOM' == $id)
$orderby = 'RAND()';
$post = $wpdb->get_row("SELECT * FROM $table WHERE $name_or_id post_date <= '$now' AND $query_suffix ORDER BY $orderby DESC LIMIT 1");
get_post_custom($post->ID);
if($wp_version < 1.5)
start_wp();
else
setup_postdata($post);
}
/* we want to add the above xhtml to the header of our pages: */
add_action('wp_head', 'gallery_styles');
add_action('admin_menu', 'gallery_options_page');
?>
Yelena Khamidullina
Web Applications Developer, iePlexus
1. Check settings to exclude fcg-YOU conflict
2. Try to turn off all your plugins at once to exclude fcg-other plugin conflict
3. Try default theme to exclude fcg-theme conflict
4. Post in this forum to involve me in your troubleshooting. URL is required
Web Applications Developer, iePlexus
1. Check settings to exclude fcg-YOU conflict
2. Try to turn off all your plugins at once to exclude fcg-other plugin conflict
3. Try default theme to exclude fcg-theme conflict
4. Post in this forum to involve me in your troubleshooting. URL is required
-

admin - Site Admin
- Posts: 4789
- Joined: Fri Jan 16, 2009 9:29 am
- Location: Seattle, WA
14 posts • Page 2 of 2 • 1, 2
Return to Development, Improvement, and Conflicts
Who is online
Users browsing this forum: No registered users and 0 guests









