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 gaming template!

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

* a full working webSPELL 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 in to 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:
<? 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 BBCode support on the WebSpell page:
<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 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="news";
$invalide = array('\\','/','//',':','.');
$site = str_replace($invalide,' ',$site);
if(!file_exists($site.".php")) $site = "news";
4 Including the navigation

If you want to use the webSPELL's navigation file put the following line where your websites navigation schould belong:
<? include("navigation.php"); ?>
If you don't want to use this navigation file you have to link your menu buttons yourself in your index.php, you can see the links to each section in the original webSPELL index.php .

5 Including the login area

To enable your visitors and clan members to register and login at the page you have to place the login module at the desired place in your HTML template code:
<? include("login.php"); ?>
6 Including optional modules & more

With WebSpell you are able to display lots of useful information on your webpage, here are the include code lines to put them in your HTML template code:

Display the URL of your homepage:
<? echo $hp_url ?>
Display your clans name:
<? echo $myclanname ?>
Include the site search:
<? include("quicksearch.php"); ?>
Include the poll:
<? include("poll.php"); ?>
Show the picture of the moment:
<? include("sc_potm.php"); ?>
Show a random picture:
<? include("sc_randompic.php"); ?>
Show latest articles:
<? include("sc_articles.php"); ?>
Show latest downloads:
<? include("sc_files.php"); ?>
Show latest forum topics:
<? include("latesttopics.php"); ?>
Display partner buttons:
<? include("partners.php"); ?>
Show a scrolling text line:
<? include("sc_scrolltext.php"); ?>
Show advertising banner system (min. size: 468x60px):
<? include("sc_bannerrotation.php"); ?>
Show latest matches:
<? include("sc_results.php"); ?>
Show demos:
<? include("sc_demos.php"); ?>
Show top news:
<? include("sc_topnews.php"); ?>
Show latest news:
<? include("sc_headlines.php"); ?>
Display upcoming events:
<? include("sc_upcoming.php"); ?>
Include Shoutbox:
<? include("shoutbox.php"); ?>
Display page statistics:
<? include("counter.php"); ?>
New since 4.02a:

Display language switch:
<? include("sc_language.php"); ?>
Display latest users:
<? include("sc_lastregistered.php"); ?>
Display servers:
<? include("sc_servers.php"); ?>
Display sponsors:
<? include("sc_sponsors.php"); ?>
Display squads:
<? include("sc_squads.php"); ?>
7 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.