Warning: preg_match_all() [function.preg-match-all]: Compilation failed: group name must start with a non-digit at offset 4 in /home/socialne/public_html/wiki/includes/MagicWord.php on line 670

Warning: Invalid argument supplied for foreach() in /home/socialne/public_html/wiki/includes/MagicWord.php on line 671

Warning: preg_replace() [function.preg-replace]: Compilation failed: group name must start with a non-digit at offset 4 in /home/socialne/public_html/wiki/includes/MagicWord.php on line 675

Warning: preg_match_all() [function.preg-match-all]: Compilation failed: group name must start with a non-digit at offset 4 in /home/socialne/public_html/wiki/includes/MagicWord.php on line 670

Warning: Invalid argument supplied for foreach() in /home/socialne/public_html/wiki/includes/MagicWord.php on line 671

Warning: preg_replace() [function.preg-replace]: Compilation failed: group name must start with a non-digit at offset 4 in /home/socialne/public_html/wiki/includes/MagicWord.php on line 675

Warning: preg_match_all() [function.preg-match-all]: Compilation failed: group name must start with a non-digit at offset 4 in /home/socialne/public_html/wiki/includes/MagicWord.php on line 670

Warning: Invalid argument supplied for foreach() in /home/socialne/public_html/wiki/includes/MagicWord.php on line 671

Warning: preg_replace() [function.preg-replace]: Compilation failed: group name must start with a non-digit at offset 4 in /home/socialne/public_html/wiki/includes/MagicWord.php on line 675

Warning: preg_match_all() [function.preg-match-all]: Compilation failed: group name must start with a non-digit at offset 4 in /home/socialne/public_html/wiki/includes/MagicWord.php on line 670

Warning: Invalid argument supplied for foreach() in /home/socialne/public_html/wiki/includes/MagicWord.php on line 671

Warning: preg_replace() [function.preg-replace]: Compilation failed: group name must start with a non-digit at offset 4 in /home/socialne/public_html/wiki/includes/MagicWord.php on line 675
Devdoc:Theme Development - Social Networking Software - Online Social Network Software
From Social Networking Software - Online Social Network Software
Jump to: navigation, search
(left.php)
(Miscellaneous theme files)
Line 170: Line 170:
==Miscellaneous theme files==
==Miscellaneous theme files==
 +
 +
Absence of any of these files do not lead to any problem and they provide additional features which do not alter theme functionality or theme development.
===index.php===
===index.php===
 +
 +
This file do not contribute to theme development but is a security feature. It contains a simple line:
 +
<?php header('../'); ?>
 +
It simply redirects anyone trying to reach the theme folder one directory back. e.g. user trying to go to folder of default theme i.e. {ROOT}/themes/defaulttheme will bounce back to {ROOT}/themes.
 +
 +
As {ROOT}/themes again have identical index.php redirection script, so user is redirected again one directory back to homepage i.e. at {ROOT}/index.php.
 +
 +
<span class="note">Though directory listing in Apache is prevented by setting directory permissions which shows an Apache's untidy access denied error, so this is just a nice and friendly way to tell user that he is not allowed to do so.</span>
===screenshot.gif===
===screenshot.gif===
 +
 +
This contains the screenshot of the theme's homepage which is shown as a thumbnail in admin panel theme choosing screen so that a particular theme can be visually recognized.
 +
 +
If absent, no thumbnail is shown.
===info.txt===
===info.txt===
 +
 +
This text contains information about theme which is displayed again in admin panel theme selection screen. Information contains, theme's name, description and version in following format.
 +
 +
Theme Name: Default theme
 +
Description: This is default theme for social network software.
 +
Version: 1.0
 +
 +
If absent, theme folder name is displayed as theme name and rest information is not displayed.
===theme specific images===
===theme specific images===
 +
 +
Theme related images can be stored inside a separate folder named '''images''' inside respective theme directory.
 +
 +
<span class="note">Only theme dependent images (e.g. bullets, backgrounds, buttons and icons etc.) must be stored inside images folder and images which are part of website instead (e.g. logo and products images) must be put at {ROOT}/images so that they can be shared among all themes.</span>

Revision as of 07:23, 22 July 2011

Main Page
About SNS
Developer Documentation
Personal tools