Featured Content Gallery | WordPress Plugin | iePlexus

Images not in FCG

General WordPress and FCG plugin discussion

Images not in FCG

PostBy bjerreandersen on Sat Jan 15, 2011 7:21 am

Hi,

As a few others, I have a problem with pictures in FCG these days. My site: bjerreandersen.dk

I just installed the plugin and has not been able to make it work. To complicate things, I use it in a sidebar widget with the Featured Gallery Widget (http://www.frakmedia.net/wordpress/feat ... ery-widget).

As you can see, the FCG shows (on top in the right sidebar), but without images - even the links works. I've triblechecked the urls of the images - and I've tried to disable every single plugin, but without results.

Could it be my theme that is causing the problem??
bjerreandersen
 
Posts: 4
Joined: Sat Jan 15, 2011 7:14 am

Re: Images not in FCG

Thank you for using the Featured Content Gallery Forum
 

Re: Images not in FCG

PostBy admin on Mon Jan 17, 2011 9:57 am

give me screenshot of your fcg options page, also tell me how you add it, in what page, how gallery call looks like...
Yelena Khamidullina
Web Applications Developer, iePlexus

1. Check settings to exclude fcg-YOU conflict
2. Try to turn off all your plugins at once to exclude fcg-other plugin conflict
3. Try default theme to exclude fcg-theme conflict
4. Post in this forum to involve me in your troubleshooting. URL is required
User avatar
admin
Site Admin
 
Posts: 4789
Joined: Fri Jan 16, 2009 9:29 am
Location: Seattle, WA

Re: Images not in FCG

PostBy bjerreandersen on Tue Jan 18, 2011 2:25 pm

the screenshot is attached :-)

I add the gallery as a widget. The widget is in itself a plugin, that after installation is added to the sidebar.

The plugins code looks like this (to me, the relevant parts seems to be right...):

// The meat of the plugin

function featured_gallery_init()
{

if ( !function_exists('register_sidebar_widget') || !function_exists('register_widget_control') )
return;

function featured_gallery_control()
{

$blogdomain = get_bloginfo('url');
$url = $blogdomain.'/wp-admin/options-general.php?page=featured-content-gallery/options.php';

echo 'No configuration of this widget is necessary. To configure the Content Gallery, <a href="'.$url.'">click here.</a>';
}




/////////////////////////////////////////////////////////////////////////////////////////////////////
//
// OUTPUT CLOCK WIDGET
//
/////////////////////////////////////////////////////////////////////////////////////////////////////

function featured_gallery_clock($args)
{

// Output everything

echo $before_widget;

include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); // placeholder

echo $after_widget;

}

register_sidebar_widget('Featured Gallery Widget', 'featured_gallery_clock');
register_widget_control('Featured Gallery Widget', 'featured_gallery_control', 245, 300);

}

add_action('plugins_loaded', 'featured_gallery_init');

?>
Attachments
Skærmbillede-Featured Content Gallery Options ‹ bjerreandersen.dk — WordPress – Google Chrome.png
Skærmbillede-Featured Content Gallery Options ‹ bjerreandersen.dk — WordPress – Google Chrome.png (163.59 KiB) Viewed 284 times
bjerreandersen
 
Posts: 4
Joined: Sat Jan 15, 2011 7:14 am

Re: Images not in FCG

PostBy bjerreandersen on Tue Jan 18, 2011 2:35 pm

the screenshot is here:
Skærmbillede-Featured Content Gallery Options ‹ bjerreandersen.dk — WordPress – Google Chrome.png
Skærmbillede-Featured Content Gallery Options ‹ bjerreandersen.dk — WordPress – Google Chrome.png (163.59 KiB) Viewed 285 times



I add the gallery as a widget. The widget is in itself a plugin, that after installation is added to the sidebar.

The plugins code looks like this (to me, the relevant parts seems to be right...):

// The meat of the plugin

function featured_gallery_init()
{

if ( !function_exists('register_sidebar_widget') || !function_exists('register_widget_control') )
return;

function featured_gallery_control()
{

$blogdomain = get_bloginfo('url');
$url = $blogdomain.'/wp-admin/options-general.php?page=featured-content-gallery/options.php';

echo 'No configuration of this widget is necessary. To configure the Content Gallery, <a href="'.$url.'">click here.</a>';
}




/////////////////////////////////////////////////////////////////////////////////////////////////////
//
// OUTPUT CLOCK WIDGET
//
/////////////////////////////////////////////////////////////////////////////////////////////////////

function featured_gallery_clock($args)
{

// Output everything

echo $before_widget;

include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); // placeholder

echo $after_widget;

}

register_sidebar_widget('Featured Gallery Widget', 'featured_gallery_clock');
register_widget_control('Featured Gallery Widget', 'featured_gallery_control', 245, 300);

}

add_action('plugins_loaded', 'featured_gallery_init');

?>
bjerreandersen
 
Posts: 4
Joined: Sat Jan 15, 2011 7:14 am

Re: Images not in FCG

PostBy admin on Tue Jan 18, 2011 4:27 pm

for that last piece of code for function function featured_gallery_clock($args) , where it has gallery call, change gallery call from this
Code: Select all
include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php');

to this
Code: Select all
global $post; include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php');


if this is not gonna help, there is probably plugin conflict, try to turn on other plugins one by one
Yelena Khamidullina
Web Applications Developer, iePlexus

1. Check settings to exclude fcg-YOU conflict
2. Try to turn off all your plugins at once to exclude fcg-other plugin conflict
3. Try default theme to exclude fcg-theme conflict
4. Post in this forum to involve me in your troubleshooting. URL is required
User avatar
admin
Site Admin
 
Posts: 4789
Joined: Fri Jan 16, 2009 9:29 am
Location: Seattle, WA

Re: Images not in FCG

PostBy bjerreandersen on Wed Jan 19, 2011 10:43 am

I found the problem: The Lightbox2-plugin. When it's disabled, FCG works with the new code, you gave me....

BUT: Is there any workaround to make both FCG and lightbox2 work...? Eventually, could I send you the plugincode for lightbox2?

frederik
bjerreandersen
 
Posts: 4
Joined: Sat Jan 15, 2011 7:14 am

Re: Images not in FCG

PostBy admin on Wed Jan 19, 2011 1:02 pm

there is no solution from me at this time, may be somewhere else there is some..
Yelena Khamidullina
Web Applications Developer, iePlexus

1. Check settings to exclude fcg-YOU conflict
2. Try to turn off all your plugins at once to exclude fcg-other plugin conflict
3. Try default theme to exclude fcg-theme conflict
4. Post in this forum to involve me in your troubleshooting. URL is required
User avatar
admin
Site Admin
 
Posts: 4789
Joined: Fri Jan 16, 2009 9:29 am
Location: Seattle, WA


Return to General Discussion

Who is online

Users browsing this forum: nonquitaeach and 1 guest