Welcome Guest [Log In] [Register]
This board has been archived and is no longer accepting new questions. If you have a support question for your ZetaBoard, please visit us at the new support board. Registration is free and easy.


Visit the NEW ZetaBoards Support forum!

Username:   Password:
Add Reply
Thunder Arcade 1 Mod.; Updated for ZetaBoards
Topic Started: Nov 29 2007, 07:05 PM (27,289 Views)
Chris
Member Avatar
Member
[ *  *  *  * ]
First off, on behalf of Gamfreak11 and my self, I thank you for choosing the Thunder Arcade. But just for those who are a little unaware - I did NOT create the Thunder Arcade. The lone creator is Gamefreak11; for both version 1 and 2. This is simply a tutorial that allows you to successfully install the Thunder Arcade unto your ZetaBoard.

Note: Locations for scripts are at the Top of the Quote Boxes. These locations are in the ZetaBoard Administration Control Panel.

Warning: Do NOT post asking for help without providing a forum url.

Preview

First
You need to add the Arcade link. To do this, you can use your own "Add Submenu Links" script, but I will be using one created by the Coding Zone.
Board Themes → Board Template: Javascripts
 
<script type="text/javascript">
//Add links to submenu
//By slayer766 of Spammer [1].com

function Add(url,name){
$(function() {
$("#submenu").prepend("<a href='"+url+"'>"+name+"</a>");
});}

Add(main_url+"index/Arcade/","Arcade");
</script>


You do not need to edit anything if you add the above script. If you are using your own script, however - you need to use a web-link format of
Quote:
 
http://s#.zetaboards.com/Board_Name/index/Arcade

To get around any annoyances you have - if you are using JavaScript (NOT HTML) then you can just use:
Quote:
 
main_url+"index/Arcade/"

For the variable. This takes care of Custom Domains and everything. :)

Second
The next thing that needs doing, is defining the variables for the script. To do this, you simply need to add this code:
Board Themes → Board Template: Javascripts
 
<script>
aName = "ACCOUNT NAME";
Enable = "Members"; //Members or All
Height = 2250;
Width = "100%";
</script>

The only thing that you NEED to edit is ACCOUNT NAME. This needs to be replaced with your Thunder Arcade Account Name. If you do not have an Account Name registered, then you can register one here: http://xgbarcade.com/Arcade/Register.php

There are, however, things which you can edit. After aName you will see "Enable." This feature can be used to allow Members ONLY or anyone to use the arcade. The default is now "Members" but you can change it to "All" if you want.

Next down is the height variable. The default value, 2250, matches the theme that I have converted into an IPB Skin. You can find more about this after the installation instructions. This variable doesn't need quotation marks, however, because it is a simple number.

Next is the width. It is highly recommended that you do not change this, unless you want an extremely skinny arcade. This does require quotation marks, when you use percentage. If you just use a regular number then you do not; and can delete those.

Third (Part One)
The next to last thing that you need to do is host the two scripts which run the arcade. If you do not know how to save files and then upload them to your forum, then continue to the Third section Part Two and then come back to Part One.

First off, you need to save two files and then upload them to your forum. For the best results, it is recommended that you use a .js file extension. To do so - in Notepad - paste the contents, hit Ctrl + S and where it gives you the drop down labeled "Save as type:" or something similar, choose "All." Then put in the file name you want - without an extension; and then at the end of the file name, type .js - as this will save the file as a JavaScript type file. The recommended file names are at the above the code boxes.

Make sure that you save the file in a Unicode format. (This is usually the default for Notepad)

Spoiler: click to toggle
Next you need to upload the files. As mentioned above: if you do not know how to do this, there is a Tutorial in Part Two of this section. Continue to Section Four once you have uploaded the files.

Third (Part Two)
This is a tutorial on Uploading files to your ZetaBoard.

First off you need to make sure that your files are saved to your computer. The desktop folder is most recommended.

Make sure that you save the file in a Unicode format. (This is usually the default for Notepad)

Next create a new topic in a forum that allows Uploads. If you don't have any forums which are Upload-Enabled, then temporarily allow Uploading in one of them. Click the "Browse..." button as you see here:
Posted Image

You should get a window that looks similar to this:
Posted Image

Search for the file that you are uploading and then click "Open." This will add the file path into the input area next to the "Browse..." button.

Add a topic title and some post content; and then click Post Topic.

Now, if you have settings to display Attached items, then you will see something like this in your new topic:
Posted Image
When you click that file name, with the Icon and File Size beside it, you will be directed to the file which is now uploaded on your board. :)

Fourth
Almost done now. What needs adding now is the script to make it all work; and then edit the Red parts.
Replace your <!-- BOARD --> comment tag with the following:
Board Themes → Themes (Which ever) → Edit Theme Layout: Header/Logo
 
<script src="getUser_zB.js" type="text/javascript"></script>

<!-- BOARD -->

<script type="text/javascript">Skin = "";</script>
<script src="arcadeCodeEnd_zB.js" type="text/javascript"></script>

Replace the Red sections with the corresponding file. The red parts match up with the top of the quote boxes with file content, which you were supposed to upload to your forums. You must replace the red with the ENTIRE link. To aquire this link, you need to click the name of the Uploaded File in the topic which you uploaded files in. Example:
Posted Image

You will also notice that there is a Skin variable above the second red area. With this variable you can define a custom skin. Do not delete it however - if you do not use it. Just leave it as is.

Now your done. :D Post with any problems.


(Optional) Custom Skins
Spoiler: click to toggle
Edited by Chris, Oct 5 2008, 09:09 PM.
Offline Profile Quote Post Goto Top
 
Ruzarik
Member Avatar
Leader of the Rogue Army
[ *  * ]
and How do I upload something to my board?

Attachments?
Offline Profile Quote Post Goto Top
 
.MadX
Member Avatar
Member
[ * ]
Admin CP --> File Managers --> (on the buttom) click upload file.

Once uploaded go Admin CP --> File Managers --> View General Files :)



Also this code doesn't work for me :( and what do i put for ACCOUNT NAME? i don't get it :(
Edited by .MadX, Dec 7 2007, 10:32 PM.
Offline Profile Quote Post Goto Top
 
Ruzarik
Member Avatar
Leader of the Rogue Army
[ *  * ]
ahhh I see now, thats actually pretty cool... ok so I did everything you said i should, but nothing is showing up...

for account name, you have to register... go to support.invisionfree.com and search thunder arcade, look in the code, and go register.
Edited by Ruzarik, Dec 7 2007, 10:34 PM.
Offline Profile Quote Post Goto Top
 
.MadX
Member Avatar
Member
[ * ]
Ruzarik
Dec 7 2007, 10:34 PM
ahhh I see now, thats actually pretty cool... ok so I did everything you said i should, but nothing is showing up...
same here all i see is that the submenu says Arcade on it :(
Offline Profile Quote Post Goto Top
 
Ruzarik
Member Avatar
Leader of the Rogue Army
[ *  * ]
my sub menu doesn't even display the link...

are we supposed to edit more then what you said we were?

what EXACTLY did you do to make it work Chris?
Edited by Ruzarik, Dec 7 2007, 10:41 PM.
Offline Profile Quote Post Goto Top
 
Chris
Member Avatar
Member
[ *  *  *  * ]
Can you give me the link to where you are using this code?

(Both of you)
Edited by Chris, Dec 9 2007, 07:10 PM.
Offline Profile Quote Post Goto Top
 
Riyzar
Member
[ * ]
Works great! Thanks!
Offline Profile Quote Post Goto Top
 
Zephon
Member Avatar

[ *  * ]
Great code. Works fine. :)
Edited by Zephon, Dec 9 2007, 12:47 PM.
Offline Profile Quote Post Goto Top
 
Ruzarik
Member Avatar
Leader of the Rogue Army
[ *  * ]
WORKS FINE!? WHAT!?

HOW???

What did you guys do to make it work, PLEASE HELP MEH!
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · User Created Codes · Next Topic »
Add Reply