Featured Content Gallery | WordPress Plugin | iePlexus

Where should i put the code exactly ? Please help me.

Downloading, installing, upgrading, and configuring the FCG plugin

Re: Where should i put the code exactly ? Please help me.

PostBy clafrica on Sun Dec 04, 2011 7:58 am

hello i cant get to place correctly the gallery it appears in the recent posts window and not in its spot , im using edegree template can anybody help me?
this is the site http://djclafrica.site50.net/

and this is the code i currently have:



<?php
global $wp_version, $shortname;;

//Get the custom css string
$body_css = get_BodyCSS();

//Set a class name for internal pages
$subclass = '';
if(!is_home() || isset($_GET['paged']))
$subclass = 'internalpage';
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title>
<?php echo ($title = wp_title('&#8211;', false, 'right')) ? $title : ''; ?><?php echo ($description = get_bloginfo('description')) ? $description : bloginfo('name'); ?>
</title>

<meta name="author" content="<?php bloginfo('name'); ?>" />
<link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/images/favicon.ico" type="image/x-icon" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php wp_enqueue_script('jquery'); ?>
<?php if (is_singular()) wp_enqueue_script('comment-reply'); ?>
<?php wp_head(); ?>

<link href="<?php bloginfo('template_url'); ?>/style.css" type="text/css" rel="stylesheet" />
<?php if(get_skinDir()):?>
<link href="<?php bloginfo('template_url'); ?>/images/<?php echo get_skinDir();?>/style.css" type="text/css" rel="stylesheet" />



<?php elseif(function_exists('dynamic_content_gallery')) : //Dynamic Content Gallery plugin activated ?><br />

<?php dynamic_content_gallery(); ?>

<?php endif;?>



<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/superfish.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/functions.js"></script>

<!--[if gte IE 5.5]>
<style type="text/css">.post img, .page img, .customhtml img {width: expression(this.width > 495 ? 495: true) }</style>
<![endif]-->
</head>

<body <?php echo (version_compare($wp_version, '2.8', '>=')) ? body_class($subclass) : 'class="'.$subclass .'"'?> <?php echo ($body_css) ? 'style="'.$body_css. '"' : ''?>>
<div id="bg" <?php echo (get_option('tbf2_header_image_file')) ? 'style="background-image:url('.get_option('tbf2_header_image_file'). ')"' : ''?>>
<div id="wrapper">
<div id="shadow">

<div id="header">
<h1 id="logo">
<?php if (get_option('tbf2_logo_header') == "yes" && get_option('tbf2_logo')) { ?>
<a href="<?php bloginfo('url'); ?>/"><img src="<?php echo get_option('tbf2_logo'); ?>" title="<?php bloginfo('name'); ?> -
<?php bloginfo('description'); ?>" alt="<?php bloginfo('name'); ?> - <?php bloginfo('description'); ?>" /></a>
<?php } else { //If no logo, show the blog title and tagline by default ?>
<a href="<?php bloginfo('url'); ?>" id="blogname" style="background:none;text-indent:0;width:auto"><span class="blod"><?php bloginfo('name'); ?></span> <?php bloginfo('description'); ?></a>
<?php } ?>
</h1>

<?php //Search box
if(get_option('tbf2_search_header') == "yes" || ((isset($_GET['preview']) && isset($_GET['template'])) || $_SERVER['HTTP_HOST'] == 'wp-themes.com')) : ?>
<?php include(TEMPLATEPATH.'/searchform.php'); ?>
<?php endif; ?>

</div>

<?php if (is_home() && !isset($_GET['paged'])) :?>
<div id="featured-zone">
<div id="slidespot">



<?php if(function_exists('gallery_styles')) : //Slideshow plugin activated ?>



<?php elseif(isset($_GET['preview']) && isset($_GET['template'])): //Theme is being previewed ?>
<img src="<?php bloginfo('template_url')?>/images/slidespot.jpg" alt="Install Featured Content Gallery Plugin to Replace This Image" />

<?php elseif(get_option('tbf2_custom_slidespot') == 'yes' && get_option('tbf2_custom_html_slidespot')): //Custom content is defined ?>
<?php echo get_option('tbf2_custom_html_slidespot');?>

<?php else: ?>

<img src="<?php bloginfo('template_url')?>/images/slidespot.jpg" alt="Install Featured Content Gallery Plugin to Replace This Image" />
<?php endif;?>





</div>

<div id="featured-wiz">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Top Custom Content (Home)") ) : ?>
<div class="widget">
<h2>ABOUT US</h2>
<p>To replace this text, go to "Widgets" page and start adding your own widgets to the "Top Custom Widget".</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas dolor nibh, feugiat ut fringilla eget, porttitor ac nisl. Phasellus non urna tellus. Suspendisse varius pharetra purus sit amet aliquet. Donec fermentum mi quis dolor fermentum euismod. </p>
<p>Vestibulum purus nunc, mollis pharetra aliquet ac, sodales ut risus.</p>
<p style="text-align:right"><img src="<?php bloginfo('template_url')?>/images/<?php echo (get_skinDir()) ? get_skinDir().'/' : ''?>btn-learn-more.png" alt="" /></p>
</div>
<?php endif; ?>
</div>
</div>
<div id="container">
<?php endif; ?>



<div id="<?php echo (!$subclass) ? 'container-shoulder' : 'container-shoulder-plain';?>">
<div id="left-col">
clafrica
 
Posts: 1
Joined: Sun Dec 04, 2011 7:56 am

Re: Re: Where should i put the code exactly ? Please help me.

Thank you for using the Featured Content Gallery Forum
 

Re: Where should i put the code exactly ? Please help me.

PostBy admin on Mon Dec 05, 2011 9:02 am

looks like you figured it out
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
User avatar
admin
Site Admin
 
Posts: 4789
Joined: Fri Jan 16, 2009 9:29 am
Location: Seattle, WA

Re: Where should i put the code exactly ? Please help me.

PostBy worldimage on Tue Jan 03, 2012 12:09 am

Can you take a look at my site? I'm just not sure what I am missing. I really want to use the fcg.
:D
Thank you
Julie C

www.fab2cpromotions.com
worldimage
 
Posts: 1
Joined: Mon Jan 02, 2012 3:54 pm

Re: Where should i put the code exactly ? Please help me.

PostBy admin on Tue Jan 03, 2012 8:45 am

did you add gallery call in home.php or index.php?
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
User avatar
admin
Site Admin
 
Posts: 4789
Joined: Fri Jan 16, 2009 9:29 am
Location: Seattle, WA

Index.php Problem

PostBy dtl25 on Sun May 13, 2012 4:48 am

Hi,

Can't get the FCG to work on index.php, I have copied the code into the header and footer, both work however i've tried putting it everywhere in the index file but to no avail! Hopefully somebody can help. Thanks! Existing index code below;

<?php get_header(); ?>


<ul class="mcol">

<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
<li class="article">



<?php
if ( has_post_thumbnail() ) { ?>
<?php
$imgsrcparam = array(
'alt' => trim(strip_tags( $post->post_excerpt )),
'title' => trim(strip_tags( $post->post_title )),
);
$thumbID = get_the_post_thumbnail( $post->ID, 'background', $imgsrcparam ); ?>
<div><a href="<?php the_permalink() ?>" class="preview"><?php echo "$thumbID"; ?></a></div>
<?php } ?>


<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<?php the_excerpt(); ?>
<div class="postmetadata">

</div>
</li>
<?php endwhile; ?>
<?php else : ?>
<?php endif; ?>
</ul>

<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
<?php endwhile; ?>
<?php else : ?>
<div id="main">
<h1><?php _e("Sorry, but you are looking for something that isn&#8217;t here."); ?></h1>
</div>
<?php endif; ?>


<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
<?php endwhile; ?>
<div id="nav">
<div id="navleft"><?php next_posts_link(__('Previous page&nbsp;')) ?></div>
<div id="navright"><?php previous_posts_link(__('Next page&nbsp;')) ?></div>
</div>
<?php else : ?>
<?php endif; ?>




<?php get_footer(); ?>
dtl25
 
Posts: 1
Joined: Sun May 13, 2012 4:44 am

Previous

Return to Getting Started

Who is online

Users browsing this forum: No registered users and 0 guests