WordPress.org

Ready to get started?Download WordPress

Forums

Internet Defense League Cat Signal
[resolved] Not working on my site (22 posts)

  1. Lane Lester
    Member
    Posted 1 year ago #

    I've disabled the plugin because in banner mode, my site doesn't even load the home page. In modal mode, no cat window comes up.

    Lane

    http://wordpress.org/extend/plugins/cat-signal/

  2. Chris Reynolds
    Member
    Plugin Author

    Posted 1 year ago #

    The banner/modal won't come up if there's no active campaign. And as of today, there isn't. Go to http://internetdefenseleague.org to see if there's an active campaign at any given time. There should be another one in June when ACTA comes to voting.

    I've tested in banner and modal mode and haven't had any issues on my development site or my live site. I've switched it to banner mode and my site loads up fine: http://jazzsequence.com. However, it looks like something I added in the last update is keeping the scripts from loading.

  3. Chris Reynolds
    Member
    Plugin Author

    Posted 1 year ago #

    I think I found the issue and I'm committing a fix. Should be up shortly.

  4. Chris Reynolds
    Member
    Plugin Author

    Posted 1 year ago #

    Should be fixed in 1.0.2. Here's what to look for to make sure it's working: http://d.pr/i/6qi6

  5. Chris Reynolds
    Member
    Plugin Author

    Posted 1 year ago #

    FOUND IT! Completely different thing than what I was looking at.

    Okay, so, I'm assuming what you did was, download the plugin, activate, then went to the front of your site, right? E.g. you didn't set what type of alert you wanted, you just went on about your business. The plugin loads the javascript relative to your selection on the admin page, like this:

    function idl_signal_all_the_cats() {
    	$options = get_option( 'cat_signal' );
    	if ( !is_admin() ) {
    		if ( $options['type'] == 'banner' ) {
    			wp_enqueue_script( 'idf-banner', CAT_SIGNAL_PLUGIN_URL . 'js/banner.js', array(), '1.0', false );
    		} elseif ( $options['type'] == 'modal' ) {
    			wp_enqueue_script( 'idf-modal', CAT_SIGNAL_PLUGIN_URL . 'js/modal.js', array(), '1.0', false );
    		} else {
    			die();
    		}
    	}
    }

    The problem was that die() command which fires if there's no option set. I've fixed it and it will be live shortly.

  6. Lane Lester
    Member
    Posted 1 year ago #

    Thanks for the quick response, Chris. I've updated the plugin, but neither version seems to be appearing. I have to say that sometimes I can't see recent changes in my sites, in spite of clearing out the browser history and cache. I think there is caching out there in the Net over which I have no control.

    Neither is showing in either Firefox or Chrome.

    Lane

  7. Lane Lester
    Member
    Posted 1 year ago #

    I just installed the plugin on another site with a different theme, and still no joy.

    Could it have anything to do with the themes being responsive? I used to be able to make themes do whatever I wanted, but the new jquery, etc. is still a mystery to me.

    I've left the plugin active on both sites for now.

  8. Chris Reynolds
    Member
    Plugin Author

    Posted 1 year ago #

    I've updated the plugin, but neither version seems to be appearing.

    As I said (and as I added to the plugin description) if you're not seeing the banner or the modal window that is expected when there is not an active campaign -- which there isn't. It won't show up until the Internet Defense League initiates a protest at which time it will appear automatically. The issue I fixed was the page dying when you installed the plugin and didn't set anything yet.

    Both your sites are working as expected:
    lanelester.com -- http://d.pr/i/fzkh
    the-web-doctor.com -- http://d.pr/i/BhYd

  9. Lane Lester
    Member
    Posted 1 year ago #

    Thanks, Chris. Pardon me for missing that point. I was testing another plugin that had campaigns, and I thought that point applied to it instead of yours.

    Afterthought: It would be nice to have a Test option so we could immediately compare the Banner and Modal versions.

    Lane

  10. Chris Reynolds
    Member
    Plugin Author

    Posted 1 year ago #

    NP. It's an easy thing to miss and since I wrote the plugin & knew what it was for, I completely forgot about the possibility that most people -- knowing nothing about the IDL or not being on their mailing list -- will probably activate the plugin and say "what gives? nothing happened!"

    The cool thing IMO about the whole deal is that you leave this js on your site and then you don't have to worry about it. When there's a campaign it launches the alert automatically. The specific problem I needed to overcome in building the plugin was that if you added their javascript to your header.php it would get overwritten when you updated the theme (which is what happened to me), this makes it easier for WordPress users to set it and forget it.

  11. Chris Reynolds
    Member
    Plugin Author

    Posted 1 year ago #

    Afterthought: It would be nice to have a Test option so we could immediately compare the Banner and Modal versions.

    That's all dependent upon the IDL and their framework. I agree, and, for that matter, if I want to black out my site year-round, I'd like the option to do it, but that comes down to what their script does and how it works which is something I have no control over. If they add an option to display the alert manually, then I will definitely update the plugin to accomodate. I think the main thing is that the campaigns are targeted for a specific bill as it moves to the House or from the House to the Senate, etc, and, as such, the actual banners are targeted for those bills/campaigns and wouldn't necessarily be applicable other times.

    I suppose I could add a 'Test mode' to the plugin that just pops up an "it works!" alert if the plugin is active and if the javascript is being loaded. Seems to me like it wouldn't really serve the purpose it would be intended for since the actual banner is served by the Internet Defense League and not by the plugin itself.

  12. pimphesus
    Member
    Posted 1 year ago #

    Yes, there actually is an active campaign on CISPA right now, and yet there is no modal popup showing for said campaign. Which is the option I chose to use.

    Edit: There is a cat signal on their main site right now about this, but there is no indication of how long the said signal is supposed to last.

  13. Chris Reynolds
    Member
    Plugin Author

    Posted 1 year ago #

    Yes, there actually is an active campaign on CISPA right now, and yet there is no modal popup showing for said campaign. Which is the option I chose to use.

    The campaign was for March 19. I know, because I got the email from them which is what prompted me to write the plugin in the first place. And on March 19, the modal and the banner were both active when selected, which is where the screenshots came from.

  14. drew3000
    Member
    Posted 1 year ago #

    Hello, I've got the plugin installed at http://www.drew3000.net, there is a campaign on and it isn't showing up. I did double check the settings and run the test. I tried the plugin after I couldn't seem to get the script to work by pasting it into the theme. Do you know what could be up with that?

  15. Chris Reynolds
    Member
    Plugin Author

    Posted 1 year ago #

    @drew3000

    AFAIK there isn't actually a campaign running right now. There was one on Monday but it was just on Monday. If you ran the test and it worked then it's installed and ready for when there is a campaign.

    http://www.drew3000.net/?_idl_test=1

  16. RonDsy
    Blocked
    Posted 1 year ago #

    Be great if they would throw up some test banners (messages) periodically. That would assure we are ready to go.

  17. Chris Reynolds
    Member
    Plugin Author

    Posted 1 year ago #

    I agree. I'd love to force an "on" state for whatever the last banner was. In the last update I added a link that will display the test alert, which ensures that the script is working as it should, but it would be nice to have something prettier (and since it's in an iframe, I can't make it prettier -- it needs to come from the source, which is on their servers). They have a developers Google Group where you could make suggestions if you felt inclined.

  18. theWebalyst
    Member
    Posted 1 year ago #

    I installed this on a standalone and a multisite today, while hte CISPA blackout is supposed to be active and it doesn't work.

    When I went to settings, it complained about not being able to detect which page the code was on and asked me to save again. I did so, which cleared that error. Cicking test didn't work on the stand alone website. Clicking test on the multisite displayed a success message (though not the CAT page I was expecting).

    However, neither websites are affected and neither display the modal dialogue I was expecting. Doesn't matter if I'm logged in or not.

    URLs are: http://thewebalyst.com (stand alone) and http://wpsites.eu, http://therapy-online.co.uk (multi-site).

    This is a shame, I wanted to take part in the CISPA blackout today. Your plugin is a great idea and I hope you can fix this.

    Mark

  19. Chris Reynolds
    Member
    Plugin Author

    Posted 1 year ago #

    There are no active campaigns currently. The CISPA blackout was a month ago. In fact, if you read the thread above, I point out that the CISPA campaign was on March 19: http://wordpress.org/support/topic/not-working-on-my-site-3?replies=19#post-4007990

    The only site of those that I see the plugin installed on is this: http://wpsites.eu/?_idl_test=1

  20. drew3000
    Member
    Posted 1 year ago #

    There are active campaigns and yet it's still not workking. IDL launched the 'Cat Signal' on March 20th, over 30K sites participated including Reddit, Craigslist, and Duck Duck Go. Press Release.

  21. Chris Reynolds
    Member
    Plugin Author

    Posted 1 year ago #

    Drew, where are you getting the information that there are active campaigns running right now? I'm on the IDL Google Group and mailing list and no campaigns have been announced since the Aaron Schwartz campaign.

  22. Chris Reynolds
    Member
    Plugin Author

    Posted 1 year ago #

    Look, guys, for the record, all this plugin does is take the javascript codes from this page and puts it in the header of your site using basic WordPress javascript enqueueing methods. This way you don't need to hack your theme's header.php file to do it yourself. I am using the all league campaigns code because using a specific code for a specific campaign would only work once.

    I do not write the javascript code for the IDL. I am not involved in their campaigns, when they are launched, etc. I just wrote the plugin so you don't need to hack your theme and then lose your IDL code when there's a theme update. I even added a link in the backend to test whether the javascript is installed correctly after I learned from the IDL team that you could add /?_idl_test=1 to the end of your URL to make sure the code is installed properly.

    Therefore, if you have questions about what campaign is active, if a campaign is active, why your banner isn't showing up (and you've already done the ?_idl_test=1), the best source for information would be the IDL team and the developer Google Group. The only thing that I can do is look at your site, see whether the plugin is present and whether the test displays a test banner or modal window.

    I have already requested that there be a persistent banner option added to the javascript so you always have a campaign running on your site, but at this time, that is not the case. The campaigns typically only run one day and are generally announced on the mailing list before they are made active.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.