Archive for the ‘How to’ Category

Sep
1

Hide the “Follow me” button

2009

Follow me

If you like to hide the “Follow me” button in the top ptwix box you can call this method on the ptwix instance.

hideFollowMe()

This is the result

Only update

Aug
30

Twitter search: Example queries and available operators

2009

The ptwix search method accept string in this format

“q=bye&rpp=20″

The rpp parameter is the number of result to show.
There are some instructions about search queries (Come directly from twitter search API method page) (more…)

Aug
30

Twitter advanced search with ptwix

2009

From version 1.1 ptwix can show results of a twitter search.
Make search is really simple:

Setting the value PtwiX::$SEARCH at the “timeline type” parameter in the constructor.

$PtwiX=new PtwiX('firs','user','pass','http://example.com/ptwix/','/var/www/example/ptwix/cache/',PtwiX::$SEARCH,'silver-red');

Now you can call the setSearchString method and pass it the string that you want to search. (more…)

Aug
25

Disable curl

2009

For disable the curl request mode you can setting to false the useCurl property in this way

$myptwixInstance->useCurl(false);

Remember that with curl disabled ptwix can’t show  the friend timeline but only user timeline and search result. You also disable curl in as/PtwiX_reader.php file.