infogami wiki

share your infogami tips and tricks

arrows

Want to add arrows to your infogami site? Here's how:

  1. Edit your _template file and add the following after the <head> element:

      <script src="http://files.infogami.com/code/behaviour.js" type='text/javascript'></script>
      <script src="http://reddit.com/static/psrs.js" type='text/javascript'></script>
      <script src="http://files.infogami.com/code/arrows.js" type='text/javascript'></script>
      <link href="http://files.infogami.com/styles/arrows.css" type="text/css" rel="stylesheet" />
      <script src="http://files.infogami.com/code/arrows.js" type='text/javascript'></script>
    
  2. Edit your _pagetemplate file and add the following before $body:

      <div style="float: right">$arrows</div>
    

    Then after the <p class="dateline"> add:

       $points
    
  3. Go to your prefs page (or the _admin page for the thing you want to turn arrows on for) and click on the box labeled "vote" next to the people you'd like to be able to vote. (Caveat: If a user tries to vote when they're not logged in, their vote will currently be ignored.)

Voila! You've got arrows.