Publishing with Aggregame

Voting widget for your web site


The voting widget allows your readers to submit your stories directly to Aggregame. Once a story is submitted, readers use your web site to make the story a top competitor!

With a few lines of copy-and-paste code, anyone can submit and vote on your published stories to ensure that they receive the recognition they deserve. Once submitted, the widget will show the current score and allow Aggregamers to cast their vote without leaving your web site.

Simple and straightforward

To use the Aggregame voting widget to promote your content, simply place the following code on the story page where you would like the widget to appear. The address of the story page will be used as the story link.
<script type="text/javascript" src="http://aggregame.com/publish/score.js"></script>

Choosing a theme

Several different sizes and themes offer flexibility to match the layout of your web site. See below for a list of available themes.
<script type="text/javascript">
  ag_theme = 2;
</script>
<script type="text/javascript" src="http://aggregame.com/publish/score.js"></script>
ag_theme must be the number a theme below. The default theme is 1. All themes support submitting new stories, voting, and reviving old stories and are designed to blend in over any background color or pattern.

Theme 1

Theme 2


Preview background colors: white black grey blue pattern gradient gradient
Background color shown here is for sampling purposes only,
widget will blend in to the background of your web site.

Optional customizations for easier submission

With the addition and definition of a few extra properties, you can automatically propagate your users' submissions with the appropriate meta data for the content on your website. For example, if you have a site like GameTrailers.com and use our widget on each video you display, you may want to default each submission type (ag_media) to video.

<script type="text/javascript">
  ag_title = 'article title';
  ag_description = 'short article description';
  ag_category = 'category name';
  ag_media = 'media type';
</script>
<script type="text/javascript" src="http://aggregame.com/publish/score.js"></script>
Any of the above properties may be omitted and users may choose to modify these details. Valid values for ag_media are: news, video, or photos. Valid values for ag_category are: Industry News, PC, Xbox, Xbox 360, Original Xbox, Playstation, PS3, PS2, PSP, Nintendo, Wii, NDS, or Mobile.

Specifying the story link

Use of the ag_link property is highly recommended if the story has a "permalink" or appears in a list with other stories. This will cause the widget to submit a specific link rather than the address of the current page.
<script type="text/javascript">
  ag_link = 'http://link.to/article';
</script>
<script type="text/javascript" src="http://aggregame.com/publish/score.js"></script>

Customizing to fit your needs

We don't want our widget to disrupt the theme of your website! Thus, the background of the widget is transparent in modern browsers as indicated below, but we also make it easy to change the background so it can appear precisely as you'd like it to for all users.

<script type="text/javascript"> ag_background = '#900'; </script> <script type="text/javascript" src="http://aggregame.com/publish/score.js"></script>
The ag_background property can use any valid CSS background, such as #555, #40F156, or simply red and is only used in browsers which do not support transparent iframes. The default background is transparent which will allow the widget to blend in to any page.