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

Cannot get DCH to work on WP291 with thesis 16

closed
UserPost

1:47 am
January 6, 2010


worldviewpr

Guest

1

I may not be doing this correctly, but am having problems with DCG using OpenHook plugin. I have feature box set to appear above content and place

<?php dynamic_content_gallery(); ?>

in the Feature Box form of the OpenHook Plugin.

I believe I have done the set up correctly with a default image, selecting one category (events), choosing jquery method, put in colors from theme set up, etc.

At first when trying to place feature box across entire top above content I got a huge gray box.

Now in trying to place FB just above content (sidebar content sidebar 3 col mode) I get nothing.

What did I miss at

http://www.halfwaytoconcord.com

Also wondering how to configure a slide box that would go across the top; any examples of this?

3:08 am
January 6, 2010


Ade

Admin

posts 2384

2

Hi,

I'll need to see the page with the DCG not working. It looks like you've removed it.

Also, with Thesis 1.6, do you really need to use Openhook? You should be able to add the hook directly to custom-functions.php.

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

3:21 am
January 6, 2010


worldviewpr

Guest

3

OK, I have deactivated openhook and will try straight in custom.php

but I am fuzzy on the syntax for this do I just add

<?php add_action('thesis_hook_feature_box', 'dynamic_content_gallery'); ?>

3:39 am
January 6, 2010


Ade

Admin

posts 2384

4

Have a look at this article by another Thesis user, using the DCG:

http://blog.matthewcampagna.co…..box-setup/

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

4:03 am
January 6, 2010


worldviewpr

Guest

5

Just isn't working.

All it produces is a long gray box above normal content

this is what I put into custom.css

/* css for feature box */ .custom #feature_box { padding-right: 0; padding-left: 0; }

this is what I have in custom_functions.php

/*move the nav bar below the header*/ remove_action(’thesis_hook_before_header’, ‘thesis_nav_menu’); add_action(’thesis_hook_after_header’, ‘thesis_nav_menu’);

//featured content with dynamic content gallery plugin function featured_content() { if( function_exists( 'dynamic_content_gallery' ) ) : dynamic_content_gallery(); endif; } add_action('thesis_hook_feature_box', 'featured_content');

I can't even get the nav menu above the header. Apparently nothing works.

So again I most not have sytntax correct even though I copied and pasted both for nav menu example and for dcg. 

any clue?


4:11 am
January 6, 2010


Ade

Admin

posts 2384

6

Copy it exactly as shown below:

//featured content with dynamic content gallery plugin
function featured_content() {
    if( function_exists( 'dynamic_content_gallery' ) ) :
        dynamic_content_gallery();
    endif;
}
add_action('thesis_hook_feature_box', 'featured_content');

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

4:21 am
January 6, 2010


worldviewpr

Guest

7

Post edited 2:23 am – January 7, 2010 by Ade


sorry no difference

still shows long gray box between sidebars above content 

wp291

thesis 16

dcg 301

custom_functions.php

<?php // Using hooks is absolutely the smartest, most bulletproof way to implement things like plugins, // custom design elements, and ads. You can add your hook calls below, and they should take the // following form: // add_action('thesis_hook_name', 'function_name'); // The function you name above will run at the location of the specified hook. The example // hook below demonstrates how you can insert Thesis' default recent posts widget above // the content in Sidebar 1: // add_action('thesis_hook_before_sidebar_1', 'thesis_widget_recent_posts'); // Delete this line, including the dashes to the left, and add your hooks in its place. /** * function custom_bookmark_links() – outputs an HTML list of bookmarking links * NOTE: This only works when called from inside the WordPress loop! * SECOND NOTE: This is really just a sample function to show you how to use custom functions! * * @since 1.0 * @global object $post */ function custom_bookmark_links() { global $post; ?> <ul class="bookmark_links"> <li><a rel="nofollow" href="http://delicious.com/save?url=<?php urlencode(the_permalink()); ?>&amp;title=<?php urlencode(the_title()); ?>" onclick="window.open('http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url=<?php urlencode(the_permalink()); ?>&amp;title=<?php urlencode(the_title()); ?>', 'delicious', 'toolbar=no,width=550,height=550'); return false;" title="Bookmark this post on del.icio.us">Bookmark this article on Delicious</a></li> </ul> <?php } /* Remove Thesis Attribution */ remove_action('thesis_hook_footer', 'thesis_attribution'); /* Add Copyright in footer */ function copyright() { echo '<p>Halfway To Concord is Copyright &copy; 2004&ndash;' . date('Y') . '</p>'; } add_action('thesis_hook_footer', 'copyright', '2009'); /*move the nav bar below the header*/ remove_action(’thesis_hook_before_header’, ‘thesis_nav_menu’); add_action(’thesis_hook_after_header’, ‘thesis_nav_menu’); //featured content with dynamic content gallery plugin function featured_content() { if( function_exists( 'dynamic_content_gallery' ) ) : dynamic_content_gallery(); endif; } add_action('thesis_hook_feature_box', 'featured_content');

custom.css

/* File: custom.css Description: Custom styles for Thesis BASIC USAGE: If you have enabled the custom stylesheet in the Thesis options panel, the <body> tag will be appended with the "custom" class, like so: <body class="custom">. You can use the "custom" class to override *any* CSS declarations contained in the style.css file. For example, if you wish to change the default link color to green, you would add the following declarations to this file: .custom a, .custom a:visited { color: #090; } <— This makes links green .custom a:hover { color: #00f; } <— This makes links blue when you mouse over them WHY THIS WORKS: By using the "custom" class, you are creating more specific CSS declarations for HTML elements. CSS styling is applied through rules of specificity, and because declarations prepended with .custom are more specific, they get applied when the page is rendered! More information about styling your Thesis installation using this file can be found in the User's Guide: http://diythemes.com/thesis/rtfm/customizing-thesis-with-customcss/&quot; target="_blank">http://diythemes.com/thesis/rt…..customcss/ */ /* css for feature box */ .custom #feature_box { padding-right: 0; padding-left: 0; } /* REMOVE COMMENT COUNT FROM HOME PAGE*/ function remove_comment_count() { if (is_front_page()) remove_action('thesis_hook_after_post', 'thesis_comments_link'); else add_action('thesis_hook_after_post', 'thesis_comments_link'); } add_action('thesis_hook_before_post','remove_comment_count'); /* ADD DROP DOWN MENU NAV */ .custom ul#tabs li ul {display:none; position:absolute; list-style:none;} .custom ul#tabs li ul li {float:none;} .custom ul#tabs li:hover ul {display:block;} .custom ul#tabs { margin-bottom:-1px;} /* Fix for IE6 */ /* Drop Cap */ .custom .format_text .drop_cap { font-family: Cambria; font-weight: bold; color: #521C16; } /* pullquotes with double bar above and below */ .custom blockquote.left, .custom blockquote.right { width: 200px; margin: 5px 15px 5px 0; padding: 5px 0; border: 3px double #AAAAAA; border-width: 3px 0; font-size: 1.4em; text-align: center; } .custom blockquote.left { float: left; } .custom blockquote.right { float: right; } /* -sociable- */ div.sociable { margin: 16px 0; } span.sociable_tagline { position: relative; } span.sociable_tagline span { display: none; width: 14em; } span.sociable_tagline:hover span { position: absolute; display: block; top: -5em; background: #ffe; border: 1px solid #ccc; color: black; line-height: 1.25em; } .sociable span { display: block; } .sociable ul { display: inline; margin: 0 !important; padding: 0 !important; } .sociable ul li { background: none; display: inline !important; list-style-type: none; margin: 0; padding: 1px; } .sociable ul li:before { content: ""; } .sociable img { float: none; width: 16px; height: 16px; border: 0; margin: 0; padding: 0; } .sociable-hovers { opacity: .4; -moz-opacity: .4; filter: alpha(opacity=40); } .sociable-hovers:hover { opacity: 1; -moz-opacity: 1; filter: alpha(opacity=100); }

settings

gallery width 460

gallery height 250

10:52 am
January 6, 2010


Ade

Admin

posts 2384

8

I need to see this gray box. I can't see it on your home page. Where is it exactly?

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

7:22 pm
January 6, 2010


worldviewpr

Guest

9

I will have to turn everything back on. But I can't have it on for hours so if there is a time certain you can look let me know so I can be around to set up and then take down so I don't chase away my thousand visitors a day. Your convenience.

7:26 pm
January 6, 2010


Ade

Admin

posts 2384

10

I'm online now.

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

7:29 pm
January 6, 2010


worldviewpr

Guest

11

ok give me a minute

7:29 pm
January 6, 2010


worldviewpr

Guest

12

ok give me a minute

7:30 pm
January 6, 2010


worldviewpr

Guest

13

there you go.

scroll down to see 8 teasers

7:36 pm
January 6, 2010


Ade

Admin

posts 2384

14

Go to the DCG's Settings Page, Restrict Scripts loading, and select Home Page.

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

2:17 am
January 7, 2010


worldviewpr

Guest

15

I have tried with open hook but same results so going to ditch openhook and start fro scratch in custom_functions.php

9:59 pm
January 7, 2010


worldviewpr

Guest

16

I have set for mo tools now instead of jquery and now produces this (see graphic) I hope this means we are getting closer.

dcg above content

11:48 pm
January 7, 2010


worldviewpr

Guest

17

Very frustrating.

HOME, FULL URL, ONE CATEGORY with JQUERY get "Dynamic Content Gallery Error: View page source for details." (but did not select page but category)

In each case where ONE CATEGORY is selected, Not Able to Select CATEGORY created for SLIDESHOW, keeps going back to ALL after save.

HOME, FULL URL, ONE CATEGORY with MOOTOOLS produces black box above, no error message 9 events with photos listed in view source

HOME, FULL URL, MULTI CATEGORY with MOOTOOLS produces black box no error message, no error message 9 events with photos listed in view source produces long gray box that pushes content area down two feet

I have checked against

Event Calendar 3.2.2

HyperCache

Web Optimizer

As most likely suspects of possible conflict, but same result. Will dig further. 

12:18 am
January 8, 2010


worldviewpr

Guest

18

GREAT NEWS!

I was able to produce an ERROR 8, the one that is not possible!

<!-- DCG Error Message 8: The wp_query failed to find any Posts. -->
<!-- Rating: Critical. Fix error in order to display gallery. -->
<!-- Fix: Deactivate and reactivate the plugin and try again. -->

This after I deactivated all the plugins I hadn't tested, but DCG was still misbehaving per above.

I deactivated DCG, then gently reactivated usual plugins.

Reactivated DCG and

voila!

I will deactivate and reactivate

This produces 

Dynamic Content Gallery Error: View page source for details.

But View Source does not provide a specific error message7

<!-- Dynamic Content Gallery plugin version 3.1 http://www.studiograsshopper.ch  Begin scripts -->
<!-- End of Dynamic Content Gallery scripts -->

12:33 am
January 8, 2010


Ade

Admin

posts 2384

19

Hi,

Something very strange going on here… :-/

I saw that you emailed me a login. I'll login and take a look.

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

9:39 am
January 8, 2010


worldviewpr

Guest

20

thanks for the help and am happy to send donation.

Now on to css for the box!