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
(Why develop themes?)
(left.php)
Line 141: Line 141:
===left.php===
===left.php===
 +
 +
Contains the navigation panel of a registered user in form of a left sidebar. So its not a global element and is set according to the whether a user is logged in or not.
 +
 +
Minimal code sets {LEFT_HTML} placeholder:
 +
 +
<pre>
 +
<?php
 +
    if(check_login("user")) {
 +
        // if page is not the home page, include the user-navigation
 +
        if(!(strtolower($_SERVER['PHP_SELF'])=="/".PATH_TO_MAIN.FILENAME_INDEX)) {
 +
            define('LEFT_HTML','
 +
<div id="user-sidebar">
 +
    <div id="userphoto">'.$user_photo_html.'</div>
 +
    <div id="mailbox">'.$mailbox_html.'</div>
 +
    <div id="usernav">'.$usernav_html.'</div>
 +
    <div id="invite">'.$invite_friend_html.'</div>
 +
</div>');
 +
        } else {
 +
        <!-- Default sidebar when user is not logged in-->
 +
        define('LEFT_HTML','');
 +
        }
 +
?>
 +
</pre>
===left_community.php===
===left_community.php===

Revision as of 08:37, 20 July 2011

Main Page
About SNS
Developer Documentation
Personal tools