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 admin on Thu Jan 07, 2010 10:57 am

yw
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: 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 armyk on Fri Jan 15, 2010 6:23 am

Hi, i have problem. I didnt find corret place for code :( help please
my header.php
Code: Select all
<?php get_header(); ?>
      <div class="span-24" id="contentwrap">
         <div class="span-16">
            <div id="content">   
                <?php if(is_home()) { include (TEMPLATEPATH . '/featured.php'); } ?>      
               <?php if (have_posts()) : ?>   
                  <?php while (have_posts()) : the_post(); ?>
                  
                  <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
                            <div class="postdate"><?php the_time('F jS, Y') ?></div>
                     <h2 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
      
                     <div class="entry">
                                <?php if ( function_exists('has_post_thumbnail') && has_post_thumbnail() ) { the_post_thumbnail(array(200,160), array('class' => 'alignleft post_thumbnail')); } ?>
                        <?php the_content(''); ?>
                                <div class="readmorecontent">
                           <a class="readmore" href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">Read More &raquo;</a>
                        </div>
                     </div>
                  </div><!--/post-<?php the_ID(); ?>-->
            
            <?php endwhile; ?>
            <div class="navigation">
               <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } else { ?>
               <div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
               <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
               <?php } ?>
            </div>
            <?php else : ?>
               <h2 class="center">Not Found</h2>
               <p class="center">Sorry, but you are looking for something that isn't here.</p>
               <?php get_search_form(); ?>
         
            <?php endif; ?>
            </div>
         </div>
      
      <?php get_sidebars(); ?>
   </div>
<?php get_footer(); ?>
armyk
 
Posts: 1
Joined: Fri Jan 15, 2010 6:19 am

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

PostBy admin on Fri Jan 15, 2010 8:19 am

this file does not look like header.php, it is probably index.php..
to try it in index.php, put it after
Code: Select all
<div id="content">
, just try it anywhere until you like it
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?

PostBy OlympiaLogger on Fri Jan 15, 2010 11:10 am

I have two issues.
1. No margins:
If I place it too high the header explodes.
If I place it low enough to get margins, all my copy disappears.
If I place it where it works okay, there are no margins.
What can I do to add margins, (...or padding)

2. No matter where I place it, FCG does NOT show up at all in FireFox.
What can I do to make FCG work in FireFox

Image

PAGE.PHP
Code: Select all
<?php get_header(); ?>
<div class="art-contentLayout">
<div class="art-content">

<div id="fcg">
<?php include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?>
</div>


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


<div class="art-Post">
    <div class="art-Post-body">

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

<h2 class="art-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>
</h2>
<?php $icons = array(); ?>
<?php if (current_user_can('edit_post', $post->ID)): ?><?php ob_start(); ?><?php edit_post_link(__('Edit', 'kubrick'), ''); ?>
<?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (0 != count($icons)): ?>
<div class="art-PostHeaderIcons art-metadata-icons">
<?php echo implode(' | ', $icons); ?>




</div>
<?php endif; ?>
<div class="art-PostContent">

          <?php if (is_search()) the_excerpt(); else the_content(__('Read the rest of this entry &raquo;', 'kubrick')); ?>
          <?php if (is_page() or is_single()) wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>   
</div>
<div class="cleared"></div>

</div>

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

<?php comments_template(); ?>
<?php endwhile; endif; ?>

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

<?php get_footer(); ?>
OlympiaLogger
 
Posts: 3
Joined: Fri Jan 15, 2010 10:50 am

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

PostBy admin on Fri Jan 15, 2010 11:14 am

margins can be added without no problem, but where I can not say unless you give me url
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 OlympiaLogger on Fri Jan 15, 2010 12:11 pm

Thanks for the quick reply.
I was going to do that and forgot... sorry!

-->url deleated<--

I'll give you my username and password too if you need to get in and take a closer look.
Last edited by OlympiaLogger on Mon Jan 25, 2010 12:45 pm, edited 1 time in total.
OlympiaLogger
 
Posts: 3
Joined: Fri Jan 15, 2010 10:50 am

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

PostBy admin on Fri Jan 15, 2010 4:17 pm

ops, and gallery call in place too
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 OlympiaLogger on Fri Jan 15, 2010 5:06 pm

"...ops, and gallery call in place too."

Sorry, but I'm not sure what that means.
I know what the gallery call is but that's about it!
If it's what I think you're asking for, it's in the code box in my first post.
OlympiaLogger
 
Posts: 3
Joined: Fri Jan 15, 2010 10:50 am

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

PostBy Gary Blackburn on Wed Jan 20, 2010 10:05 am

Hello and thank you for the plug in. I have reviewed this section and other sections of the forum only to notice that while my issue might fall under the same category, I can't seem to use any of it to help my situation. It would be awesome to get a reply back because I've been looking for a plug-in like this to put on my site. I want to showcase my art and this seems like the best way to start.

I'm having the issue where FCG will take up space on my page above my blog but it doesn't appear at all. Image

Here is a link to my website: garyblackburn.org so you see what I mean.
I couldn't seem to make this plug-in work and I wasn't sure if I was running conflicting plug-ins or not. To note the gallery ones that I have:
Yet Another Photoblog (YAPB)
Tubepress
Grand Flash Album Gallery
I deactivated these and still got the same results. To test this plug-in with as little worry as possible, I decided to use the default kubrick theme to try and get it working. After watching the installation/setup video several times, I went over my settings to make sure everything was how it should be. My only doubts are within the code as well as the size of my images. I'm using 640x480 jpg's.

here's the code:
Code: Select all
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/

get_header(); ?>

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

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

         <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
            <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
            <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>

            <div class="entry">
               <?php the_content('Read the rest of this entry &raquo;'); ?>
            </div>

            <p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>
         </div>

      <?php endwhile; ?>

      <div class="navigation">
         <div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
         <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
      </div>

   <?php else : ?>

      <h2 class="center">Not Found</h2>
      <p class="center">Sorry, but you are looking for something that isn't here.</p>
      <?php get_search_form(); ?>

   <?php endif; ?>

   </div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>


Thank you. I can't wait to have this working.
Gary Blackburn
 
Posts: 2
Joined: Wed Jan 20, 2010 9:39 am

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

PostBy Gary Blackburn on Wed Jan 20, 2010 1:25 pm

Wow so I figured it out 2 hours later. I typed '5 seconds' in the slide display duration field and I don't think it liked the "seconds" word in there. That's why nothing came up at all.

Now I'm having issues with the carousel not moving, I can't see my text, I'm having trouble fitting FCG into my page so it lines up nicely over my blog area and alligns with the collumns instead of appearing underneath it, and the pictures aren't fading across like on the front page of this website.

Should I be wrapping FCG in a <div> tag? If so how?


Thank you again.
Gary Blackburn
 
Posts: 2
Joined: Wed Jan 20, 2010 9:39 am

PreviousNext

Return to Getting Started

Who is online

Users browsing this forum: No registered users and 0 guests