Forum

Please make sure that you have read the documentation and extensive resources provided on this site before posting your question!

Dynamic Content Gallery Resources

DCG Version 4.0 beta is now available for download and testing. This is a development version and not recommended for live sites. Read more here.

Note that the current stable release of the DCG is version 3.3.5.

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




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

Minimum search word length is 3 characters - maximum search word length is 84 characters

Topic RSS
Black Box Appears without loading the images
Status: closed
January 26, 2010
12:22 pm
psivait
Guest

Hi,

Firstly sorry for posting this in a separate topic as previous issues discussed were not helpful for my problem. I am a novice user and I am here to get a solution for my strange problem.

In my theme, I have included the code in index.php file, where I am getting only a black screen.

I uploaded the screenshot for your reference. Its url is is http://tinypic.com/r/2w7pmk4/6

Kindly help asap.

For your information, my index.phpgoes like this..

/**************************INDEX.PHP*******************************/

<?php get_header(); ?>

<!– BEGIN content –>
<div id="content">

dynamic_content_gallery();

    <!– begin featured news –>

    <div class="featured">
    <h2>Featured News</h2>

<div id="featured">
        <?php
        $tmp_query = $wp_query;
        query_posts('showposts=3&cat=' . get_cat_ID(dp_settings('featured')));
        if (have_posts()) :
        while (have_posts()) : the_post();
        ?>
        <!– begin post –>
        <div class="fpost">
            <a href="<?php the_permalink(); ?>"><?php dp_attachment_image($post->ID, 'thumbnail', 'alt="' . $post->post_title . '"'); ?></a>
            <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
            <p class="details"></p>
                         <p><?php echo dp_clean($post->post_content, 300); ?></p>
            
        </div>
        <!– end post –>
        <?php endwhile; endif; ?>
    </div>

</div>
    
    <!– end featured news –>

    
    <?php
    $wp_query = $tmp_query;
    if (have_posts()) :
    $odd = false;
    while (have_posts()) : the_post();
    $odd = !$odd;
    ?>
    
    <!– begin post –>
    <div class="<?php if ($odd) echo 'uneven '; ?>post">
    <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
    <a href="<?php the_permalink(); ?>"></a>
    <?php $screen = get_post_meta($post->ID,'screen', true); ?>
            <img src="<?php echo ($screen); ?>" width="181" height="100" alt=""  />
    
                     <p><?php echo dp_clean($post->post_content, 150); ?></p>

    <div class="postmeta">
    <p class="category"><?php the_category(', '); ?></p>
    <p class="comments"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></p>
    </div>
    </div>
    <!– end post –>
    
    <?php endwhile; ?>
    
        <div class="postnav">
        <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>
        </div>
    
    <?php else : ?>
    <div class="notfound">
    <h2>Not Found</h2>
    <p>Sorry, but you are looking for something that is not here.</p>
    </div>
    <?php endif; ?>

</div>
<!– END content –>

<?php get_sidebar(); get_footer(); ?>
/******************************************************************/

I request you people to help me out. Thanks in Advance!

January 26, 2010
6:26 pm
psivait
Guest

Hi,

Can somebody help me here?

January 26, 2010
8:57 pm
Ade
Admin
Forum Posts: 2490
Member Since:
August 25, 2008
Offline

Hi,

Your URL would be useful so that I can see the problem in action.

Assuming the code you posted is as per the code you are using, the dynamic_content_gallery code needs to be in PHP tags, like this:

<?php dynamic_content_gallery(); ?>

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
Forum Timezone: UTC 1

Most Users Ever Online: 28

Currently Online:
9 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

johnbroome: 13

sjpeaches: 12

speedyp: 12

CherylMcL: 10

littlemerry: 8

lsnoei: 8

Member Stats:

Guest Posters: 770

Members: 1297

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 7

Topics: 978

Posts: 4293

Newest Members: chargers3, jwhetstone, robert, Mak-Donuts, kilerb, Marian Bamboi

Moderators:

Administrators: Ade (2490)