}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 1212
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');
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 1212
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.
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 1212
8
Hi,
What is the URL to the category image that you expect to see for your first post in the gallery?
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 1212
10
Yes, I noticed that you had reinstalled WP in your root directory.
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 1212
16
Ok, understood, I see it now. What category have you selected for One Category?
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 1212
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.
Developing plugins for the community represents a considerable investment of my time and energy. If you have found these plugins useful, please consider making a donation to help support future development. Your support will be much appreciated. Thank you!