Use the "share button" on your Manialink to allow your visitors to easilly share your content on ManiaHome!
Like the Bookmark button, this new feature comes with a new button, simple to integrate to your ManiaLink. You have an example of the share button on the maniaplanet-store. Once integrated, the player just have to click on the button to share some content.
In this guide we will see how to add such a button on your Manialink by using XML code only.
2 - Simple button
At least, you need to specify the link to the content you want to share, and the name of the product. We will generate an automatic message with those elements.
This is a sample code
Code: Select all
<include url="http://maniahome.maniaplanet.com/share/?link=maniaplanet-store&contentName=%24fffMania%2409fplanet-skin"/>
There is 2 parameters in this URL, link and contentName, they are separated by "&" and not "&". This because the URL is XML-escaped.
You can also notice "%24fffMania%2409fplanet-skin" that stands for "$fffMania$09fplanet-skin". Here's why:
URL-ENCODE YOUR PARAMETERS BEFORE PUTTING THEM IN THE URL!
3 - Manialink version="0" support
The included view uses by default version="1" with the new position/size system. If you're Manialink still uses version="0", you can specify it in the URL of the include:
Code: Select all
Code: Select all
<include url="http://maniahome.maniaplanet.com/add/?url=manialoto&version=0"/>