|
Vote For Your Site In The Stratics Links Database
The AC Stratics Links Database allows people visiting the sites listed there to vote on them - unfortunately, by the time they've seen your site they've left the voting system behind. The following instructions allow you to let your readers vote for you from your site.
First of all add your site to the AC Stratics Links Database. Once it's entered you'll need to find you site's ID number. One way is to find your entry in the database and examine the URL there: http://links.stratics.com/cgi-bin/links/jump.cgi?ID=1234. The number in red is your site ID.
Next, copy and paste the following HTML code somewhere on your site - replacing the red ID with the ID number you noted before.
<!-- Stratics Resources Voting -->
<form action="http://links.stratics.com/cgi-bin/links/rate.cgi" method="POST" target="_blank">
<input type="hidden" name="ID" value="ID">
<select name="rate">
<option value="10">10 - Best</option>
<option value="9">9</option>
<option value="8">8</option>
<option value="7">7</option>
<option value="6">6</option>
<option value="5">5</option>
<option value="4">4</option>
<option value="3">3</option>
<option value="2">2</option>
<option value="1">1 - Worst</option>
</select>
<input type="submit" value="Vote Stratics!" name="submit">
</form> <!-- End stratics resources voting -->
List The AC Server Populations On Your Site
For some time now, we've had a chart displaying the current AC server populations on our pages. Now, as seen over at Cooking with Caspian and Caleigh, you can display these numbers on your own site - and all without increasing the Zone's lag as the data is polled once by our system, and then you pull it from us :)
To add this feature, you'll need to have a website capable of handling perl scripts and server-side includes (SSI). To start you'll need to add this small perl script to your server:
#!/usr/bin/perl
use LWP::Simple; print "Content-type: text/html\n\n"; print get('http://ac.stratics.com/cgi-bin/zonepops.pl?title=AC+Server+Pops');
You may need to change line in blue depending on the location of your perl system. And you can change the title of the table by adjusting the text in red - don't forget to replace any spaces with plus symbols.
Now, to add the table to your page, simple add the line <!--#include virtual="/cgi-bin/smallscript.pl"--> to your webpage, replacing /cgi-bin/smallscript.pl with the path to the small perl script you created earlier.
If you use cascading style sheets (CSS) on your site, you can set up several classes in your CSS file to further format the table. The pre-defined class names are:
- zd_table - for the entire table
- zd_toprow - for the title row of the table
- zd_topdat - for the title cell of the table
- zd_row - for the other rows in the table
- zd_name - for the server names
- zd_pop - for the server population numbers (NB - this may be over-ridden by your setting(s) for links)
- zd_btrow - for the "data supplied by" row
- zd_btdat - for the "data supplied by" cell
Send any questions and comments to Auz.
|