Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[Addon] Av-Arcade-V3
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2010-08-02 20:03:06
This mod was posted in the premium section and made for Torrent Trader V2.3 Below is the orginal post. It may need editing to work on newer versions of Torrent Trader.

[url="http://www.torrenttrader.org/index.php?showtopic=10270"]http://www.torrenttrader.org/index.php?showtopic=10270[/url]

Updated on 20.April.2009: fixed the description problem in the admin part. changes were made to admin-arcade-index.php. rar file has been re-uploaded.

I took the AV Arcade v3 from [url="http://www.avscripts.net/avarcade/"]http://www.avscripts.net/avarcade/[/url] and adapted it to work with Torrent Trader V2.XX so credit goes to them for the code. I have tested it on V2.03 and V2.05 and all seems to work so far. There may be a few bugs here and there that I have not found. Some files from the original script I left in but they are not all used.  In the rar file you will find the files needed with some install instructions. I will try to help out with the script if you have problems but will not offer support for Mochiads [url="http://www.mochiads.com"]http://www.mochiads.com[/url] if you decide to use games from them. With Mochiads you can choose from thousands of games and get paid for people playing the games. Also with the autopost.php you are able to browse the games on Mochiads and click a button which will add the game files to your server.

Now a little about how to use the script. After you have installed the files you will need to go into the admin part which you should have made a link to in your admincp.php there you will be able to add your categories. once you have made categories then you can either get your games from Mochiads or you can add your own to the games folder. after you have some files added then you can click on media in the admin part and on the right side you will see a place to click to add media. once you have clicked that you will be able to add the files which will add the info to the databank.

Some features are:

-Categories for the games

-Shows popular games

-Comments for games

-Ratings for games

-Embed code for the games to be used on sites like myspace

-Fullscreen mode

-Share game with friend through e-mail

-Users can add there favorite game the index page of your site

and lots of other features

Some things that need to be added:

-leaderboard system which stores scores (Mochiads has this for some of their games which can be used on your site)

-Maybe a page for your users which shows their favorite games which they have bookmarked

and whatever other things people can think off

known problems:

-in the settings in the admin area you can not change the theme, this is because the theme at the moment is hardcoded

I hope that is it have fun with it.

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=4190"]Arcade.rar[/url]
Arcade.rar
Download
Unknown User
2010-08-02 20:04:47
this was added in a later post of the original topic

here is a little addon if you use mochiads games. it is a simple leader for leader board games. you can customize it to actually send the scores to your databank but i have not done that and may not do it. this is a good addon for your members because some probably like to compete and also they can challenge their friends through either email, posting a link or facebook. for more info on other parameter options and for any problem dealing with the leader board please visit [url="https://www.mochiads.com/support/pub_docs#boards"]https://www.mochiads.com/support/pub_docs#boards[/url] you will need to do a cross domain policy for mochiads i will post an example below that should work for you. some of the options i have tried in the board seem to not work but most of them are optional. you need to change in the leaderboard.php your publisher id where it says "put your publisher id here" and put your site url where it says change this to your site url

note: you have to make sure the name of the game is like the one on the embed code from the mochi site for that game or the leaderboard will not show. i thought about adding a column to the game part of the db so people could add the name of the game for the leaderboard but i decided to leave it. the leaderboard code will call the normal name game. for example if the game name is Kersplat then you cannot use that name for the game you would have to use kersplat because it is case sensitive.

find in content.php which is in your content folder:

if(!$CURUSER){

echo "<center>You must be logged in to add a game to the homepage...</center>";

}





add after:





echo "<br>";

include("content/leaderboard.php");





now add the code below to your content folder with the name leaderboard.php:





<?

if($_GET[task] == 'view'){

$id = intval($_GET[id]);

$sql = mysql_query("SELECT * FROM ava_games WHERE id=".$id."");



while($row = mysql_fetch_assoc($sql)){

$name = $row["name"];

$pname = $CURUSER["username"];

$pid = $CURUSER["id"];

?><div id="leaderboard_widget"></div>

<script src="http://xs.mochiads.com/static/pub/swf/leaderboard.js" type="text/javascript"></script>

<script type="text/javascript">

// Customized example: Embeds a 500x500 leaderboard widget, replacing the "leaderboard_widget" div

var options = {game: "<?=$name?>", width: 500, height: 500, id: "leaderboard_widget", title: "Test"};

options.userID = "<?=$pid?>";

options.username = "<?=$pname?>";

// your publisher ID - optional (if not included, ALL scores from all sites will be shown)

//options.partnerID = "put your publisher id here";

options.gateway = "http://change this to your site url/content/leader-board.php";

// username link prefix - optional

options.logoURL = "/images/joystick.png";

options.globalScores = "false";

// leaderboard background color - optional

options.backgroundColor = "#ffffff";

// leaderboard scores text color - optional

options.textColor = "#333333";

// username link color - optional

options.linkColor = "#006699";

// username hover color - optional

options.hoverColor = "#3399CC";

// button color - optional

options.buttonColor = "#f29d1c";

// button text color - optional

options.buttonTextColor = "#ffffff";

// Show the widget!

Mochi.showLeaderboardWidget(options);

</script>

<?

}

}

?>





here is an example cross domain policy which needs to go into your root folder and have the name crossdomain.xml:





<?xml version="1.0"?>

<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">

<cross-domain-policy>

 <site-control permitted-cross-domain-policies="master-only"/>

 <allow-access-from domain="x.mochiads.com" />

 <allow-access-from domain="www.mochiads.com" />

 <allow-access-from domain="xs.mochiads.com" />

</cross-domain-policy>
Unknown User
2010-08-02 22:54:04
thanks for sharing!
Unknown User
2010-08-03 01:07:43
There are reply posts on the premium, you might want to include those as well, walker.
Unknown User
2010-10-04 17:17:23
i have re-done the autopost.php and have updated the zip on the first post. for people who have already installed it then please add the parts below to be up to date. the script is fairly basic but works and i do not plan on making it look nicer or making it where you have a link to it in the db. so that part you will have to do yourself. maybe one day i will get around to making a better version of this code which will be more integrated with tt but i will probably have it on my site as a premium mod.

run in my sql:

ALTER TABLE `ava_games` ADD `uuid` text NOT NULL;

ALTER TABLE `ava_games` ADD `mochi_swf_url` text NOT NULL;

ALTER TABLE `ava_games` ADD `mochi_thumb_url` text NOT NULL;
also upload the new autopost.php which is attached to this post and please do not forget to change the values below.



this part only allows the autopost to be used by the owner. most people will not need to change this value.


$CURUSER["class"]=="7"





this part you need to put your mochiads id in.



$mochi_id = "Your_Mochiads_Id";





This part is the categories which are added. The script grabs the first listed category in the json file and goes off of that. there are more categories which than which are listed here and you can add them to this part if you want.



$cats = array('Action', 'Adventure', 'Board Games', 'Casino', 'Customize', 'Dress-Up', 'Fighting', 'HighScores', 'Other', 'Puzzles', 'Shooting', 'Sports');





this part limits how many games you want to add. if you leave it blank then it will grab all games from Mochiads. Just remember Mochiads has over 5000 games so make sure you have the place on your server for that many game files. I have set it to downloaded 1000 so change it to how many you would like.



$limit_games = "500";




hopefully that is it. have fun.
Unknown User
2010-10-12 13:53:28
hi dear walker

ths is very gud mod um dying to ve it in my site. i ve done all these u mentioned. but i cant see nothing in my index page  ;)

in admin cp whn i click on arcade admin i get this

pls help me. ve i done any mistake or how to handle arcade admin section. sry um a grt noob

Quote:
Now a little about how to use the script. After you have installed the files you will need to go into the admin part which you should have made a link to in your admincp.php there you will be able to add your categories. once you have made categories then you can either get your games from Mochiads or you can add your own to the games folder. after you have some files added then you can click on media in the admin part and on the right side you will see a place to click to add media. once you have clicked that you will be able to add the files which will add the info to the databank.

may b i ve messed with this part. i ve some .swf game in my hdd .

so can u pls tell me in deail what i need to do for ths or

wht i need to do if i take games from ur mentioned site?

and may i ve ur messenger id pls?
Unknown User
2010-10-12 16:40:34
sorry but i do not offer free help through messenger because i have a lot to do like making new mods, keeping these forums tidy and working on other projects. you will not see anything if you do not add categories and then upload games. if you use the mochiads scrtipt that will make categories for you and download games from the mochiads server. this mod is complete (of course there may be bugs here and there) in the sense that you have an arcade frame work. all content and settings have to be done by you.
Unknown User
2010-10-13 18:49:02
Thanks for ur reply. m8 actually i love ths kind of mod. um a completely noob. its lee who helped me to makeing a site. otherwise may b i could not do tht.

anywez after a long tym practise i ve integrated my site with t [url="https://www.mochiads.com"]https://www.mochiads.com[/url] i ve run auto post.php nd indexed 500 game . in arcade admin popular list newest list i can see it. i can see 500 games in my site but whn i click it to play thn i get this (in atttachment.)

i knw it is a complete mob. So pls help me to find out wht the mistake um making.

dear walker if u r not clr abt my problem i request u to pls visit my site once i will give u admin access( by PM) so tht i can ve a arcade mod successfully in my site.

Or if u can make the solution here thn pls guide me whr is da problem.

I ve reinstalled the mod nd it is working now. thanks for it :D

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=4220"]ar.bmp[/url]
ar.bmp
Download
Unknown User
2010-10-13 21:37:30
you can change the value for how many games get downloaded i set it at 500 because some people may not want to many or they may not have room on their host. i have ran the script before and downloaded over 5000 games for an arcade i had setup on facebook. one reason why you might not see the games is because the file might not be on your server. when you run the script you have to let it run until it finishes even if it takes hours to do because it is moving each file to your server and that can take time when you have hundreds or thousands of swf files and image files to move. every time a swf file is moved then the autopost page will update and tell you which file it is moving. also make sure the chmods for the folders are correct if you do not see the games or pictures in the folders.
Unknown User
2010-10-14 15:02:21
Thnks m8 it is working parfectly as u ve mentioned.  :D

m8 i need another help. i need multiple admin in my site. but i do not get anything in the forum. somdoby said it is in premium section. paypal is not available in our country so i can't be a premium member now.

could od help me to do tht or if i want to make any one admin tht how can i do tht?

thanks
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728