XtraUpload is an open source project powered by Assembla

Assembla offers free public and private SVN/Git repositories and project hosting with bug/issue tracking and collaboration tools.

xtraupload

/wiki
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#labels Deprecated
== Skins ==

===How to Create Skins===
Skins are site designs XtraUpload uses to wrap itself in. XtraUpload does not use an advanced templating engine and only requires one file to make a working skin. To make a new skin make a now folder in the skins folder in your XtraUpload install. Name this folder the name of your skin. Then copy the blocks folder from inside the Indigo skin into the folder of your skin, make sure all files remain untouched. Then place a .php file with the design you want to use inside that folder and name it skin.php. Then create the design like you would a normal HTML page, CSS and Javascript is supported. After you are done you need to add a few special tags to your skin file. First inside the <head> tag of your HTML place these tags before the HEAD tag closes:
{{{
<!--{$META}-->
<!--{$STYLE}-->
<!--{$HEADER}-->
<!--{JS_MENU}-->
}}}

Then for all images you need to make the url that points to them correct so XtraUpload can display them. In the src attribute in any image prefix the url with this:
{{{<!--{$SITEURL}-->skin/YOUR_SKIN_FOLDER_NAME/}}}

Then you need to place these tags where they should go in their design:
||<!--{LINKS_TOP}-->||Where you want the navigation links to appear.||
||<!--{GET_ADS}-->||Wherever you want ads you add in the Advertisement manager to appear.||
||<!--{$MAIN}-->||Wherever you want the XtraUpload Code to generate HTML into your design.||
||<!--{ADMIN_LINK}-->||Wherever you want to display an admin area link to those with admin access.||

===How to Install Skins===
# Login to your admin account and go to the skin manager in the admin panel.
# Click the install skin link.
# Select the skin you want to install, it will only show uninstalled skins.
# If you want this to be the currently active skin please make sure you check that box.
# Click install skin

===How to Create Blocks===
Blocks are the placements for scripts like php and javascript to go, because you can't have php directly in the template system, blocks were made. Creating a block does not require any talent in php, or javascript, and because the person who is writing this is in a good mood, =D, will do the php for you. This is a basic block code:
{{{
<?php
$skin_parse = ''
$skin_parse .= 'Your content here'
?>
}}}

To edit that above the way you want, just insert your html, php, javascript, or other code into where it says 'Your content here', and save it as something like..., sample_block.php. This can be any name you want.

===How to Add Your Blocks===
To add a block someone made, or one that you created, it requires just two simple consepts.

Placing the Block file into the 'blocks' folder
Insert the <!--{SAMPLE_BLOCK}--> into where you want it. Change the 'SAMPLE_BLOCK' to what you named the block, and capitalize it.
Ajax-loader Loading, please wait...