You can add a bookmark button on your Manialink for people to add your Manialink in their bookmarks. The button looks like this:
In this guide we will see how to add such a button on your Manialink by using the PHP Library.
2 - RequirementsLooking for the same feature without using PHP?
Check out this tutorial!
In order to use the ManiaHome library to add a bookmark button you need:
* PHP 5.2
3 - Download the ManiaHome PHP Library
Download the latest version of the ManiaHome SDK at:
http://code.google.com/p/manialib/downloads/list
Then put the maniahome.php file somewhere in your project so you can include it your php files.
4 - Simple button
Let's take an example with the "maniapub" Manialink. The code is so simple I won't even explain it
Code: Select all
<?php
require_once '/path/to/maniahome.php';
echo ManiaHome::bookmarkButton('maniapub');
?>
Let's take an example with the "maniapub" Manialink. The code is so simple I won't even explain it
Code: Select all
<?php
require_once '/path/to/maniahome.php';
echo ManiaHome::bookmarkButton('maniapub', '$i$F60ManiaPub');
?>
5 - Button with an image
Code: Select all
<?php
require_once '/path/to/maniahome.php';
echo ManiaHome::bookmarkButton('maniapub', '$i$F60ManiaLive',
'http://manialink.manialive.com/images/manialive_bookmark.png');
?>