Getting started

The following requirements are necessary to get Redaxscript running:

Requirements

  • Apache or Microsoft IIS
  • MySQL database
  • PHP version 4.3.0 or above

Recommendations

  • Apache module mod_rewrite and mod_deflate
  • Permission to .htaccess

Installation

Installation routine

Recommended method for non-developers

1. Download the latest Redaxscript package and unpack it to a local folder. Upload all files to a newly created install folder or to the root folder of your website using an ftp program.

2. Change the access rights of config.php by setting chmod to 666, otherwise the database information can not be saved while running the installation routine. Some ftp programs hide this function inside the context menu which appears with a right-mouse click on file.

3. Time to execute the installation routine. Run install.php from the install folder of your website and follow the instructions. Pay attention to possible warning messages at the top of the screen.

4. Redaxscript should now work, but installation is not yet complete. Change the access rights of config.php by setting chmod to 444. Then delete install.php from install folder! Failure to miss this step will create a critical security hole on your website!

Alternate installation

If the installation routine does not work

1. Download and unpack the latest Redaxscript and SQL package to a local folder. Upload needed files, except the install.php and SQL file, to a newly created install folder or to the root folder of your website using an ftp program.

2. Login to your database interface, browse your local folder and import the SQL file. This should create the database tables and contents needed to run Redaxscript.

3. Finally edit your config.php to setup the database connection, leave the prefix blank.

  • $db['host'] = 'localhost';
  • $db['name'] = 'name';
  • $db['username'] = 'username';
  • $db['password'] = 'password';
  • $db['prefix'] = '';
  • $db['mode'] = 'normal';

4. Redaxscript should now work, login to administration with username and password: admin

Updating

Release 0.1.0

We decided to provide no updates on this stage of development. Sorry!

Release 0.2.x to 0.2.2

1. Download the latest Redaxscript package and unpack it to a local folder.

2. Delete outdated files from your website, excepted the config.php.

3. Copy latest files to your website, take care not to overwrite existing config.php.

4. Finally edit customized templates to possible new conditions. Done!

Troubleshooting

Problem: Home works, but no matter which section you choose an error page appears.

Solution: Your webserver seems to have settings deviating from the standard. You need to edit .htaccess and include the line "rewritebase/install-folder" to setup the relative path.

Solution: Change the "allowoverride" directive in the apache configuration to "fileinfo".

Problem: Instead of seeing what you expected you get a blank screen.

Solution: You called a undefined function. Make sure your webserver has PHP version 4.3.0 or above. Otherwise an function Redaxscript needs, was disabled by your administrator.

Solution: Upgrading Redaxscript sometimes involves renamed funtions. Learn more about the current template tags and upgrade your outdated template to the new conditions.

Problem: Special characters not displaying correctly.

Solution: Your webserver seems to have settings deviating from the standard. You need to edit .htaccess and include the line "adddefaultcharset utf-8" to setup another charset.

Template tags

This overview provides the basic tags necessary to create a unique template functionality and layout structure. Edit the index.php located in your template folder to make changes happen.

Head

Generates dynamic title and meta tags. This function is needed to load CSS and scripts.
Put it inside the head tag of your template.

<?php head(); ?>

Center

Displays the main content like articles and pages. It is also used for administration.

<?php center(); ?>

Extras

Displays extra contents.
Define sef (word) or rank (number) to get single extra content.

<?php extras(); ?> • <?php extras('name'); ?> • <?php extras(5); ?>

Search

Displays the search form.

<?php search_form(); ?>

Breadcrumbs

Displays the breadcrumbs navigation.

<?php breadcrumbs(); ?>

Login link

Displays login, administration and logout link.

<?php login_link(); ?>

Navigation list

Generates list for published categories, articles, pages and comments.
Define sef (word) or rank (number) to get single listing.

<?php navi_list('pages'); ?> • <?php navi_list('pages','name'); ?> • <?php navi_list('pages',5); ?>

Languages list

This list allows your visitor to switch between installed languages.

<?php languages_list(); ?>

Templates list

This list allows your visitor to switch between installed templates.

<?php templates_list(); ?>

RSS list

Displays the RSS feed list.

<?php rss_list(); ?>

RSS reader

Get external RSS feeds into your website, limit the entries with a number.
This function only displays plain text.

<?php rss_reader('http://domain.com/rss',5); ?>

FirstPrevious12NextLast

Navigation

Promotion