Featured Content Gallery | WordPress Plugin | iePlexus

Please Help with thumbnail issue

General WordPress and FCG plugin discussion

Please Help with thumbnail issue

PostBy VerryTechnicalDev on Mon Jun 06, 2011 4:25 pm

Hi guys, today I started to try out some javascript and a
Code: Select all
<div>
to allow users to either show or hide the FCG. The code does work and will show/hide the FCG but the thumbnails are now always visible and clicking on the "Popular Articles (default is Featured Content)" link makes the thumbnails no longer transparent but they still do not go away either way. It's as if something is messing up how the FCG "hides" the thumbnails. Unfortunately, I'm not very good at javascript at all so I haven't been able to determine if that's the case or if it's some weird CSS issue of it being wrapped in a div (before I did this it was not in its own div but just the line with the php call before the php call to get Wordpress posts).

Thanks in advance. Any help would be appreciated in getting this to work as I love this plugin :)

Here is the website in question: http://verrytechnical.com
Here is the javascript I'm using to show/hide a div:
Code: Select all
<script language="javascript">
<!--
var state = 'none';

function showhide(layer_ref) {

if (state == 'block') {
state = 'none';
}
else {
state = 'block';
}
if (document.all) { //IS IE 4 or 5 (or 6 beta)
eval( "document.all." + layer_ref + ".style.display = state");
}
if (document.layers) { //IS NETSCAPE 4 or below
document.layers[layer_ref].display = state;
}
if (document.getElementById &&!document.all) {
hza = document.getElementById(layer_ref);
hza.style.display = state;
}
}
//-->
</script>

here is the code in the index.php where the FCG is:
Code: Select all
<p><a href="#" onclick="showhide('div1');">Show/hide Popular Articles Slider</a></p>
<div id="div1" style="display: none;"><?php include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?></div>
VerryTechnicalDev
 
Posts: 2
Joined: Mon Jun 06, 2011 4:17 pm

Re: Please Help with thumbnail issue

Thank you for using the Featured Content Gallery Forum
 

Re: Please Help with thumbnail issue

PostBy VerryTechnicalDev on Sun Jun 12, 2011 7:27 am

Hi, just an update. I have been able to hide the slider and load it using AJAX by following this guide here: http://perishablepress.com/slide-fade-content/, however, I can't get the FCG to actually load. When viewing the source of gallery.php, there are fatal errors on all the get_option() functions and I can't figure out why. It's driving me insane :P Any help and or thoughts on what to look for (googling hasn't been successful) would be appreciated.
VerryTechnicalDev
 
Posts: 2
Joined: Mon Jun 06, 2011 4:17 pm


Return to General Discussion

Who is online

Users browsing this forum: teitamihudd, tiowoopeser and 5 guests

cron