I found the following poetry which can be edited to share content within ossn platform

Abayomi Oladipupo Posted in Technical Support 9 years ago

Skip to content

All gists
GitHub

@nazieb Ainun Nazieb nazieb

5 All gists
1 Forked
4 Starred

1 file
0 forks
0 comments
0 stars

@nazieb nazieb / gist:47ee2e34fa2591a00059
Last active 8 months ago — forked from jonathanmoore/gist:2640302
Share Counts

I have always struggled with getting all the various share buttons from Facebook, Twitter, Google Plus, Pinterest, etc to align correctly and to not look like a tacky explosion of buttons. Seeing a number of sites rolling their own share buttons with counts, for example The Next Web I decided to look into the various APIs on how to simply return the share count.

If you want to roll up all of these into a single jQuery plugin check out Sharrre

Many of these API calls and methods are undocumented, so anticipate that they will change in the future. Also, if you are planning on rolling these out across a site I would recommend creating a simple endpoint that periodically caches results from all of the APIs so that you are not overloading the services will requests.

Twitter

1 file
0 forks
0 comments
0 stars

@nazieb nazieb / MYLoader.php
Created 2 years ago
Custom loader library for CodeIgniter to autoload database groups other than $default
group
<?php
class MYLoader extends CILoader {
public function database($params = '', $return = FALSE, $activerecord = NULL)
{
parent::database($params, $return, $active
record);
if ( ! defined('ENVIRONMENT') OR ! fileexists($filepath = APPPATH.'config/'.ENVIRONMENT.'/database.php'))
{
if ( ! fileexists($filepath = APPPATH.'config/database.php'))

5 files
0 forks
0 comments
0 stars

@nazieb nazieb / FacebookFacade.php
Last active 2 years ago
Facebook Facade in Laravel 4. Using Facade & Service Provider you can create a global "FB" class which you can call statically in Controllers / Routes / Views. For the example: <?php echo FB::getLoginUrl();
<?php namespace Facebook;
// app/libs/facebook/FacebookFacade.php
use IlluminateSupportFacadesFacade;
class FacebookFacade extends Facade {
protected static function getFacadeAccessor() { return 'facebook'; }
}

1 file
1 fork
0 comments
0 stars

@nazieb nazieb / basemodel.php
Last active a year ago
Base
Model for CodeIgniter. The idea is taken from Laravel's Eloquent ORM
<?php
/**
* Base Model to provide ORM-like CRUD operation wrapper
* Version: 1.1
*/
class Base_Model extends CI_Model {
protected $table = "";
protected $primary = "id";
protected $per_page = 20;
protected $order = "";

1 file
0 forks
0 comments
0 stars

@nazieb nazieb / Laravel-Global-FIlter-Condition-for-Eloquent.php
Last active 2 years ago
This code below is the example how to apply a global filter for Eloquent Models in Laravel (tested with LV 3.2.14). This will be useful if you have data that is stored in one table but has some classification defined by a column (in this example the column name is 'type') and you want to treat them differently in different models.
<?php
class Parents extends Eloquent {

const TYPE_A        = 1;
const TYPE_B        = 2;

static $type = null;

function __construct($type = null)
{
Replies
ng Abayomi Oladipupo Replied 9 years ago

The url of the code is found at the following link

https://gist.github.com/nazieb

The link explain in details by details, can someone check this and give a light to the coding on how to make use of it on ossn

ng Abayomi Oladipupo Replied 9 years ago

Someone with a high technology in this community can edit this for the use of ossn components or theme or api