The successor of MafiaCreator has arrived.
Create my game!
 
 

Game-owner login

Forget? Login
MafiaCreator.com
73,609
241,045
1
 
 
MijnMaffia.nl
201,895
1,128,775
65
MaMafia.fr
57,829
410,955
38
MojeMafie.cz
27,905
280,032
26
MeineMafia.de
74,823
400,673
23
MiMafia.com
12,694
37,163
3
MojaMafia.pl
54,553
368,500
2
MafyaKur.com
50,310
316,912
0
MinMaffia.se
15,064
60,912
0
MoyaMafia.ru
2,791
5,236
0
MafiaCreator.ro
23,269
246,566
0
MinMafia.no
6,707
30,395
0
 

How to share your game everywhere using referral urls

gangstersinc17/Jan | 05:13 


gangstasinc2
3 members
hello folks!

the following tutorial will enable you and your players to share your game across a multitude of places online *using referral url's*.

you can see it live and in action on http://Gangsters-Inc.com where i link to the function in my Spotlight section (advertisement frame).

1. go to http://www.addthis.com and get a button code

2. open a text editor and copy and paste your code onto a new page (this shall be known as page 1)

3. open another new page (this will be known as page 2) and copy and paste the following into it:

<head>
<title>share gangsters inc</title>
<head>
<body bgcolor=#000000>

<blockquote>
<table><td bgcolor=#000000 width=500><font color='silver'>
<hr>
<b><font color='gold'>Sharing Gangsters Inc</font></b>
<hr>
<p>
<?php
$user = $_GET["u"];

if ($user != "") {
echo "
This button will allow you to to share your Gangsters Inc referral link across your choice of many places online.
<p>
Just click on it or mouse over it and follow any further instructions and procedures to share your link!
<p>
<!-- AddThis Button BEGIN -->
<div class=\"addthis_toolbox addthis_default_style\">
<a class=\"addthis_counter addthis_pill_style\" addthis:url=\"http://www.gangsters-inc.com/register/$user\" addthis:title=\"The ultimate Mafia game\"></a>
</div>
<script type=\"text/javascript\" src=\"http://s7.addthis.com/js/250/addthis_widget.js#username=xa-4d28ab337c32ce9d\"></script>
<!-- AddThis Button END -->
";
} else {
echo "
Here's how to share Gangsters Inc with your friends using your referral url
<p>
After submitting the following online form, a button will appear allowing you to to share your Gangsters Inc referral link across your choice of many places online.
<p>
You then simply click on it or mouse over it and follow any further instructions and procedures to share your link!
<p>
<i>Get started right here:</i>
<p>
1. Input Your Gangsters Inc username in this box:
<form action='gangstersinc.php' method='get' name='form' target='_self'>
<input class='textbox' type='text' name='u' id='u'><p>
2. Hit this <b>Submit</b> button to continue:
<p><input class='button' type='submit' name='submit' value='submit'>
</form>

<p>
";
}

?>
</font></blockquote>
</td></table>
</body>

4. in your own button code on page 1, look for:

'addthis_widget.js#username= '

and copy the alpha-numeric string which follows it to your clipboard

5. in page 2, look for xa-4d28ab337c32ce9d and replace it with the string you copied from page 1

6. replace all instances of gangsters inc and gangsters-inc.com with references to your own game and link without your username

NB: IT IS VERY IMPORTANT HERE THAT YOU DO NOT REMOVE THIS STRING:

'/register/$user'

(or it will not work)

7. save page 2 as index.php

8. close your editor

9. you now need a domain and web host and once you have these, upload index.php to your webspace

very often you can get a free domain with hosting, and many low cost options are available if you do a search online.

many hosts also provide tutorials (including how to go about uploading files).

10. enter your game and add a link to the domain you set up in the previous step.

11. test it

and thats it!

enjoy!
adie

p.s known issues:

this does NOT work well on facebook because when the link is posted, fb place two links back to your site, the top one is fine, but for the link below that one, they cut the url down to just the domain, removing the /register/.. (affiliate) part.



Last changed by gangstersinc on 2011-01-17 10:42 AM.