Forum

 
You must be logged in to post Login Register


Register? | Lost Your Password?

Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

DCG Gallery not showing. Code placing might be issue? Please help

fixed
UserPost

7:23 pm
February 10, 2010


maitravelsite

Member

posts 3

1

Hi

First of all congratulations on the plugin. I have been trying to install and get one running for over a month now with no success. Never got  any help and instructions were very scarce or non existant. Yours has a great site with details, well explained and a  simple plugin interface.

However I am not able to get it running. I suppose it has something to with the code placement, because the rest has all been set. I really need some help cause i have very limited coding knowledge.

This is the info I suppose you need:

I use WP2.9.1, and my url is http://www.maitravelsite.com

The theme I use is Nice Stars

I have the Featured Content Gallery plugin that comes with the theme deactivated

I want the DCG in my static home page, not where my blog posts are (page called Journal)

There is no  home.php

This is the code for the index.php

<?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(); ?>">
       <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="postdate"><img src="<?php bloginfo('template_url'); ?>/images/date.png" /> <?php the_time('F jS, Y') ?> <img src="<?php bloginfo('template_url'); ?>/images/user.png" /> <?php the_author() ?> <?php if (current_user_can('edit_post', $post->ID)) { ?> <img src="<?php bloginfo('template_url'); ?>/images/edit.png" /> <?php edit_post_link('Edit', '', ''); } ?></div>
   
       <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>
                            <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><!–/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(); ?>

Don't know if you need it, but this is the code for page.php:

<?php get_header(); ?>
<div class="span-24" id="contentwrap">
 <div class="span-16">
  <div id="content"> 

   <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
   <div class="post" id="post-<?php the_ID(); ?>">
   <h2 class="title"><?php the_title(); ?></h2>
    <div class="entry">
<?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) { the_post_thumbnail(array(300,225), array("class" => "alignleft post_thumbnail")); } ?>
     <?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
 
     <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
 
    </div>
   </div>
   <?php endwhile; endif; ?>
  <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
  </div>
 </div>
 

<?php get_sidebars(); ?>

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

 

I really hope you can help me out as I am going bananas already.

Many thanks in advance.

Federico

10:40 pm
February 10, 2010


Ade

Admin

posts 1140

2

Hi,

I would try placing this code in page.php, just below the div id="content" line:

<?php if( is_front_page() ) {

dynamic_content_gallery();

} ?>

Then, make sure you select "Home page" option in the Restrict Scripts options in the DCG's Settings page.

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?

2:02 am
February 12, 2010


maitravelsite

Member

posts 3

3

Thank you! Thank you very much. After weeks of trial and error, moving codes and what not DCG has done the deal and your support has been fundamental as i did not know where to plce the code. I will certainly spread the word about DCG> To see what it looks like in my travel blog check http://www.maitravelsite.com

Regards,

Federico

10:14 am
February 12, 2010


Ade

Admin

posts 1140

4

Great! Glad it worked. Smile

Nice site, by the way. Smile

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?