Support Forum

Anyone else seeing a conflict with Category Grid View plugin?

LI LifeOnMTV
LifeOnMTV
Member

This plugin http://evilgenius.anshulsharma.in/cgview

Whenever I activate it, the members are unable to reply to topics on the forum. The button becomes void.

Any ideas how I can work around this? at the moment it seems like I have to choose between one and the other…

Cheers!

14 Answers

New Answer

MP Mr Papa
Mr Papa
Member

sounds like the other plugin is doing jquery wrong…  see:  http://codex.simple-press.com/codex/faq/troubleshooting/what-is-this-jquery-conflict/

but cannot tell without a link to the site… of course with the codex article I listed, you can check too…

LI LifeOnMTV
LifeOnMTV
Member

Thanks for your help.

I have read through the info. When looking at the source for a page with simple:press on it, and the conflicting plugin is not active, I can see it is calling the library from my own server, so it seems alright (assuming I understood the information on that page correctly).

When I activate the problem plugin those values stay the same, it’s still calling the library from my server, but the reply button doesn’t work.

The forum in question is http://www.soundcloudpodcast.com/forum/

I’m going to deactivate the problem plugin so that the forum is usable, but I’m happy to activate it, take screenshots, etc, anything that could help me work it out… I’m obviously not an expert on this.

I appreciate your time.

Cheers!

LI LifeOnMTV
LifeOnMTV
Member

Actually, I can see what the difference is, just don’t know how to fix it.

When I activate the other plugin, I get this suss line of code

<script type=”text/javascript”>paginateVal = ;</script>

After the JQuery entries…

So I can spot the difference, is this something I can fix myself or will I need to contact the guy who made the other plugin?

Cheers,

YS Yellow Swordfish
Yellow Swordfish
Member

What we really need is for you to activate that plugin and let me know so I can take a look at the page myself. Obviously you want to do that when I am here and can look so that it is not broken for too long! I am  in the UK – it is 9:45am when I posted this. Reply when you are online here and if I am too I will come back to you.

LI LifeOnMTV
LifeOnMTV
Member

Ok, online now lol I will check this thread throughout the day.

Thanks a lot for your assistance with this :)

MP Mr Papa
Mr Papa
Member

so is the category view plugin active?? I dont see anything to indicate that it is, but no clue what it actually does…  and guests cannot see posts or vote, so hard to look at the conflict…

MP Mr Papa
Mr Papa
Member

not exactly sure what is going on…  seems to be related to the plugins js use of $ instead of the wp preferred jquery… but cannot be sure…  the plugin is definitely throwing internal errors…

might be worth trying a quick replace of the cgview.js file with:

/* Author : Anshul Sharma (contact@anshulsharma.in) */

jQuery(document).ready(function() {
// To remove the css class for CSS fallback strategy
jQuery(“div.cgview ul li div”).removeClass(“cgnojs”);

jQuery(“div.cgview li”).mouseenter(function(){
var d = this.getElementsByTagName(“div”);
if(jQuery(d[0]).attr(‘class’)==’cgback hover’){
jQuery(d[0]).stop(true,true).animate({height: ‘35%’},200);
jQuery(d[1]).stop(true,true).animate({height: ‘32%’},200);
}
});
jQuery(“div.cgview li”).mouseleave(function(){
var d = this.getElementsByTagName(“div”);
if(jQuery(d[0]).attr(‘class’)==’cgback hover’){
jQuery(d[0]).stop(true,true).animate({height: ‘0px’},200);
jQuery(d[1]).stop(true,true).animate({height: ‘0px’},200);
}

});
/*Events for colorbox (Fix for small popup window in colorbox due to delay in load of images*/
jQuery(“.cgpost”).colorbox({onComplete:function(){jQuery.colorbox.resize();}});

/* Pagination */
jQuery(document).ready(function(){
if(paginateVal){
jQuery(‘ul#cg-ul’).easyPaginate({
step:paginateVal,
nextprev:false,
controls:’cg-page-controls’
});
}
});

});

and see if it helps…  I just changed the $ namespace to jQuery…

please be sure to save a copy of the original in case you need to revert…

LI LifeOnMTV
LifeOnMTV
Member

Thanks!

Just did it, but still doesn’t seem to be working…

I guess it’s not a good plugin, if I can get it fixed it would be great, but I can look for other ones if this is gonna cause trouble.

Anyway, I’ve changed the contents of the cgview.js to what you posted, still no joy.

Excellent support btw :D

MP Mr Papa
Mr Papa
Member

was afraid of that… the errors were from that plugin calling to functions in the other one that is minimized… so cant really try changes to it…

what does that plugin do anyways?

LI LifeOnMTV
LifeOnMTV
Member

It makes grid thumbnail gallery out of category posts and tags, and links each thumbnail to it’s respective post.

So if I get someone to make a post, and they tag it and categorize it properly, the grid view gallery updates automatically.

It’s essentially a thumbnail gallery app that links to post instead of images.

MP Mr Papa
Mr Papa
Member

sorry, not really following… but late Saturday! ;) would probably need to see an example… but not sure its germane…

LI LifeOnMTV
LifeOnMTV
Member

lol nevermind :)

I solved it, probably in the worst possible way but I did.

If anyone has that same problem, my solution was to delete all the code entries to do with pagination in the Category View Plugin.

Both plugins seem to be working fine now, hopefully for a while.

YS Yellow Swordfish
Yellow Swordfish
Member

Gosh… do let us know if it goes well.