Signin Sina Weibo Open Platform, get App Key and App Secret, reference PHP SDK. The main principle is after authority on Sina Weibo, store uid, access_token and other information in local database. Determine the access_token at user next signin. Create…
Custom Pagination in Laravel
Views // paginator.blade.php <?php $presenter = new Illuminate\Pagination\BootstrapPresenter($paginator); $trans = $environment->getTranslator(); if ($paginator->getLastPage() > 1): /* How many pages need to be shown before and after the current page */ $showBeforeAndAfter = 3; /* Current Page */ $currentPage = $paginator->getCurrentPage();…
Set WordPress Category and Articles Diff Style
In this post let's talk about how to set different categories using different categories list style, the article under Different categories use different articles style in WordPress. First we should to know two function of WordPress is_category and in_category, please…
Laravel Ajax Multiple Image Upload and Preview
This is post talk about ajax multiple image upload and preview with Dropzone.js in Laravel 4, and store file info in database. Dropzone.js comes with nice CSS and Javascript that make it a breeze to work with HTML 5 file…