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.

 
You must be logged in to post Login Register


Register? | Lost Your Password?

Search Forums:


 






Minimum search word length is 3 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

DCG Not working on homepage, i've tried everything, help plz!

awaiting user
UserPost

3:54 pm
June 19, 2010


zelion

Guest

1

WP version 3.0

http://www.thecreativebang.com/mysacoupons

 

I have placed the DCG Code in the header.php

No errors are displayed on the DCG settings page

DCG is the only plug in activated

Image File Management: partial URL | Images folder is: http://www.thecreativebang.com/mysacoupons/topdeals/
Gallery Method: one-category | Default Images folder is: http://www.thecreativebang.com/mysacoupons/topdeals/
Slide Pane Description: manual
Page Source Error messages: on | Javascript Framework used: mootools
Scripts restricted to: Home Page

 

All I get is a black box. Am I placing the code in the wrong spot in the header.php?

 

 

<?php
global $PPT;
/* ================ PREMIUM PRESS CUSTOM OPTIONS =========================== */
$GLOBALS['premiumpress']['language'] = get_option("language");
$GLOBALS['premiumpress']['logo_url'] = get_option('logo_url');
$GLOBALS['premiumpress']['theme'] = get_option('theme');
$GLOBALS['premiumpress']['theme_folder'] = "couponpress";
$GLOBALS['premiumpress']['imagestorage_link'] = get_option('imagestorage_link');
$GLOBALS['premiumpress']['currency_symbol'] = get_option("currency_code");
$GLOBALS['couponpress']['submit_url'] = get_option("submit_url");
$GLOBALS['premiumpress']['submit_url'] = $GLOBALS['couponpress']['submit_url'];
$GLOBALS['premiumpress']['analytics_tracking'] = get_option("analytics_tracking");
/********************** GENERAL CONFIGURATION  ***********************/
/*********************************************************************/
$GLOBALS['couponpress']['license_key'] = get_option("license_key");
$GLOBALS['couponpress']['theme'] = get_option('theme');
$GLOBALS['couponpress']['language'] = get_option("language");
$GLOBALS['couponpress']['system'] = get_option("system");
$GLOBALS['couponpress']['excluded_pages'] = get_option("excluded_pages");
$GLOBALS['couponpress']['article_cats'] = get_option("article_cats");
$GLOBALS['couponpress']['copyright'] = get_option("copyright");
$GLOBALS['couponpress']['logo_url'] = get_option("logo_url");
$GLOBALS['couponpress']['faviconLink'] = get_option("faviconLink");
$GLOBALS['couponpress']['imagestorage_link'] = get_option("imagestorage_link");
$GLOBALS['couponpress']['display_search_link'] = get_option("display_search_link");
$GLOBALS['couponpress']['currency_code'] = get_option("currency_code");
/********************** PAGE CONFIGURATION  ***********************/
/*********************************************************************/
$GLOBALS['couponpress']['display_searchbox'] = get_option("display_searchbox");
$GLOBALS['couponpress']['dashboard_url'] = get_option("dashboard_url");
 
$GLOBALS['couponpress']['display_categories_box'] = get_option("display_categories_box"); 
  $GLOBALS['couponpress']['display_submit'] = get_option("display_submit");
$GLOBALS['couponpress']['manage_url'] = get_option("manage_url");
$GLOBALS['couponpress']['display_scroller'] =  get_option("display_scroller");
 
/********************** ADVERTISING CONFIGURATION  ***********************/
/*********************************************************************/
$GLOBALS['couponpress']['display_previewimage'] =  get_option("display_previewimage");
  $GLOBALS['couponpress']['advert_top'] =  get_option("advertising_top_checkbox");
$GLOBALS['adminads'] = 0;
 
/****************** LINK CLOAKING CONFIGURATION  ***********************/
/***********************************************************************/
$GLOBALS['couponpress']['linkcloak_enabled'] =  get_option("display_linkcloak");
  $GLOBALS['couponpress']['linkcloak_url'] =  get_option("tc_linkcloak");
/********************** ITEM PRUNE CONFIGURATION  ***********************/
/************************************************************************/
  $GLOBALS['couponpress']['post_prun'] = get_option("post_prun");
$GLOBALS['couponpress']['prun_period'] = get_option("prun_period");
$GLOBALS['couponpress']['prun_status'] = get_option("prun_status");
/* ================ PREMIUM PRESS CATEGORY ID =========================== */
if(isset($wp_query)){
$category = $wp_query->get_queried_object();
if(is_object($category) && isset($category->cat_ID) ){
$GLOBALS['premiumpress']['catID'] = $category->cat_ID;
$GLOBALS['premiumpress']['catName'] = $category->name;
$GLOBALS['premiumpress']['catDesc'] = $category->description;
}
}
/* ================ PREMIUM PRESS LANGUAGE FILE =========================== */
$PPT->Language();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
<head>
<meta http-equiv="Content-type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title><?php wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>
    <link rel="shortcut icon" href="<?php echo get_option("faviconLink"); ?>" type="image/x-icon" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php echo stripslashes(get_option("google_webmaster_code")); ?>
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); couponpress_header(); ?>
</head>
<body>
<div id="body-wrapper">
<?php 
if(file_exists($PPT->FilterPath()."/wp-content/themes/couponpress/themes/".$GLOBALS['premiumpress']['theme']."/header.php")){
include($PPT->FilterPath()."/wp-content/themes/couponpress/themes/".$GLOBALS['premiumpress']['theme'].'/header.php');
}else{ 
?>
<div id="page-container">
<div id="coupon_wapper">
<!– ********************** COUPONPRESS TOP HEADER  ***********************/
/************************************************************************ –>
<div class="page-container-inner"> 
    
    <div class="page_logo_wrapper">
    
       <div id="Logo">
   
       <a href="<?php bloginfo('url'); ?>/">
<img src="<?php echo $PPT->Logo(); ?>" alt="<?php bloginfo('name'); ?>">
</a>
        
        </div>
    
<div id="page-header">
        
<ul>  
                
                <li class="last"><a class="rsslink" rel="nofollow" href="<?php bloginfo('rss_url'); ?>"><?php echo $GLOBALS['_LANG']['3x1']; ?></a></li>
        
                 <?php echo $PPT->Pages(); ?>                  
 
<li><a href="<?php bloginfo('url'); ?>"><span><?php echo $GLOBALS['_LANG']['_home']; ?></span></a></li>
            </ul>
            
            <div class="clear"></div>            
            
</div>
<?php if($GLOBALS['couponpress']['display_searchbox'] == "top"){ ?>
<form method="get" id="TopCouponSearch" action="<?php bloginfo('url'); ?>" role="search">
<div class="searchcouponpress">
<input type="text" class="box" name="s" id="s" value="<?php echo $GLOBALS['_LANG']['_enterkey']; ?>" onfocus='javascript:clearMe();'/>
<button class="btn" title="<?php echo $GLOBALS['_LANG']['_search']; ?>"><?php echo $GLOBALS['_LANG']['_search']; ?></button>
</div>
</form>
<?php }else{ ?>
<div class="banner"><?php dynamic_content_gallery(); ?></div>
<?php } ?>
        
        
        </div>
        
        <div class="clear"></div>
        
 
<div id="page-nav-top" class="page-navigation">
<ul id="nav" class="clearfix">
             <?php echo $PPT->Categories("","",true);  ?>  
</ul>
</div> 
        
<?php } ?>
 
<div id="page-content" class="clearfix">
<?php 
if(file_exists(FilterPath()."/wp-content/themes/couponpress/_slider.php") && $GLOBALS['couponpress']['display_scroller'] == "yes" && !is_page() && !is_single()){
include(FilterPath()."/wp-content/themes/couponpress/_slider.php");
}
?>
<div class="clear"></div>
<?php if(!isset($GLOBALS['submit_page'])){ ?><div id="main-content"><?php } ?>

<?php

global $PPT;

/* ================ PREMIUM PRESS CUSTOM OPTIONS =========================== */

$GLOBALS['premiumpress']['language'] = get_option("language");

$GLOBALS['premiumpress']['logo_url'] = get_option('logo_url');

$GLOBALS['premiumpress']['theme'] = get_option('theme');

$GLOBALS['premiumpress']['theme_folder'] = "couponpress";

$GLOBALS['premiumpress']['imagestorage_link'] = get_option('imagestorage_link');

$GLOBALS['premiumpress']['currency_symbol'] = get_option("currency_code");

$GLOBALS['couponpress']['submit_url'] = get_option("submit_url");

$GLOBALS['premiumpress']['submit_url'] = $GLOBALS['couponpress']['submit_url'];

$GLOBALS['premiumpress']['analytics_tracking'] = get_option("analytics_tracking");

/********************** GENERAL CONFIGURATION  ***********************/

/*********************************************************************/

$GLOBALS['couponpress']['license_key'] = get_option("license_key");

$GLOBALS['couponpress']['theme'] = get_option('theme');

$GLOBALS['couponpress']['language'] = get_option("language");

$GLOBALS['couponpress']['system'] = get_option("system");

$GLOBALS['couponpress']['excluded_pages'] = get_option("excluded_pages");

$GLOBALS['couponpress']['article_cats'] = get_option("article_cats");

$GLOBALS['couponpress']['copyright'] = get_option("copyright");

$GLOBALS['couponpress']['logo_url'] = get_option("logo_url");

$GLOBALS['couponpress']['faviconLink'] = get_option("faviconLink");

$GLOBALS['couponpress']['imagestorage_link'] = get_option("imagestorage_link");

$GLOBALS['couponpress']['display_search_link'] = get_option("display_search_link");

$GLOBALS['couponpress']['currency_code'] = get_option("currency_code");

/********************** PAGE CONFIGURATION  ***********************/

/*********************************************************************/

$GLOBALS['couponpress']['display_searchbox'] = get_option("display_searchbox");

$GLOBALS['couponpress']['dashboard_url'] = get_option("dashboard_url");

 

$GLOBALS['couponpress']['display_categories_box'] = get_option("display_categories_box"); 

  $GLOBALS['couponpress']['display_submit'] = get_option("display_submit");

$GLOBALS['couponpress']['manage_url'] = get_option("manage_url");

$GLOBALS['couponpress']['display_scroller'] =  get_option("display_scroller");

 

/********************** ADVERTISING CONFIGURATION  ***********************/

/*********************************************************************/

$GLOBALS['couponpress']['display_previewimage'] =  get_option("display_previewimage");

  $GLOBALS['couponpress']['advert_top'] =  get_option("advertising_top_checkbox");

$GLOBALS['adminads'] = 0;

 

/****************** LINK CLOAKING CONFIGURATION  ***********************/

/***********************************************************************/

$GLOBALS['couponpress']['linkcloak_enabled'] =  get_option("display_linkcloak");

  $GLOBALS['couponpress']['linkcloak_url'] =  get_option("tc_linkcloak");

/********************** ITEM PRUNE CONFIGURATION  ***********************/

/************************************************************************/

  $GLOBALS['couponpress']['post_prun'] = get_option("post_prun");

$GLOBALS['couponpress']['prun_period'] = get_option("prun_period");

$GLOBALS['couponpress']['prun_status'] = get_option("prun_status");

/* ================ PREMIUM PRESS CATEGORY ID =========================== */

if(isset($wp_query)){

$category = $wp_query->get_queried_object();

if(is_object($category) && isset($category->cat_ID) ){

$GLOBALS['premiumpress']['catID'] = $category->cat_ID;

$GLOBALS['premiumpress']['catName'] = $category->name;

$GLOBALS['premiumpress']['catDesc'] = $category->description;

}

}

/* ================ PREMIUM PRESS LANGUAGE FILE =========================== */

$PPT->Language();

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">

<head>

<meta http-equiv="Content-type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

<title><?php wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>

    <link rel="shortcut icon" href="<?php echo get_option("faviconLink"); ?>" type="image/x-icon" />

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

<?php echo stripslashes(get_option("google_webmaster_code")); ?>

<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>

<?php wp_head(); couponpress_header(); ?>

</head>

<body>

<div id="body-wrapper">

<?php 

if(file_exists($PPT->FilterPath()."/wp-content/themes/couponpress/themes/".$GLOBALS['premiumpress']['theme']."/header.php")){

include($PPT->FilterPath()."/wp-content/themes/couponpress/themes/".$GLOBALS['premiumpress']['theme'].'/header.php');

}else{ 

?>

<div id="page-container">

<div id="coupon_wapper">

<!– ********************** COUPONPRESS TOP HEADER  ***********************/

/************************************************************************ –>

<div class="page-container-inner"> 

    

    <div class="page_logo_wrapper">

    

       <div id="Logo">

   

       <a href="<?php bloginfo('url'); ?>/">

<img src="<?php echo $PPT->Logo(); ?>" alt="<?php bloginfo('name'); ?>">

</a>

        

        </div>

    

<div id="page-header">

        

<ul>  

                

                <li class="last"><a class="rsslink" rel="nofollow" href="<?php bloginfo('rss_url'); ?>"><?php echo $GLOBALS['_LANG']['3x1']; ?></a></li>

        

                 <?php echo $PPT->Pages(); ?>                  

 

<li><a href="<?php bloginfo('url'); ?>"><span><?php echo $GLOBALS['_LANG']['_home']; ?></span></a></li>

            </ul>

            

            <div class="clear"></div>            

            

</div>

<?php if($GLOBALS['couponpress']['display_searchbox'] == "top"){ ?>

<form method="get" id="TopCouponSearch" action="<?php bloginfo('url'); ?>" role="search">

<div class="searchcouponpress">

<input type="text" class="box" name="s" id="s" value="<?php echo $GLOBALS['_LANG']['_enterkey']; ?>" onfocus='javascript:clearMe();'/>

<button class="btn" title="<?php echo $GLOBALS['_LANG']['_search']; ?>"><?php echo $GLOBALS['_LANG']['_search']; ?></button>

</div>

</form>

<?php }else{ ?>

<div class="banner"><?php dynamic_content_gallery(); ?></div>

<?php } ?>

        
        

        </div>

        

        <div class="clear"></div>

        

 

<div id="page-nav-top" class="page-navigation">

<ul id="nav" class="clearfix">

             <?php echo $PPT->Categories("","",true);  ?>  

</ul>

</div> 

        

<?php } ?>

 

<div id="page-content" class="clearfix">

<?php 

if(file_exists(FilterPath()."/wp-content/themes/couponpress/_slider.php") && $GLOBALS['couponpress']['display_scroller'] == "yes" && !is_page() && !is_single()){

include(FilterPath()."/wp-content/themes/couponpress/_slider.php");

}

?>

<div class="clear"></div>

<?php if(!isset($GLOBALS['submit_page'])){ ?><div id="main-content"><?php } ?>

 

 

3:44 pm
June 20, 2010


Ade

Admin

posts 2384

2

Hi,

Looking at the code you have posted, the dynamic_content_gallery function will only run if the couponpress display searchbox is not set to "top". I guess this is a setting you need to deal with in your theme options.

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

3:31 pm
June 21, 2010


zelion

Guest

3

I'm sorry but what to do you mean when you say "if the couponpress DIS to top?"

7:08 pm
June 23, 2010


Ade

Admin

posts 2384

4

I'm guessing, based on what I can see in the code you posted. Does your theme have options for the couponpress display? If so, set it to anything other than "top".

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