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 gaberoonie on Wed Jul 21, 2010 3:51 pm

Where should I put the code? Uses mystique theme:

http://www.iphonebumpermagic.com/

Thanks!
gaberoonie
 
Posts: 1
Joined: Wed Jul 21, 2010 3:50 pm

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 ehubbel on Fri Jul 23, 2010 11:37 am

Cannot for the life of me get this working. I am using the free Arthemia theme. Here is my index.php file and url. http://www.petrevskiconsulting.com


<?php get_header(); ?>

<?php if(!is_paged()) { ?>

<div id="top" class="clearfloat">

<div id="headline">

<img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/headline.png" width="75px" height="21px" alt="" />
<?php query_posts("showposts=1&category_name=Headline"); ?>
<?php while (have_posts()) : the_post(); ?>

<div class="title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></div>
<div class="meta">[<?php the_time('j M Y') ?> | <?php comments_popup_link('No Comment', 'One Comment', '% Comments');?> | <?php if(function_exists('the_views')) { the_views(); } ?>]</div>


<?php $values = get_post_custom_values("Headline");?>

<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
<?php the_post_thumbnail( 'headline-thumbnail' ); ?></a>

<?php the_excerpt(); ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">Read the full story &raquo;</a>
<?php endwhile; ?>
</div>

<div id="featured">

<img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/featured.png" width="72px" height="17px" alt="" />

<?php query_posts("showposts=4&category_name=Featured"); $i = 1; ?>


<?php while (have_posts()) : the_post(); ?>
<div class="clearfloat">



<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
<?php the_post_thumbnail( 'featured-thumbnail' ); ?></a>





<div class="info"><a href="<?php the_permalink() ?>" rel="bookmark" class="title"><?php the_title(); ?></a>
<div class="meta">[<?php the_time('j M Y') ?> | <?php comments_popup_link('No Comment', 'One Comment', '% Comments');?> | <?php if(function_exists('the_views')) { the_views(); } ?>]</div>

</div>
</div>

<?php endwhile; ?>

</div>

</div>

<div id="middle" class="clearfloat">
<img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/category.png" class="clearfloat" alt="" />
<?php $display_categories = array(5,6,7,8,11); $i = 1;
foreach ($display_categories as $category) { ?>

<div id="cat-<?php echo $i; ?>" class="category">
<?php query_posts("showposts=1&cat=$category")?>
<span class="cat_title"><a href="<?php echo get_category_link($category);?>"><?php single_cat_title(); ?></a></span>
<a href="<?php echo get_category_link($category);?>"><?php echo category_description($category); ?></a>
</div>

<?php $i++; ?>
<?php } ?>

</div>

<?php } ?>

<div id="bottom" class="clearfloat">

<div id="front-list">

<?php
$page = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts("cat=-27,-28&paged=$page&posts_per_page=5"); ?>

<?php while (have_posts()) : the_post(); ?>

<div class="clearfloat">
<h3 class=cat_title><?php the_category(', '); ?> &raquo</h3>
<div class="title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></div>
<div class="meta">[<?php the_time('j M Y') ?> | <?php comments_popup_link('No Comment', 'One Comment', '% Comments');?> | <?php if(function_exists('the_views')) { the_views(); } ?>]</div>

<div class="spoiler">


<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
<?php the_post_thumbnail( 'spoiler-thumbnail' ); ?></a>



<?php the_excerpt(); ?>
</div>

</div>

<?php endwhile; ?>

<div class="navigation">
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
else { ?>

<div class="right"><?php next_posts_link('Next Page &raquo;') ?></div>
<div class="left"><?php previous_posts_link('&laquo; Previous Page') ?></div>
<?php } ?>

</div>

</div>


<?php get_sidebar(); ?>

</div>

<?php get_footer(); ?>
ehubbel
 
Posts: 3
Joined: Fri Jul 23, 2010 11:35 am

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

PostBy admin on Fri Jul 23, 2010 12:25 pm

you did not specify height and width of the gallery, and also text overlay height in fcg option settings
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: 4738
Joined: Fri Jan 16, 2009 9:29 am
Location: Seattle, WA

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

PostBy ehubbel on Fri Jul 23, 2010 4:25 pm

Thanks Yelena!

But now it doesnt have the pictures and I only want it on the home page. Not all of the pages.
Any idea?

Thanks,

Eric
ehubbel
 
Posts: 3
Joined: Fri Jul 23, 2010 11:35 am

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

PostBy ehubbel on Fri Jul 23, 2010 5:00 pm

Ok I got the images to show up. But like mentioned above...where do i put it to only show on the home page below the bread crumbs and the large Home headline.

For some reason it also covers the drop down nav.

** I just noticed that I have the code in the page.php file. Well i know it works...but i just want it on the home page. My index.php file is below.




<?php get_header(); ?>

<?php if(!is_paged()) { ?>

<div id="top" class="clearfloat">

<div id="headline">

<img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/headline.png" width="75px" height="21px" alt="" />
<?php query_posts("showposts=1&category_name=Headline"); ?>
<?php while (have_posts()) : the_post(); ?>

<div class="title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></div>
<div class="meta">[<?php the_time('j M Y') ?> | <?php comments_popup_link('No Comment', 'One Comment', '% Comments');?> | <?php if(function_exists('the_views')) { the_views(); } ?>]</div>


<?php $values = get_post_custom_values("Headline");?>

<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
<?php the_post_thumbnail( 'headline-thumbnail' ); ?></a>

<?php the_excerpt(); ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">Read the full story &raquo;</a>
<?php endwhile; ?>
</div>

<div id="featured">

<img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/featured.png" width="72px" height="17px" alt="" />

<?php query_posts("showposts=4&category_name=Featured"); $i = 1; ?>


<?php while (have_posts()) : the_post(); ?>
<div class="clearfloat">



<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
<?php the_post_thumbnail( 'featured-thumbnail' ); ?></a>





<div class="info"><a href="<?php the_permalink() ?>" rel="bookmark" class="title"><?php the_title(); ?></a>
<div class="meta">[<?php the_time('j M Y') ?> | <?php comments_popup_link('No Comment', 'One Comment', '% Comments');?> | <?php if(function_exists('the_views')) { the_views(); } ?>]</div>

</div>
</div>

<?php endwhile; ?>

</div>

</div>

<div id="middle" class="clearfloat">
<?php include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?>
<img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/category.png" class="clearfloat" alt="" />
<?php $display_categories = array(5,6,7,8,11); $i = 1;
foreach ($display_categories as $category) { ?>

<div id="cat-<?php echo $i; ?>" class="category">
<?php query_posts("showposts=1&cat=$category")?>
<span class="cat_title"><a href="<?php echo get_category_link($category);?>"><?php single_cat_title(); ?></a></span>
<a href="<?php echo get_category_link($category);?>"><?php echo category_description($category); ?></a>
</div>

<?php $i++; ?>
<?php } ?>

</div>

<?php } ?>

<div id="bottom" class="clearfloat">

<div id="front-list">

<?php
$page = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts("cat=-27,-28&paged=$page&posts_per_page=5"); ?>

<?php while (have_posts()) : the_post(); ?>

<div class="clearfloat">
<h3 class=cat_title><?php the_category(', '); ?> &raquo</h3>
<div class="title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></div>
<div class="meta">[<?php the_time('j M Y') ?> | <?php comments_popup_link('No Comment', 'One Comment', '% Comments');?> | <?php if(function_exists('the_views')) { the_views(); } ?>]</div>

<div class="spoiler">


<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
<?php the_post_thumbnail( 'spoiler-thumbnail' ); ?></a>



<?php the_excerpt(); ?>
</div>

</div>

<?php endwhile; ?>

<div class="navigation">
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
else { ?>

<div class="right"><?php next_posts_link('Next Page &raquo;') ?></div>
<div class="left">

<?php previous_posts_link('&laquo; Previous Page') ?></div>
<?php } ?>

</div>

</div>


<?php get_sidebar(); ?>

</div>

<?php get_footer(); ?>
ehubbel
 
Posts: 3
Joined: Fri Jul 23, 2010 11:35 am

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

PostBy admin on Mon Jul 26, 2010 10:03 am

to have fcg only on home page, you can accomplish it like this
Code: Select all
<?php
if(is_front_page() || is_home())
{
  include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.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: 4738
Joined: Fri Jan 16, 2009 9:29 am
Location: Seattle, WA

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

PostBy erroline on Sat Aug 07, 2010 9:04 am

I've gone through just about every post here and tried just about every solution you gave, but none has worked for me. Here is my website: http://www.everythingshe.com

I'm using the Larisa theme supplied by http://newwpthemes.com/demo/Larisa/

I've gone from it working perfectly to just a black canvas. When I changed the images, that's when things went awry. I NEED to put new images in the slide. When they were removed [BTW: I had already taken the sample images out and replaced them with my own], I was able to replace them without any problems. NOW, I'm having problems. I don't remember what I did initially, so that's why I need your help.

Also, when I initially replaced the demo's images with my own, the featured content gallery plugin was already deactivated, so my gallery was running without the plugin. I remember entering a number in the Custom Fields section next to the articleimg. But, now, when I do it, nothing shows up on the slider. I am currently using the WordPress just before the one that says WordPress 3.0.1 is available.

I've already tried working with that ABSPATH code. Nothing works now. And, I dare not deactivate my only other two plug-ins: Amazon and Contact. No way!

Thanks for whatever help you or anyone else can give.

Erroline
erroline
 
Posts: 1
Joined: Sat Aug 07, 2010 8:52 am

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

PostBy admin on Mon Aug 09, 2010 10:02 am

I see that is not fcg, this is similar gallery by the theme creator..ask them please
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: 4738
Joined: Fri Jan 16, 2009 9:29 am
Location: Seattle, WA

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

PostBy CometeLaSopa on Tue Aug 17, 2010 11:02 pm

Unable to put the code correctly. I would like to put it over the thumbnail posts.
Where should I insert the code?

www.cometelasopa.com

Here is my index.php
Thank you!

<?php get_header(); ?>


<?php if (is_paged()) $is_paged = true; $archives = get_option('woo_home_arc') ?>

<!-- Middle Starts -->
<div id="middle-out-top">
<div id="middle-out-bottom">
<div id="middle-content">
<div id="middle-content-bottom">
<!-- Content Starts -->
<div id="content" class="wrap">
<div class="col-left">
<div id="main-content">

<!-- Latest Starts -->
<div class="<?php if ($is_paged || $archives == "true") { echo 'archives'; } else { echo 'latest'; } ?> post wrap">

<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("cat=-".$GLOBALS[vid_cat]."&paged=$paged"); ?>
<?php if (have_posts()) : $count = 0; ?>
<?php while (have_posts()) : the_post(); $postcount++;?>

<!-- Featured Starts -->
<?php if ( $postcount <= get_option('woo_featured_posts') && !$is_paged ) { ?>

<div class="featured">
<?php woo_get_image('image',get_option('woo_image_width'),get_option('woo_image_height')); ?>

<div class="post-title">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<p class="post-details"><?php _e('Posted on',woothemes); ?> <?php the_time('d. M, Y'); ?> <?php _e('by',woothemes); ?> <?php the_author_posts_link(); ?>.</p>
<div class="comment-cloud">
<a href="<?php comments_link(); ?>"><?php comments_number('0','1','%'); ?></a>
</div>
</div>
<?php if ( get_option('woo_content_feat') == "true" ) { the_content('[...]'); } else { the_excerpt(); ?><?php } ?>

<h4 class="continue"><a href="<?php the_permalink() ?>"><?php _e('Continue Reading',woothemes); ?></a></h4>

</div>

<!-- Content Ad Starts -->
<?php if (get_option('woo_ad_content_disable') == "false" && !$is_paged && !$ad_shown) { include (TEMPLATEPATH . "/ads/content_ad.php"); $ad_shown = true; } ?>
<!-- Content Ad Ends -->

<?php continue; } ?>
<!-- Featured Ends -->

<!-- Normal Post Starts -->
<div class="block">

<?php if (!$is_paged && $archives == "false") { ?>
<?php woo_get_image('image',get_option('woo_home_thumb_width'),get_option('woo_home_thumb_height')); ?>
<div class="post-title">
<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
<p class="post-details"><?php _e('Posted on',woothemes); ?> <?php the_time('d. M, Y'); ?> <?php _e('by',woothemes); ?> <?php the_author_posts_link(); ?>.</p>
<div class="comment-cloud">
<a href="<?php comments_link(); ?>"><?php comments_number('0','1','%'); ?></a>
</div>
</div>
<?php } else { ?>
<div class="alignleft"><?php woo_get_image('image',get_option('woo_thumb_width'),get_option('woo_thumb_height')); ?></div>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<p class="post-details"><?php _e('Posted on',woothemes); ?> <?php the_time('d. M, Y'); ?> <?php _e('by',woothemes); ?> <?php the_author_posts_link(); ?>.</p>
<div class="comment-cloud">
<a href="<?php comments_link(); ?>"><?php comments_number('0','1','%'); ?></a>
</div>
<?php } ?>

<?php if ( get_option('woo_content') == "true" ) { the_content('[...]'); } else { the_excerpt(); ?><?php } ?>
<h4 class="continue"><a href="<?php the_permalink() ?>"><?php _e('Continue Reading',woothemes); ?></a></h4>

</div>
<!-- Normal Post Ends -->

<?php if ($archives == "false") { $count++; if ($count == 2) { $count = 0; ?><div class="fix"></div><?php } } ?>

<?php endwhile; ?>
<?php endif; ?>

</div>
<!-- Latest Ends -->

<div class="more_entries wrap">
<?php if (function_exists('wp_pagenavi')) wp_pagenavi(); else { ?>
<div class="fl"><?php previous_posts_link(__('&laquo; Newer Entries ',woothemes)) ?></div>
<div class="fr"><?php next_posts_link(__(' Older Entries &raquo;',woothemes)) ?></div>
<br class="fix" />
<?php } ?>
</div>

</div>
</div>

<div class="col-right">
<?php get_sidebar(); ?>
</div>
</div>
<!-- Content Ends -->
</div>
</div>
</div>
</div>
<!-- Middle Ends -->
<?php get_footer(); ?>
CometeLaSopa
 
Posts: 4
Joined: Tue Aug 17, 2010 10:56 pm

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

PostBy CometeLaSopa on Tue Aug 17, 2010 11:56 pm

Thank you for your reply

I don't understand, do you mean that I haven't got the plugin activate or that the code doesn´t work in my theme?

I put it in several places but it didn't worked properly so I delete the code and sent you my index.php without it. Should I have to put it again so you could see it working?

Regards
CometeLaSopa
 
Posts: 4
Joined: Tue Aug 17, 2010 10:56 pm

PreviousNext

Return to Getting Started

Who is online

Users browsing this forum: No registered users and 0 guests