2. Make the Javascript call after defining a link.
After laying all the groundwork in the javascript, all you have to do now is make a call to the function sx_graphlink() after defining a link. For instance, the HTML code:
This morning Bob called me up to tell me about these new ACME <a href="http://www.acme.com/forsuckers/rocketsandals.html">rocket sandals!</a>. <SCRIPT>sx_graphlink()</SCRIPT>
upon being loaded by a web browser, would end up giving you:
This morning Bob called me up to tell me about these new ACME rocket sandals!.
The link rocket sandals! is all set up to log clicks, which will fill up the bargraph. Also, the bargraph will be a link to a new discussion forum (though we didn't do it here in this HOWTO page). Bingo.
As it stands, you have to call the javascript function after you define the link you want to Sextant-ize, and before you define another. If this isn't good enough for you then email us: there is a workaround.
Q: Javascript? What?! What if a reader doesn't have javascript turned on?
Then your page works just like normal, no kidding:
- Your links still work.
- Clickthroughs don't get logged.
- The clickthrough-counter bargraph never appears, thus taking it's linkage to the discussion forum / clickthrough statistics page with it.
Your page looks and works just like it would have if Sextant had never existed. Try it by turning javascript off on your browser and going to our weblog.
Q: Wait a minute. If you're logging clickthroughs on my links, what happens if your servers go down? Will my links break?
No, your links will still work, no fooling. We specifically designed our system so that your pages will work, even if our system goes down for some reason.
2B. OR make a standalone forum.
Q: Wait a minute. So if I want to make a discussion forum, I have to make up a link to an outside page to attach that forum to? What if I just want to make a forum that stands on its own?
For example: I want to create a forum on my website where my friends and I debate about whether to switch from Diet Coke to Pepsi One. I don't want the comment-counting bargraph, either.
We've got you covered there, too. You can create a link to a forum that does not refer to an outside page. You use a different javascript call to make it:
Look, everybody. The pop machine has only one button working, so we're going to have to decide whether to fill it with Diet Coke or Pepsi One. Go to <SCRIPT>sx_internalforumlink("this discussion forum", "Should we switch from Diet Coke to Pepsi One or not?")</SCRIPT> to get your two cents in.
... and get a regular text link to that forum:
Look, everybody. The pop machine has only one button working, so we're going to have to decide whether to fill it with Diet Coke or Pepsi One. Go to to get your two cents in.
The template system works exactly the same as with the regular weblog-style forums. (Keep in mind, though, that the "clickthrough" statistics are meaningless in this case because a standalone forum doesn't have a "target" page to speak of. The clickthrough numbers will always show up as zero, so you should exclude them from your template.)
3. Make yourself a template.
The tempate file tells us how to format your discussion / clickthrough statistics page. You don't have to make your own, because you'll just get our template by default. However, it's just so much more fun to make it look just like how you want it to.
Your template file has to live on a web server somewhere, so that our server can get to it. You can use someone else's, on someone else's web server, if you want, but it'd be nice to ask them first.
Making a template from scratch is a bigger deal than falling off a log, so the best thing to do first would be to hit the template tester page and snoop around other people's templates to get a rough idea of what's going on. Check out the Template FAQ and then the tag definitions for the real deal on what specific elements you have to work with.
All this documentation is from Craig Meyer at craig@civilution.com. If something's not clear then by all means let me know.
webmaster@sextant.civilution.com