Вход Регистрация
Файл: Documentation/index.html
Строк: 741
<?php
<!doctype html>  
<!--[if 
IE 6 ]><html lang="en-us" class="ie6"> <![endif]-->
<!--[if 
IE 7 ]><html lang="en-us" class="ie7"> <![endif]-->
<!--[if 
IE 8 ]><html lang="en-us" class="ie8"> <![endif]-->
<!--[if (
gt IE 7)|!(IE)]><!-->
<
html lang="en-us"><!--<![endif]-->
<
head>
    <
meta charset="utf-8">
    
    <
title>Followly Social Networking Platform</title>
    
    <
meta name="description" content="">
    <
meta name="author" content="Lito Santos M.">
    <
meta name="copyright" content="Lito Santos M.">
    <
meta name="generator" content="Documenter v2.0 http://rxa.li/documenter">
    <
meta name="date" content="2014-13-07T20:36:29+01:00">
    
    <
link rel="stylesheet" href="assets/css/documenter_style.css" media="all">
    <
link rel="stylesheet" href="assets/js/google-code-prettify/prettify.css" media="screen">
    <
script src="assets/js/google-code-prettify/prettify.js"></script>

    
    
    <
script src="assets/js/jquery.js"></script>
    
    <
script src="assets/js/jquery.scrollTo.js"></script>
    <
script src="assets/js/jquery.easing.js"></script>
    
    <
script>document.createElement('section');var duration='500',easing='swing';</script>
    <
script src="assets/js/script.js"></script>
    
    <
style>
        
html{background-color:#FFFFFF;color:#383838;}
        
::-moz-selection{background:#444444;color:#DDDDDD;}
        
::selection{background:#444444;color:#DDDDDD;}
        #documenter_sidebar #documenter_logo{background-image:url();}
        
a{color:#0000FF;}
        
.btn {
            
border-radius:3px;
        }
        .
btn-primary {
              
background-image: -moz-linear-gradient(top#0088CC, #0044CC);
              
background-image: -ms-linear-gradient(top#0088CC, #0044CC);
              
background-image: -webkit-gradient(linear0 00 0088CC%, from(#DDDDDD), to(#0044CC));
              
background-image: -webkit-linear-gradient(top#0088CC, #0044CC);
              
background-image: -o-linear-gradient(top#0088CC, #0044CC);
              
background-imagelinear-gradient(top#0088CC, #0044CC);
              
filterprogid:DXImageTransform.Microsoft.gradient(startColorstr='#0088CC'endColorstr='#0044CC'GradientType=0);
              
border-color#0044CC #0044CC #bfbfbf;
              
color:#FFFFFF;
        
}
        .
btn-primary:hover,
        .
btn-primary:active,
        .
btn-primary.active,
        .
btn-primary.disabled,
        .
btn-primary[disabled] {
          
border-color#0088CC #0088CC #bfbfbf;
          
background-color#0044CC;
        
}
        
hr{border-top:1px solid #EBEBEB;border-bottom:1px solid #FFFFFF;}
        #documenter_sidebar, #documenter_sidebar ul a{background-color:#DDDDDD;color:#222222;}
        #documenter_sidebar ul a{-webkit-text-shadow:1px 1px 0px #EEEEEE;-moz-text-shadow:1px 1px 0px #EEEEEE;text-shadow:1px 1px 0px #EEEEEE;}
        #documenter_sidebar ul{border-top:1px solid #AAAAAA;}
        #documenter_sidebar ul a{border-top:1px solid #EEEEEE;border-bottom:1px solid #AAAAAA;color:#444444;}
        #documenter_sidebar ul a:hover{background:#444444;color:#DDDDDD;border-top:1px solid #444444;}
        #documenter_sidebar ul a.current{background:#444444;color:#DDDDDD;border-top:1px solid #444444;}
        #documenter_copyright{display:block !important;visibility:visible !important;}
    
</style>
    
</
head>
<
body class="documenter-project-photofans">
    <
div id="documenter_sidebar">
        <
a href="#documenter_cover" id="documenter_logo"></a>
        <
ul id="documenter_nav">
            <
li><class="current" href="#documenter_cover">Start</a></li>
                
            <
li><a href="#installation" title="Installation">Installation</a></li>
            <
li><a href="#how_is_distributed_our_application" title="How is distributed our application">How is distributed our application</a></li>
            <
li><a href="#about_themes" title="About Themes">About Themes</a></li>
            <
li><a href="#about_languages" title="About Languages">About Languages</a></li>
            <
li><a href="#access_the_maintenance_area" title="Access the maintenance area">Access the maintenance area</a></li>
            <
li><a href="#functional_demonstration" title="Functional Demonstration">Functional Demonstration</a></li>
            <
li><a href="#thanks" title="Thanks">Thanks</a></li>

        </
ul>
        <
div id="documenter_copyright">Copyright Kanorika 2014<br>
        
made with the <a href="http://rxa.li/documenter">Documenter v2.0</a
        </
div>
    </
div>
    <
div id="documenter_content">
    <
section id="documenter_cover">
    <
h1>Followly</h1>
    <
h2>Social Networking Platform</h2>
    <
div id="documenter_buttons">
        
    </
div>
    <
hr>
    <
ul>
    
    
    <
li>byKanorika</li>
    <
li><a href=""></a></li>
    <
li>email: <a href="mailto:info@kanorika.com">info@kanorika.com</a></li>
    </
ul>
    <
p></p>
    </
section>
    
    <
section id="installation">
    <
div class="page-header"><h3>Installation</h3><hr class="notop"></div>
<
p>
    
To install the aplication follow these steps:</p>
<
h3>
    
Upload the files</h3>
<
ul>
    <
li>
        
Unzip the files that come in the ZIP file.</li>
    <
li>
        
Upload to the server all the files in the folder &quot;Application&quot;</li>
    <
li>
        
Create a database and import the file located in the folder &quot;DB&quot; (dbfollowly.sql).</li>
</
ul>
<
h3>
    
Configuration required on the server</h3>
<
ul>
    <
li>
        
Make sure that the server is enabled module &quot;rewrite_module&quot;. This is necessary for the creation of friendly urlsThis will ensure the proper functioning of the website.</li>
</
ul>
<
h3>
    
Change the configuration file</h3>
<
ul>
    <
li>
        
Open the file &quot;<strong>config.php</strong>&quot;, that It is located in the folder &quot;<strong>system</strong>&quot;.</li>
    <
li>
        
Change the value of <strong>$C-&gt;SITE_URL</strong>. Remember that this value is very important in the operation of the websiteThe value could be: &quot;http://www.yourdomain.com/&quot; or &quot;http://www.yourdomain.com/demo/&quot; depending on whether it is hosted in the root or in a folder. In case you are using a local server, the value can be: &quot;http://localhost/example/&quot; or &quot;http://localhost/example/demo/&#39;.</li>
    
<li>
        
Change the value of <strong>$C-&gt;DOMAIN</strong>. This value too is very important in the operation of the websiteThe value could be: &quot;http://www.yourdomain.com&quot;. In case you are using a local server, the value can be: &quot;http://localhost&quot;. In either case you will not slash at the end. Should only have the domain name. It should not include folders.</li>
</ul>
<
pre class="prettyprint lang-php linenums">
$C-&gt;SITE_URL = &#39;http://www.yourdomain.com/&#39;;
$C-&gt;DOMAIN = &#39;www.yourdomain.com&#39;;</pre>
<ul>
    <
li>
        
Also have to change the information in section&nbsp;&quot;<strong>MySQL SETTINGS</strong>&quot;.&nbsp;You must enter this information correctly or the product will not work well.</li>
</
ul>
<
pre class="prettyprint lang-php linenums">
// MySQL SETTINGS
$C-&gt;DB_HOST = &#39;YOUR_SERVER_DB&#39;;
$C-&gt;DB_USER = &#39;YOUR_USER_DB&#39;;
$C-&gt;DB_PASS = &#39;PASS_DB&#39;;
$C-&gt;DB_NAME = &#39;NAME_DB&#39;;
$C-&gt;DB_MYEXT = &#39;mysqli&#39;; // &#39;mysqli&#39; or &#39;mysql&#39;</pre>
<p>&nbsp;
    </
p>
<
h3>
    
Configuration .htacces file</h3>
<
p>
    
In the folder &quot;<strong>Applicacion</strong>&quotedit the file &quot;.<strong>htaccess</strong>&quot;.</p>
<
p>
    
This step is very importantso do it rightThe proper functioning of the website is conditional on this file is properly configured.</p>
<
pre class="prettyprint lang-php linenums">
&
lt;IfModule mod_rewrite.c&gt;
RewriteEngine On
RewriteCond 
%{HTTP_HOST} ^yourdomain.com$ [NC]
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L]
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond 
%{REQUEST_FILENAME} !-d
RewriteRule 
^(.*)$ index.php?%{QUERY_STRING} [NE,L]
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
&
lt;/IfModule&gt;</pre>
<
div>
    If 
you are using this in local mode (eg WAMP), you must delete the lines 3 and 4.</div>
<
div>
    &
nbsp;</div>
<
div>
    
You must change the line 5. If your application is in the root, use:</div>
<
pre class="prettyprint lang-php linenums">
5.   RewriteBase /</pre>
<
div>
    &
nbsp;</div>
<
div>
    
Otherwise use,&nbsp;if the site is in a folder:</div>
<
pre class="prettyprint lang-php linenums">
5.   RewriteBase /yourfolder/</pre>
<
p>&nbsp;
    </
p>
<
p>&nbsp;
    </
p>
</
section>
<
section id="how_is_distributed_our_application">
    <
div class="page-header"><h3>How is distributed our application</h3><hr class="notop"></div>
<
p>
    
The application is divided into the following folders:</p>
<
ul>
    <
li>
        <
strong>data</strong></li>
    <
li>
        <
strong>system</strong></li>
    <
li>
        <
strong>themes</strong></li>
</
ul>
<
p>&nbsp;
    </
p>
<
h3>
    
Folder &quot;data&quot;:</h3>
<
p>
    
This is the folder where you store files uploaded by users.&nbsp;This folder in turn is subdivided into:</p>
<
ul>
    <
li>
        <
strong>Folder &quot;ads&quot;:&nbsp;</strong>Here are saved files of ads.</li>
    <
li>
        <
strong>Folder &quot;avatars&quot;:&nbsp;</strong>Here are saved user avatar.</li>
    <
li>
        <
strong>Folder &quot;bghome&quot;:&nbsp;</strong>Here are saved images for background of home.</li>
    <
li>
        <
strong>Folder &quot;covers&quot;:&nbsp;</strong>Here are saved user covers.</li>
    <
li>
        <
strong>Folder &quot;photos&quot;:&nbsp;</strong>Here are stored the photos uploaded by users.</li>
    <
li>
        <
strong>Folder &quot;tmp&quot;:&nbsp;</strong>For temporary files.</li>
</
ul>
<
p>&nbsp;
    </
p>
<
h3>
    
Folder &quot;system&quot;:</h3>
<
p>
    
This is the folder where the files most important applicationAre the classeslanguages​​ and controllers.&nbsp;In this folder you can find the following:</p>
<
ul>
    <
li>
        <
strong>Folder &quot;classes&quot;</strong>: Contains files with <strong>classes </strong>that are used in different parts of the application.</li>
    <
li>
        <
strong>Folder &quot;controllers&quot;</strong>: It contains the most important files of the applicationAll programming is in this folder.</li>
    <
li>
        <
strong>Folder &quot;helpers&quot;</strong>: Contains files with <strong>functions </strong>that are used in different parts of the application.</li>
    <
li>
        <
strong>Folder &quot;languages&quot;</strong>: Contains the language of the applicationBy default languages ​​are Spanish and English.</li>
</
ul>
<
p>&nbsp;
    </
p>
<
h3>
    
Folder &quot;<strong>themes</strong>&quot;:</h3>
<
p>
    
This is the folder where the <strong>themes </strong>that are used in the application.&nbsp;This folder in turn is subdivided into:</p>
<
ul>
    <
li>
        <
strong>Folder &quot;default&quot;:</strongHere are located the files of&nbsp;Default Theme</li>
</
ul>
<
p>
    
In future updates can add new themes in this folder.</p>
<
p>&nbsp;
    </
p>
<
p>&nbsp;
    </
p>
</
section>
<
section id="about_themes">
    <
div class="page-header"><h3>About Themes</h3><hr class="notop"></div>
<
p>
    
The Themes are located in the folder &quot;<strong>themes</strong>&quot;.</p>
<
p>
    
Each theme folderhas in turn other folders: <strong>css</strong>, <strong>html</strong>, <strong>imgs</strong>, <strong>js</strong>.</p>
<
p>
    If 
you want to create your own themecan use as reference the themes&nbsp;that comes into the application.</p>
<
p>
    
The fastest way to have your own themeis duplicating a folder theme and then editing the files it contains.</p>
<
p>
    
First edit the file <strong>theme.php</strong>:</p>
<
pre class="prettyprint lang-php linenums">
&
lt;?php

$current_theme
<span class="Apple-tab-span" style="white-space:pre"> </span>= (object) array
(
&
#39;name&#39;<span class="Apple-tab-span" style="white-space:pre"> </span>=&gt; &#39;Default theme&#39;,
&#39;version&#39;<span class="Apple-tab-span" style="white-space:pre"> </span>=&gt; &#39;&#39;,
&#39;image&#39;<span class="Apple-tab-span" style="white-space:pre"> </span>=&gt; &#39;theme.gif&#39;,
&#39;description&#39;<span class="Apple-tab-span" style="white-space:pre"> </span>=&gt; &#39;Default Theme&#39;,

&#39;author_name&#39;<span class="Apple-tab-span" style="white-space:pre"> </span>=&gt; &#39;Lito Santos M.&#39;,
&#39;author_url&#39;<span class="Apple-tab-span" style="white-space:pre"> </span>=&gt; &#39;http://&#39;,
&#39;author_email&#39;<span class="Apple-tab-span" style="white-space:pre"> </span>=&gt; &#39;&#108;&#105;&#116;&#111;&#115;&#97;&#110;&#116;&#111;&#115;&#109;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#39;,

&#39;logo_height&#39;<span class="Apple-tab-span" style="white-space:pre"> </span>=&gt; &#39;34&#39;,
&#39;logo_bgcolor&#39;<span class="Apple-tab-span" style="white-space:pre"> </span>=&gt; &#39;#0055a4&#39;,

);


?&
gt;</pre>
<
p>&nbsp;
    </
p>
<
p>
    
The line to edit to have a thme with other name is:</p>
<
pre class="prettyprint lang-php linenums">
&
#39;name&#39;<span class="Apple-tab-span" style="white-space:pre"> </span>=&gt; &#39;Default theme&#39;,</pre>
<p>
    
Then proceed to edit the CSS file css.css (file located in the folder CSSto give the desired look.</p>
<
p>&nbsp;
    </
p>
<
p>&nbsp;
    </
p>
<
p>&nbsp;
    </
p>
<
p>&nbsp;
    </
p>
</
section>
<
section id="about_languages">
    <
div class="page-header"><h3>About Languages</h3><hr class="notop"></div>
<
h3>
    
Folder Languajes</h3>
<
p>
    
The folder where the language files is: <strong>system/languages/</strong></p>
<
p>
    
Each language has a folder, for example <strong>es </strong>(spanish), <strong>en </strong>(english).</p>
<
p>&nbsp;
    </
p>
<
h3>
    
Add a new language</h3>
<
p>
    If 
you want to create a new languageonly <strong>duplicates a folder</strong> and change the texts with the desired language.</p>
<
p>
    
The text within the language files have the following structure:</p>
<
pre class="prettyprint lang-php linenums">
&
#39;dashboard_vmenu_opc_home&#39;<span class="Apple-tab-span" style="white-space:pre"> </span>=&gt; &#39;Home&#39;,
&#39;dashboard_vmenu_opc_myinformation&#39;<span class="Apple-tab-span" style="white-space:pre"> </span>=&gt; &#39;My Information&#39;,
&#39;dashboard_vmenu_opc_myphotos&#39;<span class="Apple-tab-span" style="white-space:pre"> </span>=&gt; &#39;My Photos&#39;,
&#39;dashboard_vmenu_opc_mymessages&#39;<span class="Apple-tab-span" style="white-space:pre"> </span>=&gt; &#39;My Messages&#39;,
&#39;dashboard_vmenu_opc_myfavorites&#39;<span class="Apple-tab-span" style="white-space:pre"> </span>=&gt; &#39;My Likes&#39;,
&#39;dashboard_vmenu_opc_mycomments&#39;<span class="Apple-tab-span" style="white-space:pre"> </span>=&gt; &#39;My Comments&#39;,
&#39;dashboard_vmenu_opc_followers&#39;<span class="Apple-tab-span" style="white-space:pre"> </span>=&gt; &#39;My Followers&#39;,
&#39;dashboard_vmenu_opc_following&#39;<span class="Apple-tab-span" style="white-space:pre"> </span>=&gt; &#39;My Following&#39;,
&#39;dashboard_vmenu_opc_logout&#39;<span class="Apple-tab-span" style="white-space:pre"> </span>=&gt; &#39;Log Out&#39;,</pre>
<p>&nbsp;
    </
p>
<
p>&nbsp;
    </
p>
<
p>&nbsp;
    </
p>
<
p>&nbsp;
    </
p>
<
p>&nbsp;
    </
p>
<
p>&nbsp;
    </
p>
<
p>&nbsp;
    </
p>
<
p>&nbsp;
    </
p>
</
section>
<
section id="access_the_maintenance_area">
    <
div class="page-header"><h3>Access the maintenance area</h3><hr class="notop"></div>
<
div>
    
When the application is installeda user is createdThis user also is an administrator:</div>
<
p>
    <
strong>username</strong>: usermain</p>
<
p>
    <
strong>password</strong>: 123456</p>
<
p>&nbsp;
    </
p>
<
h3>
    
Maintenance Area Options</h3>
<
div>
    &
nbsp;</div>
<
div>
    <
strong>General Settings</strong>:&nbsp;To configure the more general aspects of the application.</div>
<
div>
    &
nbsp;</div>
<
div>
    <
strong>Manager Users</strong>:&nbsp;Section that is used to manage user accounts.</div>
<
div>
    &
nbsp;</div>
<
div>
    <
strong>Languages</strong>:&nbsp;In this option you can choose default language of&nbsp;the system.</div>
<
div>
    &
nbsp;</div>
<
div>
    <
strong>Themes</strong>:&nbsp;In this option you can choose default theme of&nbsp;the system.</div>
<
div>
    &
nbsp;</div>
<
div>
    <
strong>Manage Ads</strong>:&nbsp;To configure the areas of advertisingThese areas are advertising 200 x 200 pixels.</div>
<
div>
    &
nbsp;</div>
<
div>
    <
strong>Pages</strong>:&nbsp;To enter the content to different pages of the website.</div>
<
div>
    &
nbsp;</div>
<
div>
    &
nbsp;</div>
<
div>
    &
nbsp;</div>
<
div>
    &
nbsp;</div>
<
div>
    &
nbsp;</div>
<
div>
    &
nbsp;</div>
<
p>&nbsp;
    </
p>
</
section>
<
section id="functional_demonstration">
    <
div class="page-header"><h3>Functional Demonstration</h3><hr class="notop"></div>
<
p>
    
You can visit to see a demo functional: <a href="http://www.kanorika.com/followly/demo" target="_blank">www.kanorika.com/followly/demo</a></p>
<
p>
    <
strong>User</strong>: usermain</p>
<
p>
    <
strong>Password</strong>: 123456</p>
<
p>
    
This user is an administrator.</p>
<
p>&nbsp;
    </
p>
<
p>&nbsp;
    </
p>
<
p>&nbsp;
    </
p>
<
p>&nbsp;
    </
p>
<
p>&nbsp;
    </
p>
</
section>
<
section id="thanks">
    <
div class="page-header"><h3>Thanks</h3><hr class="notop"></div>
<
p>
    <
strong>Thank you so much</strong> for purchasing this aplicationI&#39;d be glad to help you if you have any questions relating to this theme. No guarantees, but I&#39;ll do my best to assist. If you have a more general question relating to the aplication, please do so to&nbsp;<strong><span style="font-family: arial, sans-serif; font-size: 13px; white-space: nowrap;"><a href="mailto:info@kanorika.com">info@kanorika.com</a></span></strong>.</p>
<p>&nbsp;
    </
p>
<
p>&nbsp;
    </
p>
<
p>&nbsp;
    </
p>
<
p>&nbsp;
    </
p>
</
section>

    </
div>
</
body>
</
html>
?>
Онлайн: 4
Реклама