Friday, April 27, 2012

Membatasi Jumlah Tweet yang Muncul di Home atau Timeline

edit file twitter.php di folder common.
cari kode dibawah ini

PHP Code:
function twitter_home_page() {
        
user_ensure_authenticated();
        
//$request = API_URL.'statuses/home_timeline.json?count=20&include_rts=true&page='.intval($_GET['page']);
        
$request API_URL.'statuses/home_timeline.json?count=20&include_rts=true';  
Ganti angka 20 itu sama 5 atau 6 (sesuai tweet yang mau ditampilin di home).

0 comments:

Post a Comment

 

Copyright © Zaki's Blog.

Managed by FHMZK