• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Template for Modern AAC

Ecstacy

Mothafuckaaa
Joined
Dec 26, 2008
Messages
3,836
Reaction score
108
Location
The Netherlands
Hello,

I'm wondering how I would make a template for Modern AAC.

I'm used to making templates for HTML, but now I want to get into making my own templates for Modern AAC(PHP).

The thing I want to know is where do I actually form the template, etc.. since I'm using Adobe Dreamweaver and it doesn't have any design when I use 'index.tpl'.

Also I would like to know how I would code buttons, etc..

Thanks in advance,
unknown666
 
Hmm Its very simple:) the same as all php sites ( gesior templates ) but the layout file is called index.tpl

im writing a guide..


atm i wrote..


1. Templates

* About templates

Our template files are stored in (\templates). The main file is (index.tpl)

You can open it with Notepad ++. Mainly the schema of the files is like all other websites. You can use HTML, and PHP ( but you will have to import a file if you want a SQL query ). This tutorial will be based on the default template.


* Head section


1. Including Css and js files​


For importing the Cascading Style Sheets (.css) file we can use this tag

<link rel="stylesheet" href="{$path}/templates/default/images/Refresh.css" type="text/css" />

Where {$path} stands for the location of the Modern AAC directory.

To get a style sheets write in the href="" form {$path}/templates/TEMPLATE-NAME/name.css

For importing javascript (.js) files we can use this tag

<link href="{$path}/templates/default/js.js" type="text/css" rel="stylesheet">

To get a style sheets write in the href="" form {$path}/templates/default/file.js


If you want display the content use {$main} in gesior was <?PHP $main_content; ?>

Hmm what else?

{$admin} - [Administration Link] visible only for page access X+

Menu :

<a href="{$path}/index.php/account/create">Text</a>

{$head} - import all files .css/.js from PUBLIC folder (main directory)


I will write all later in a tutorial but you can spread me rep ;)
 
Is the '*headpart' for '.html' or for '.tpl'?

And how would the layout get larger when I i.e. post a news message?

Code:
[COLOR="Red"]You must spread some Reputation around before giving it to Kavvson again[/COLOR]

##
spreading some rep.
 
Hmm.. You can work for now as a normal HTML file.. Create the layout .. later you can rename the .html to .tpl and add the required lines {$values}

i can help you.. So basically create a blank html template and i will code it. or help you to do it
 
Back
Top