Manually adding to an advocacy progress bar

Options

We would like to add a progress bar to an advocacy page. The S337 tool works quite nicely.

However, we'd like to be able to include the numbers of people who have signed our Care2 petition, as well. In other words, let's say we have 25,000 people who have signed our Convio petition, and another 10,000 who have signed our Care2 petition. Is there a way to manually increase the number of "alerts taken" so that our progress bar displays 35,000?

Tagged:

Comments

  • I don't think S337 can be fudged.

    Only S15 for donations because it contains "amountRaised" as a parameter.

    Defenders had a custom thermometer that allowed for that, but it was in existance before I was on staff there. No clue if it's reproducable for other clients, etc. etc.

    Whomp whomp :smileysad:

  • @Seth Merrit liked my answer earlier, but I wanted to update my response...



    So this isn't quite a "thermometer" but can help you get the total number desired:

    <script>
    /* start COUNTER JAVASCRIPT */
    function intCount() {

    var ehAlert = [[E130:[[T8:[[S337:advocacy_alert:1234:0:0:0:1:#000000]]]] dup dup "Taken:" indexof 6 + swap length substring dup 0 swap "&nbsp;&nbsp;&nbsp;" lastindexof substring]];
    var two = 1200; // THIS IS WHERE YOU ADD VALUES
    var numplacement = document.getElementById('interactionCount');

    var interactions = (ehAlert + two).toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g, ","); numplacement.innerHTML = interactions;
    }
    addOnLoadHandler(intCount);

    function displayCounter() {
    document.getElementById('counting').style.display = 'block';
    }
    window.onload = displayCounter;

    /* end: COUNTER JAVASCRIPT */
    </script>

    Here it is in action.

  • Erik Leaver
    Erik Leaver Blackbaud Employee
    Ancient Membership 250 Likes 100 Comments Photogenic
    Sara,

    Are you all gamifying your goal numbers too or are you manually updating them? When we used the api for hosting actions on our own site, we had an inelegant if/then set of statements to change the goal numbers automatically to keep the # of signers near 70% of our goal. I'm trying to figure out if I can create something similar on a native Luminate action page.



    Thanks,

    Erik
  • Hi Erik -



    No, the intent is not gamification, falsification or automation. Alerts taken via the native application and API are still taking the same alert and are a part of the total from the Luminate Online platform. The javascript I posted is for math of the native Advocacy tool + a static number that is updated manually.



    Our use cases are:
    • Alerts posted on 3rd party sites like change.org, Care2, etc.
    • Alerts where we share petition totals with WWF International or other WWF offices.
  • Erik Leaver
    Erik Leaver Blackbaud Employee
    Ancient Membership 250 Likes 100 Comments Photogenic
    Thanks Sara. I didn't mean to imply you all were falsifying numbers. I meant gaming the goal to keep it relevant for signers in a similar way that MoveOn, Change, etc does it. I'm interested in having our goal dynamically adjust so I don't have to adjust manually which is needed with the s-337 tag.



    Is there any way you know of to return (via s-tag or otherwise) the # of signers? If I had that number, I could make a progress bar that would work.



Categories