You are hereShow Twitters

Show Twitters

Error:DOMDocument::load(): EntityRef: expecting ';' in, line: 120 (/var/www/drupal-6.38/modules/querypath/QueryPath/QueryPath.php: 2002)

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="height: 55px">
      <img style="float:left" width="50" height="50" src="@img"/>
    foreach (
qp($url'status') as $status) {
$data = array();
$data['@ts'] = substr($status->children('created_at')->text(), 020);
$data['@txt'] = filter_xss_admin($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

Shopping cart

There are no products in your shopping cart.

0 Items $0.00

Please Help Us

Login with facebook

Login to facebook