How to detect a plugin is loaded in wordpress - wordpress

Is there a way to detect whether a plugin has been loaded into a WordPress page? For example, if contact form 7's plugin is loaded into page, then do some function.

get_plugins() does that for you.
Before calling it you might want to make sure that all plugis are loaded.
To check, wether the plugin is actually active you might have to use is_plugin_active($plugin)
Good luck, and next time maybe try Google before posting a question here.

Related

Dnn 2sxc Blog Module sub-directory

I am testing out DNN 8 and am using the blog app and content management from 2sxc (great module, BTW!).
I have the recent blog post listed on a page sub-directory called '/articles'. But I also wanted some of them listed on the home page as well. When I add the app or module to the home page the url is '/home/post/post-title-here' while on the /articles page the urls are '/articles/post/post-title-here'. This creates the illusion that I have two directories with duplicate blog posts (which probably will get me some dings for SEO for duplicating the same content).
How do I get the app to use the common directory '/articles' regardless of where I put the module/app on the site? I've looked at settings all over and don't see anything that pops out at me. Also not sure if this is a DNN setting or a setting specifically to the extension. Finally, I'd like to be able to keep the year/date/month parts of my url as well as they were on the old site. I assume making that change would probably be similar with the solution to my original question. If that's a different fix, then let me know and I'll put it into a new thread. Thanks in advance!
This question is basically about the blog-app. Now if I understand you correctly, your question is "Can I have multiple lists on various pages, but all of them still link to my main details page". The answer is yes, but the exact solution depends a bit on what you need.
So basically there is a setting in the app-settings to define the main page. I believe it's empty by default, so that the blog-app works automatically without you having to configure anything. But AFAIK if you set that, all blog-details-links will use that as the only source.

CloudFlare RocketLoader causing Woocommerce Add to Cart button to not load

So I want to enable CloudFlares Rocketloader feature on my site as it significantly improves the load times of my page.
Thing is, the Add to Cart button doesn't load when it's enabled.
The CloudFlare documentation states:
"You can have Rocket Loader ignore individual scripts by adding the
data-cfasync="false" attribute to the relevant script tag"
I think I need to add the above code to the correct script but I have no idea what the script is called or where it is.
Any help would be greatly appreciated. Thanks
The ignore option doesn't always work (kind of complex). Is it just happening on a specific URL, such as yoursite.com/checkout? If yes, then you might want to look at turning off Rocket Loader on that URL with a PageRule.

Wordpress - have to press update on page to pull new plugin data

I'm using "Formidable Pro" which is a fairly popular plugin like Gravity forms. It has a portion to create forms and take those created entries and display them as "custom displays" which is working great EXCEPT for the fact that I have to go back to the page where the shortcode has been inserted to display these entries and hit update before it will pull the latest entries.
What in the world could be causing this?
I've already tried asking on their support forums and I'm getting no response so I'm kind of desperate. I've made sure that it is NOT the theme or other plugins causing the issue.
Issue lives on this page http://thenextarpg.com/skill-list/
Here where i have to hit update http://imgur.com/8UAque4
Any help would be much appreciated!
The issue is probably your caching plugin. Try disabling WP Super Cache and see if your problem goes away.
Assuming that is what's going on there may be some heavier development required to fix it.
I'd start by looking for a way to tell WP Super Cache never to cache that page.

WordPress' Tribe Events leads to main page

My client is using Tribe Events for, well, managing his events :) I was asked to make a new theme for him. I downloaded his old installation and created new theme, checked and everything was great. I uploaded the whole thing to my server - works as well. But when I finally got the thing on my client's host, every link leading to Tribe Events' content is leading back to main page. Strange thing - it happens only when my theme is on. But then again, I tried removing tribe-events directory from the theme, renaming it etc. Nothing helps. Any ideas?
You didn't provide details about the way you use it so I am not sure the way to provide exact reply.
If you use it without default page template (plugin one) then you should check your loop.
Did you override any files or did you change plugin files at all.
Make sure there is no extra loop running and if you use lops on page make sure you finish it properly
And finally - try to reset permalings, both theme and plugin, if any

browser shots wordpress plugins

One of my users asked if there was a plugin to take automatically a screenshot from a submitted website url. He also asked if there was a wordpress plugin for this.
can anyone tell me if such a plugin exist for wordpress or if it's possible with php, ajax or any other language?
As far as I understand your question you can use http://wordpress.org/extend/plugins/seekxl-snapr/ this plug-in will show a thumbnail of the url as the mouse over.
There are other plug-ins that uses websnapr[dot]com to create the images as well.
I personally don't know of any Wordpress plugins that take screenshots of a submitted website url, however there is a very nice service at http://browsershots.org/ that might be what you're looking for. Browsershots will render screenshots in almost any combination of browser and OS you could ever want.
Hope this helps.
I've had trouble with this for a while, it's so hard to get an accurate high quality screenshot generated. I've just released a stable plugin for handling this, it makes the process of automatically generating website screenshots in WordPress dead simple with a simple shortcode:
[browser-shot url="http://link-to-website" width="600"]
For more info checkout the official plugin page: http://wordpress.org/extend/plugins/browser-shots/
As far as i understand, you want this.
https://wordpress.org/plugins/cmp/
This plugin creates a website screenshot using only a website URL and
save into your own wordpress media library.
After creating the image, wordpress will prompt you either to "insert
into post" or "change attributes" just like after you upload an image.
Renaming is available.

Resources