FORUM CLOSED! This forum is permanently read-only. No registration can be made. It's also not possible to write new contributions. This forum only serves as an archive.

Make my own Society Edition template!

  • Gamer-Templates
  • Gamer-Templates's Avatar Topic Author
  • Online
11 years 6 months ago #2049 by Gamer-Templates
1 Requirements

* a full working webSPELL Society Edition installation
* a HTML web template
* some basic HTML knowledge, if you dont know anything about HTML stop here and continue there.
* a text editor to edit your template
* a FTP program to upload your files

2 Including basic required stuff

First you have to include some basic stuff like the mySQL access data file, the settings and the functions file and the index language initialization into the index file of your web template (name your index file index.php). To do this enter the following code just over the html tag in your index.php:
$index_language = $_language->module;
Now we are adding the variable for the page title which will be displayed at the top of your visitors browser window, put the following line between the title tags:
<?php echo PAGETITLE; ?>
Right after the closing title tag you have to insert these lines, first line is the stylesheet file for WebSpell, second line is for webSPELL's javascript functions:
<link href="_stylesheet.css" rel="stylesheet" type="text/css">
<script src="js/bbcode.js" language="jscript" type="text/javascript"></script>
3 Including the main content area

Now you have to include the core content part of the webSPELL Society Edition system, this is why we requested some basic HTML knowledge in the requirements cause every template is build different and you have to find the correct place for the following code yourself in your HTML code. Put it where the main content should belong in your template:
if((!isset($site)) || $site==) $site="news";
$checkmodul=safe_query("SELECT `activated`, `access` FROM ".PREFIX."modules WHERE `filename`='".$site.".php'");
    if(hasaccess($modulrow['access'], $useraccessgroups)){
      $invalide = array('\\','/','/\/',':','.');
      $site = str_replace($invalide,' ',$site);
      if(!file_exists($site.".php")) $site = "news";
      echo '
    echo '
  echo '
4 Including the navigation

In contrast to the esports webspell version, the society edition has a fully admincenter controllable navigation, so it is essential to use the society editions navigation file if you want to control your site's navigation via the admincenter:
<?php include("navigation.php"); ?>
5 Including optional modules & more

Again a big contrast to the esports webspell version, no need for special includes anymore. You just add placeholders for the new special boxmodule system whereever you want in your index.php. Content of the placesholders is afterwards fully managable via the admincenter. You can add as many placeholders as you want, just always raise the numbering:
<?php boxinclude(1); ?>
<?php boxinclude(2); ?>
<?php boxinclude(3); ?>
6 Applying your template to the installed webspell

Now upload your own template files via FTP to the webSPELL root directory (dont forget the graphics!) and be happy with your fresh webSPELL adapted page!

Now it is time to start to modify all the files in the folder "templates" to your needs, to have your complete pages look like you want it to be.
© [FAQ]

No support via e-mail!
Powered by Kunena Forum

Looking for something? Use search

© 2010 - 2021 by All rights reserved.

All templates, psd, logos and all other materials on this site are copyrighted. To selling downloads is strictly prohibited. Pay attention to the respective licenses.
The names Joomla!, Wordpress, Drupal and all other CMS Names are used under limited licenses. We do not sell anything!
We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience or to advertise. You can decide yourself whether you want to allow cookies or not. Please note that in the event of a rejection, not all functionalities of the site may be 100% available.