Forum

You must be logged in to post Login Register

Search Forums:


 






Notice: Thesis Theme Users – Read This!

awaiting user
UserPost

1:21 am
July 24, 2009


Ade

Admin

posts 817

1

This article explains how to use the DCG with the Thesis Theme:

http://www.wolf-howl.com/blogg…..er-thesis/


Thanks, Michael! :-)

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

9:06 am
December 9, 2009


Ade

Admin

posts 817

2

UPDATE: 7 December 2009

Version 3.0 of the DCG introduces a few coding changes which means that the fix posted above doesn't work.

To get DCG v3 to work with Thesis, use this code in the relevant Thesis Open Hook (for example, if you only want to display the DCG on your homepage):

<?php if( is_home() ) {
dynamic_content_gallery();
} ?>

Note, you no longer have to include global $post, as described in Michael's original article.


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

7:24 am
December 22, 2009


WTFHawaii

Member

posts 4

3

}Hi, posted a general question 20 minutes ago.. .sorry didn't find this first.


I tried to update my thesis code as you desribe above… here's what I have now that no longer works

______


function featcc() {

if (is_home()){ global $post; include (ABSPATH . '/wp-content/plugins/dynamic-content-gallery-plugin/dynamic-gallery.php'); 

}

}


add_action('thesis_hook_feature_box', 'featcc');

______

Can you please explain which part of that code I need to change… I understand that I have to delete global$post and change some of the code… but I'm not sure what exactly.


thanks so much for any help you can offer!


best,

adam

8:27 am
December 22, 2009


Ade

Admin

posts 817

4

Post edited 8:28 am – December 22, 2009 by Ade


Adam,

Replace this:

global $post; include (ABSPATH . '/wp-content/plugins/dynamic-content-gallery-plugin/dynamic-gallery.php');

with this:


dynamic_content_gallery();

That should work.

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

3:57 am
January 7, 2010


worldviewpr

Concord, CA

Member

posts 15

5

1. I removed openhook and restarted in custom_function.php

With this code in custom_function.php

/* 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');


2. I switched from jquery and moo tools and now get solid black box above content where it should be with grey border despite instructions

see

http://www.halfwaytoconcord.com


The long gray box has disappeared as has the extra space below footer, or above header depending on how Feature Box was configured to appear.


3. Now trying to troubleshoot


10:48 am
January 7, 2010


Ade

Admin

posts 817

6

If you look at your page source, you will see that the DCG scripts are not being loaded into the header. I can't tell why this is happening.

However, you do have an error in the code you posted – remove the endif; from the code you posted. Sort this out and then see what happens.

I also notice that you have loads of javascript being loaded by various plugins etc. You are more likely to get a js conflict with the mootools script than with the jQuery script. I would be tempted to switch to the jQuery script to eliminate this possibility.

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

11:06 pm
February 25, 2010


Peter

Member

posts 14

7

Hi! I have a problem with my http://statsvitenskap.no/ site… I get the "ERROR" image for posts without specified images, even though I have specified the correct folder for the default images – and the images' names correspond to the category IDs! I think this might have happened after I put the wordpress installation in a subdirectory (it is now in http://statsvitenskap.no/wordpress/ , as opposed to previously, when it was in the root folder) any idea why this happens? I use wp2.9.2, thesis 1.6 and DCG 3.2.2 . (I have now changed the ERROR image to a more pleasing generic image while the problem persists…)

11:41 pm
February 25, 2010


Ade

Admin

posts 817

8

Hi,

What is the URL to the category image that you expect to see for your first post in the gallery?

Also, are you using Full URL or Partial URL?

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

11:55 pm
February 25, 2010


Peter

Member

posts 14

9

Actually.. I decided just to change the installation back to the root folder.. Now the problem is there only if I use the "one category" option – not the "multi option" that I normally use… Odd, though, isn't it? (And yes – I changed the defined folders when I changed the installation folders)

12:00 am
February 26, 2010


Ade

Admin

posts 817

10

Yes, I noticed that you had reinstalled WP in your root directory.

What is the URL to your category image?

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

12:03 am
February 26, 2010


Peter

Member

posts 14

11

wow.. fast response :)

http://statsvitenskap.no/wp-content/themes/thesis_…..ured/3.jpg

(for the category of the first post – "fagutvalget")

12:04 am
February 26, 2010


Peter

Member

posts 14

12

you want me to change to "one category" so you can see the error for yourself?

12:07 am
February 26, 2010


Peter

Member

posts 14

13

Post edited 12:09 am – February 26, 2010 by Peter


hmm.. actually I hadn't seen the list of "known incompatabilities".. could it be an issue with another plugin?

Here are my "wordpress surroundings":

WordPress-versjon:

2.9.2

MySQL-versjon:

5.0.81-community

PHP Version:

5.2.12

Apache Version:

2.2.14

Active Plugins:

akismet

amr-ical-events-list

capsman

dynamic-content-gallery-plugin

facebook-share-new

global-translator

google-analytics-dashboard

google-sitemap-generator

kb-advanced-rss-widget

simple-forum

tweetmeme

upgrade-notification-by-email

wp-db-backup

wpbook

wptouch

12:23 am
February 26, 2010


Ade

Admin

posts 817

14

Thanks for the info, but the gallery is working fine on your site – so I'm confused. What isn't working as expected?

For example, the gallery is picking up your category images and some Metabox images.

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

12:42 am
February 26, 2010


Peter

Member

posts 14

15

Post edited 12:43 am – February 26, 2010 by Peter


look again now… now I turned on the "One category" setting, and the default category images went away (metabox images are still there, though). When I moved the install to "wordpress/"-subfolder, I got this result on both "multi-option" and "one category".


(but as I said earlier – I changed the ERROR image with a generic, orange image)

12:45 am
February 26, 2010


Ade

Admin

posts 817

16

Ok, understood, I see it now. What category have you selected for One Category?

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

12:46 am
February 26, 2010


Peter

Member

posts 14

17

"All" – but I've tried different categories as well.

12:49 am
February 26, 2010


Ade

Admin

posts 817

18

The plugin expects there to be a category image called all.jpg.

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

1:02 am
February 26, 2010


Peter

Member

posts 14

19

Post edited 1:03 am – February 26, 2010 by Peter


hmm, ok. but firstly – why? why can't it use the default category images when choosing the "one category" option? and secondly, this doesn't explain the problem i had when i moved the install to a subfolder? (since i am about to test some new installations on the site, i really wanted to put wordpress in a subfolder)

1:18 am
February 26, 2010


Ade

Admin

posts 817

20

The category images are pulled in based on the category ID number. The "all" category option means there is no ID number, so I opted for using "all" as the basis of the default image filename.

This doesn't explain the problem you had when WP was located in a sub-folder. Not sure what to suggest for this.

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