You are here

Status message

Error:DOMDocument::load(): http:// wrapper is disabled in the server configuration by allow_url_fopen=0 (/home/anthonyd/public_html/sites/all/modules/querypath/QueryPath/QueryPath.php: 2002)

Show Twitters

Fetch and display the public twitter feed.

Display the most recent entries on the Twitter public timeline.

The Code:

qp('<?xml version='1.0'?><ul/>');
$url '';
$tpl '<li>
        <div style='
        <img style='
float:left' src='@img'/>
        <strong>@uname </strong><em>@ts</em><br/>
      foreach (
qp($url'status') as $status) {
$data = array();
$data['@ts'] = substr($status->children('created_at')->text(), 020);
$data['@txt'] = $status->next('text')->text();
$data['@uname'] = htmlentities($status->parent()->find('user>screen_name')->text());
$data['@img'] = $status->next('profile_image_url')->text();
$data strtr($tpl$data);
$out .= $ul->html();


The QueryPath API

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer