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 jbrath on Wed Jun 24, 2009 9:57 pm

I am also having problems placing my code. I can't seem to get it to be placed on one of my pages without ending up on all the pages.

Here is the code to my page.php below
where do I place the code so that it is only on my "about" page above my text but below my "about title"
the blog site is http://www.pinelakega.com

Thanks

<?php get_header(); ?>
<div class="contentLayout">
<div class="sidebar1">
<?php include (TEMPLATEPATH . '/sidebar1.php'); ?>
</div>

<div class="content">
<?php include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

<div class="Post">

<div class="Post-body">
<div class="Post-inner article">

<h2 class="PostHeaderIcon-wrapper">
<span class="PostHeader"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>">
<?php the_title(); ?>
</a></span>
</h2>
<?php $icons = array(); ?>
<?php if (!is_page()): ?><?php ob_start(); ?><img src="<?php bloginfo('template_url'); ?>/images/PostDateIcon.png" width="17" height="18" alt="PostDateIcon" />
<?php the_time(__('F jS, Y', 'kubrick')) ?>
<?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (!is_page()): ?><?php ob_start(); ?><img src="<?php bloginfo('template_url'); ?>/images/PostAuthorIcon.png" width="14" height="14" alt="PostAuthorIcon" />
<?php _e('Author', 'kubrick'); ?>: <a href="#" title="<?php _e('Author', 'kubrick'); ?>"><?php the_author() ?></a>
<?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (current_user_can('edit_post', $post->ID)): ?><?php ob_start(); ?><img src="<?php bloginfo('template_url'); ?>/images/PostEditIcon.png" width="14" height="14" alt="PostEditIcon" />
<?php edit_post_link(__('Edit', 'kubrick'), ''); ?>
<?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (0 != count($icons)): ?>
<div class="PostHeaderIcons metadata-icons">
<?php echo implode(' | ', $icons); ?>

</div>

<?php endif; ?>

<div class="PostContent">

<?php if (is_search()) the_excerpt(); else the_content(__('Read the rest of this entry &raquo;', 'kubrick')); ?>

</div>
<div class="cleared"></div>
<?php ob_start(); ?>
<?php $icons = array(); ?>
<?php if (!is_page()): ?><?php ob_start(); ?><img src="<?php bloginfo('template_url'); ?>/images/PostCategoryIcon.png" width="18" height="18" alt="PostCategoryIcon" />
<?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(', ')); ?>
<?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (!is_page() && get_the_tags()): ?><?php ob_start(); ?><img src="<?php bloginfo('template_url'); ?>/images/PostTagIcon.png" width="18" height="18" alt="PostTagIcon" />
<?php the_tags(__('Tags:', 'kubrick') . ' ', ', ', ' '); ?>
<?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (!is_page() && !is_single()): ?><?php ob_start(); ?><img src="<?php bloginfo('template_url'); ?>/images/PostCommentsIcon.png" width="18" height="18" alt="PostCommentsIcon" />
<?php comments_popup_link(__('No Comments &#187;', 'kubrick'), __('1 Comment &#187;', 'kubrick'), __('% Comments &#187;', 'kubrick'), '', __('Comments Closed', 'kubrick') ); ?>
<?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (0 != count($icons)): ?>
<div class="PostFooterIcons metadata-icons">
<?php echo implode(' | ', $icons); ?>

</div>
<?php endif; ?>
<?php $metadataContent = ob_get_clean(); ?>
<?php if (trim($metadataContent) != ''): ?>
<div class="PostMetadataFooter">
<?php echo $metadataContent; ?>

</div>
<?php endif; ?>

</div>

</div>
</div>

<?php endwhile; endif; ?>

</div>
<div class="sidebar2">
<?php include (TEMPLATEPATH . '/sidebar2.php'); ?>
</div>

</div>
<div class="cleared"></div>

<?php get_footer(); ?>
jbrath
 
Posts: 1
Joined: Wed Jun 24, 2009 9:40 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 admin on Thu Jun 25, 2009 8:25 am

in this piece of code
Code: Select all
<div class="content">
<?php include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

from your provided code
you can have if statement to show only on about page
Code: Select all
<div class="content">
<?php
if (is_page('About') )
{
  include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php');
}

?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
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 MarkC on Tue Jun 30, 2009 1:43 pm

I'm making a new site using WP Thesis theme. I tried putting the code in the header.php or index.php and the box would appear at the top of the page above everything else. Where should I put the code?

Thanks
MarkC
 
Posts: 3
Joined: Thu Jun 18, 2009 7:39 am

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

PostBy bata on Mon Jul 06, 2009 2:54 am

i done everything like in the video....put a number id of the pages, and configure exacly the plug in.
i put the codein the Main Index Template (index.php)
code.jpg
code.jpg (85.15 KiB) Viewed 6231 times


i use magazine basic template...i tryed with the default template too , but it did not worked out
my waith and hight are 600X200 of the slider images are olso thet side 600X200. I made a costum field too...just articleimg and featuredtext..the value are corect, the path to images are very corect.....what should i do???? what is wrong?
It just displays a square 600X200 there is no loading or images. i also disabled allplugins exept this slider

bata
site.jpg
site.jpg (68.85 KiB) Viewed 6225 times
bata
 
Posts: 11
Joined: Sun Jul 05, 2009 4:28 pm

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

PostBy bata on Mon Jul 06, 2009 11:30 am

i done everything like in the video....put a number id of the pages, and configure exacly the plug in.
i put the codein the Main Index Template (index.php)
code.jpg
code.jpg (85.15 KiB) Viewed 6216 times

i use magazine basic template...i tryed with the default template too , but it did not worked out
my waith and hight are 600X200 of the slider images are olso thet side 600X200. I made a costum field too...just articleimg and featuredtext..the value are corect, the path to images are very corect.....what should i do???? what is wrong?
It just displays a square 600X200 there is no loading or images. i also disabled allplugins exept this slider
code.jpg
code.jpg (85.15 KiB) Viewed 6216 times
site.jpg
site.jpg (68.85 KiB) Viewed 6217 times

I disable all other modules and reinstall featured content galery but stiil not working
I am working on my localhost my computr...my path to images are
http://127.0.0.1/wordpress/wp-content/u ... /07/11.jpg
http://127.0.0.1/wordpress/wp-content/u ... /07/21.jpg
http://127.0.0.1/wordpress/wp-content/u ... /07/31.jpg
i put id pages in content galery option modul 21,23,26
and everything.....what is the problem????
can anyone please just answer something?
bata
 
Posts: 11
Joined: Sun Jul 05, 2009 4:28 pm

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

PostBy admin on Mon Jul 06, 2009 12:43 pm

I am sorry I can not troubleshoot localhost..I need live site..
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 bata on Mon Jul 06, 2009 1:30 pm

admin wrote:I am sorry I can not troubleshoot localhost..I need live site..

ok i will put it on the freehostia, and i will give you link here
bata
 
Posts: 11
Joined: Sun Jul 05, 2009 4:28 pm

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

PostBy bata on Mon Jul 06, 2009 1:34 pm

bata wrote:
admin wrote:I am sorry I can not troubleshoot localhost..I need live site..

ok i will put it on the freehostia, and i will give you link here


yesterday i put on freehostia, and it has the same problem i will put it again:)
bata
 
Posts: 11
Joined: Sun Jul 05, 2009 4:28 pm

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

PostBy bata on Mon Jul 06, 2009 2:47 pm

ok..here is my experimental site:
http://cikabata.freehostia.com
everything is ok....i done it, everything is ok exept look my slider in IE6, it seems thet text description starts from midle side of slider not from bottom??? why? and how can i fix thet in IE6?
bata
 
Posts: 11
Joined: Sun Jul 05, 2009 4:28 pm

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

PostBy admin on Mon Jul 06, 2009 3:09 pm

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

PreviousNext

Return to Getting Started

Who is online

Users browsing this forum: No registered users and 0 guests