I am looking at the plugin files, and of course there are lots of them. Is there a particular type of file I should be looking for, or is there some way to search for the jquery ui? What is the best way to find the information you are looking for?
Support Forum
per previous post, I would search for wp_deregister_script()… not possible to give you hint on file – no clue how they did their plugin…
but most decent editors will search all files in a directory for a string… or you can do it with windows file manager search (no clue on mac)…
You have to excuse my ignorance in this matter. I have all the Premium List Magnet files on my desktop, and I really don’t know how to search them for this code. Nothing shows up when I type the file names you suggested in the windows search box. Is there a text editor included in Windows 7 which has a search function or do I have to download a text editor?
No, Windows 7 Window Explorer will do it fine…
so go to the root directory of the plugin… Up in the upper right where it says search, type in ‘wp_deregister_script’ without the quotes… it will search files by default…
scroll all the way down to bottom… there will be search again block at the bottom… select the File Contents icon… and it should search within the files themselves…
Weird, it is searching forever, the green search bar gets almost to the end but never completes. It has been running for 10 minutes and found nothing and the green bar is still a fraction of an inch away from completing.
Yes it is a paid plugin. I downloaded the plugin files from hostgator’s file manager and zipped them up:
https://dl.dropbox.com/u/8186117/premium-list-magnet.zip
And there it is in the main plugin file itself (plm.php) – here:
function plm_add_js() {
wp_enqueue_style('plm-style', PLM_URL . 'css/plm.css');
wp_deregister_script( 'jquery-ui-core');
wp_register_script('jquery-ui-core', PLM_URL . 'js/jquery-ui.min.js');
wp_enqueue_script('jquery');
wp_enqueue_script('jquery-ui-core');
wp_enqueue_script('plm-main', PLM_URL . 'js/plm.js');
}
Try changing it like this:
function plm_add_js() {
wp_enqueue_style('plm-style', PLM_URL . 'css/plm.css');
// wp_deregister_script( 'jquery-ui-core');
// wp_register_script('jquery-ui-core', PLM_URL . 'js/jquery-ui.min.js');
wp_enqueue_script('jquery');
wp_enqueue_script('jquery-ui-core');
wp_enqueue_script('plm-main', PLM_URL . 'js/plm.js');
}
see if that improves anything.
Do I understand this correctly – I just add the double foreward slashes to those two lines? What is the effect on the plugin jquery then? Does it just disable it or what happens? Sorry, don’t know much about coding.
That will stop the plugin loading it’s own copy of jQuery and ensure that the version supplied with WordPress – i.e., the proper one needed for WP and other WP plugins – is loaded correctly. Whether this solves all issues remains to be seen of course but as we already know that SP needs a kosher WP environment to successfully work it is the first place to start.
If the PLM plugin is written correctly then this should continue to function successfully.
Thanks, I will test this. By the way, I did contact the Premium List Building support about this, and they said yes, they use their own jquery, and they are aware that this can cause conflicts with other plugins. They said if necessary I should change plugins. I am not sure if they referred to their own plugin or to the SP plugin. One thing is sure, I can always get another opt-in/list-building plugin, but I am definitely not going to change SP forum.
While I am testing this, I have another question which we talked about earlier. You had told me that the forum needs to be excluded from any caching plugin. Right now I have my caching plugin (WP Super Cache) disabled, but I did enable cloudflare which is a service offered for free by hostgator. It caches the site’s content and sends it out to various data centers across the globe, kind of like Amazon S3 cloud front, in order to shorten access time and page load speed. Do I need to exclude the forum from cloudflare as well?
Its hard to say… depends on how it caches… the reasons you need to disable wp caching plugins is because they make a false assumption about the wp page the forum appears on… They assume the wp page is static… In the forum page, it is not static but dynamic… All forum display appears on the single wp page… so it cannot be cached…
This CDN is probably not WP based so it is likely looking at the canonical URL and caching it based on that URL so it wont make assumptions about a wp page… So it could potentially work well… If the WP caching plugins cached based on canonical URL instead of just a wp page, then they could to function with simple press…
Best thing to do is test it… do things work? when you make a new post, does it show instantly? etc…