Skip to content

Instantly share code, notes, and snippets.

View lianglee's full-sized avatar
🔋
Charging ....

Arsalan Shah lianglee

🔋
Charging ....
View GitHub Profile
<?php
/**
* Open Source Social Network
*
* @packageOpen Source Social Network
* @author Informatikon Core Team <info@informatikon.com>
* @copyright 2014 iNFORMATIKON TECHNOLOGIES
* @license General Public Licence http://www.opensource-socialnetwork.org/licence
* @link http://www.informatikon.com/
*/
<?php
/**
* Open Source Social Network
*
* @packageOpen Source Social Network
* @author Open Social Website Core Team <info@informatikon.com>
* @copyright 2014 iNFORMATIKON TECHNOLOGIES
* @license General Public Licence http://www.opensource-socialnetwork.org/licence
* @link http://www.opensource-socialnetwork.org/licence
*/
@lianglee
lianglee / OssnNotifications.php
Created January 29, 2016 18:24
Try to replace components/OssnNotifications/classes/OssnNotifications.php to limit notification to latest 10. This is just for testing , these changes may reverted back on next Ossn upgrade.
<?php
/**
* Open Source Social Network
*
* @package (Informatikon.com).ossn
* @author OSSN Core Team <info@opensource-socialnetwork.org>
* @copyright 2014 iNFORMATIKON TECHNOLOGIES
* @license General Public Licence http://www.opensource-socialnetwork.org/licence
* @link http://www.opensource-socialnetwork.org/licence
*/
<?php
echo ossn_plugin_view('input/dropdown', array(
'name' => 'gender',
'class' => 'my-select',
'id' => 'select-box',
'options' => array(
'male' => 'Male',
'female' => 'female'
)
));
@lianglee
lianglee / memeberof_groups.php
Created March 17, 2016 19:12
Get user groups that he is member of (not his own groups)
$id = 2;
$groups = new OssnGroup;
$joined = ossn_get_relationships(array(
'to' => $id,
'type' => 'group:join:approve'
));
$myown = $groups->searchObject(array(
'type' => 'user',
'subtype' => 'ossngroup',
# OpenSource-SocialNetwork
#
# @package (Informatikon.com).ossn
# @author OSSN Core Team <info@opensource-socialnetwork.org>
# @copyright 2014 iNFORMATIKON TECHNOLOGIES
# @license General Public Licence http://opensource-socialnetwork.org/licence
# @link http://www.opensource-socialnetwork.org
Options -Indexes
Options +SymlinksIfOwnerMatch
<?php
/**
* Open Source Social Network
*
* @packageOpen Source Social Network
* @author Open Social Website Core Team <info@informatikon.com>
* @copyright 2014 iNFORMATIKON TECHNOLOGIES
* @license General Public Licence http://www.opensource-socialnetwork.org/licence
* @link http://www.opensource-socialnetwork.org/licence
*/
@lianglee
lianglee / ossn install
Created December 15, 2016 07:29
Install Ossn
- Install PHP , with php-mycrypt, php-curl , php-gd and mysql extension.
- Install MySQL and Apache (with mod_rewrite enabled) on your server.
- Create a databas and database user.
- extra premium version into /var/www/html/
- create new folder /var/www/ossn_data/
Visit yourwebsite.com/premium/
Create a new virtual host directive in Apache. For example, create a new Apache configuration file named ‘ossn.conf’ on your virtual server:
@lianglee
lianglee / signup.php
Created May 2, 2017 17:07
components/signupfields/plugins/default/forms/signup.php
<?php
/**
* Open Source Social Network
*
* @packageOpen Source Social Network
* @author Open Social Website Core Team <info@informatikon.com>
* @copyright 2014 iNFORMATIKON TECHNOLOGIES
* @license General Public Licence http://www.opensource-socialnetwork.org/licence
* @link http://www.opensource-socialnetwork.org/licence
*/
@lianglee
lianglee / ossn_com.php
Created May 25, 2017 15:59
fields for loggedin users signupfields/ossn_com.php
<?php
/**
* Open Source Social Network
*
* @packageOpen Source Social Network
* @author Open Social Website Core Team <info@informatikon.com>
* @copyright 2014 iNFORMATIKON TECHNOLOGIES
* @license General Public Licence http://www.opensource-socialnetwork.org/licence
* @link http://www.opensource-socialnetwork.org/licence
*/