Friendly
Social Networking Platform
To install the aplication follow these steps:
Upload the files
-
Unzip the files that come in the ZIP file.
-
Upload to the server all the files in the folder "Application"
-
Create a database and import the file located in the folder "DB" (dbfriendly.sql).
Configuration required on the server
-
Make sure that the server is enabled module "rewrite_module". This is necessary for the creation of friendly urls. This will ensure the proper functioning of the website.
Change the configuration file
-
Open the file "config.php", that It is located in the folder "system".
-
Change the value of $C->SITE_URL. Remember that this value is very important in the operation of the website. The value could be: "http://www.yourdomain.com/" or "http://www.yourdomain.com/demo/" 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: "http://localhost/example/" or "http://localhost/example/demo/'.
-
Change the value of $C->DOMAIN. This value too is very important in the operation of the website. The value could be: "http://www.yourdomain.com". In case you are using a local server, the value can be: "http://localhost". In either case you will not slash at the end. Should only have the domain name. It should not include folders.
$C->SITE_URL = 'http://www.yourdomain.com/';
$C->DOMAIN = 'www.yourdomain.com';
-
Also have to change the information in section "MySQL SETTINGS". You must enter this information correctly or the product will not work well.
// MySQL SETTINGS
$C->DB_HOST = 'YOUR_SERVER_DB';
$C->DB_USER = 'YOUR_USER_DB';
$C->DB_PASS = 'PASS_DB';
$C->DB_NAME = 'NAME_DB';
$C->DB_MYEXT = 'mysqli'; // 'mysqli' or 'mysql'
Configuration .htacces file
In the folder "Applicacion" edit the file ".htaccess".
This step is very important, so do it right. The proper functioning of the website is conditional on this file is properly configured.
<IfModule mod_rewrite.c>
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]
</IfModule>
If you are using this in local mode (eg WAMP), you must delete the lines 3 and 4.
You must change the line 5. If your application is in the root, use:
5. RewriteBase /
Otherwise use, if the site is in a folder:
5. RewriteBase /yourfolder/
The application is divided into the following folders:
Folder "data":
This is the folder where you store files uploaded by users. This folder in turn is subdivided into:
-
Folder "ads": Here are saved files of ads.
-
Folder "albums": Here are saved files of user albums.
-
Folder "avatars": Here are saved user avatar.
-
Folder "avatars_pages": Here are saved files of pages avatars.
-
Folder "bghome": Here are saved images for background of home.
-
Folder "covers": Here are saved user covers.
-
Folder "covers_groups": Here are saved groups covers.
-
Folder "covers_pages": Here are saved page covers.
-
Folder "photos": Here are stored the photos uploaded by users.
-
Folder "photos_groups": Here are stored the photos uploaded by members of groups.
-
Folder "photos_pages": Here are stored the photos uploaded by pages.
-
Folder "tmp": For temporary files.
Folder "system":
This is the folder where the files most important application. Are the classes, languages and controllers. In this folder you can find the following:
-
Folder "classes": Contains files with classes that are used in different parts of the application.
-
Folder "controllers": It contains the most important files of the application. All programming is in this folder.
-
Folder "helpers": Contains files with functions that are used in different parts of the application.
-
Folder "languages": Contains the language of the application. By default languages are Spanish and English.
Folder "themes":
This is the folder where the themes that are used in the application. This folder in turn is subdivided into:
-
Folder "default": Here are located the files of Default Theme
In future updates can add new themes in this folder.
The Themes are located in the folder "themes".
Each theme folder, has in turn other folders: css, html, imgs, js.
If you want to create your own theme, can use as reference the themes that comes into the application.
The fastest way to have your own theme, is duplicating a folder theme and then editing the files it contains.
First edit the file theme.php:
<?php
$current_theme = (object) array
(
'name' => 'Default theme',
'version' => '',
'image' => 'theme.gif',
'description' => 'Default Theme',
'author_name' => 'Lito Santos M.',
'author_url' => 'http://',
'author_email' => 'litosantosm@gmail.com',
'logo_height' => '34',
'logo_bgcolor' => '#0055a4',
);
?>
The line to edit to have a thme with other name is:
'name' => 'Default theme',
Then proceed to edit the CSS file css.css (file located in the folder CSS) to give the desired look.
Folder Languajes
The folder where the language files is: system/languages/
Each language has a folder, for example es (spanish), en (english).
Add a new language
If you want to create a new language, only duplicates a folder and change the texts with the desired language.
The text within the language files have the following structure:
'dashboard_vmenu_opc_home' => 'Home',
'dashboard_vmenu_opc_myinformation' => 'My Information',
'dashboard_vmenu_opc_myphotos' => 'My Photos',
'dashboard_vmenu_opc_mymessages' => 'My Messages',
'dashboard_vmenu_opc_myfavorites' => 'My Likes',
'dashboard_vmenu_opc_mycomments' => 'My Comments',
'dashboard_vmenu_opc_followers' => 'My Followers',
'dashboard_vmenu_opc_following' => 'My Following',
'dashboard_vmenu_opc_logout' => 'Log Out',
When the application is installed, a user is created. This user also is an administrator:
username: usermain
password: 123456
Maintenance Area Options
General Settings: To configure the more general aspects of the application.
Manager Users: Section that is used to manage user accounts.
Pages Users: Section that is used to manage pages user. Here also you will create the categories of groups.
Groups Users: Section that is used to manage groups user.
Reports: Showing, posts and comments that have been reported..
Manage Ads: Section to manage everything related to ads.
Themes: In this option you can choose default theme of the system.
Languages: In this option you can choose default language of the system.
Sections: To enter the content to different sections of the website.
Thank you so much for purchasing this aplication. I'd be glad to help you if you have any questions relating to this theme. No guarantees, but I'll do my best to assist. If you have a more general question relating to the aplication, please do so to info@kanorika.com.