1
Joomla! 1.6/1.7/2.5 / Re:Reindirizzamento da un sito ad un altro.
« il: 20 Mag 2013, 22:05:24 »Non mi ero accorta di quel "informato". Femmina si! E' stato un Lapsus Froidiano!
occhio che a forza di sbagliare ti cresce il pistulino
Questa sezione ti permette di visualizzare tutti i post inviati da questo utente. N.B: puoi vedere solo i post relativi alle aree dove hai l'accesso.
Non mi ero accorta di quel "informato". Femmina si! E' stato un Lapsus Froidiano!
$nostro_profilo=json_decode(file_get_contents($url),TRUE);
$url = 'http://api.twitter.com/1/statuses/user_timeline.json?screen_name='.$username.'&count='.$count;
$username il vostro username twitter e count il numero di tweets da mostrare.Array
(
[0] => Array
(
[created_at] => Fri Dec 09 12:59:56 +0000 2011
[id] =>
[id_str] =>
[text] =>
[source] =>
[truncated] =>
[in_reply_to_status_id] =>
[in_reply_to_status_id_str] =>
[in_reply_to_user_id] =>
[in_reply_to_user_id_str] =>
[in_reply_to_screen_name] =>
[user] => Array
(
[id] =>
[id_str] =>
[name] => Spazioalchimia
[screen_name] => Spazioalchimia
[location] =>
[url] => http://www.spazioalchimia.it
[description] =>
[protected] =>
[followers_count] => 2
[friends_count] => 14
[listed_count] => 0
[created_at] => Fri Jun 10 12:32:42 +0000 2011
[favourites_count] => 0
[utc_offset] => 3600
[time_zone] => Rome
[geo_enabled] => 1
[verified] =>
[statuses_count] => 9
[lang] => it
[contributors_enabled] =>
[is_translator] =>
[profile_background_color] => C0DEED
[profile_background_image_url] => http://a0.twimg.com/images/themes/theme1/cc.png
[profile_background_image_url_https] => https://si0.twimg.com/images/themes/theme1/cc.png
[profile_background_tile] =>
[profile_image_url] => http://a0.twimg.com/profile_images/1670032417/ccc.png
[profile_image_url_https] => https://si0.twimg.com/profile_images/1670032417/ccl.png
[profile_link_color] => 0084B4
[profile_sidebar_border_color] => C0DEED
[profile_sidebar_fill_color] => DDEEF6
[profile_text_color] => 333333
[profile_use_background_image] => 1
[default_profile] => 1
[default_profile_image] =>
[following] =>
[follow_request_sent] =>
[notifications] =>
)
[geo] =>
[coordinates] =>
[place] =>
[contributors] =>
[retweet_count] => 0
[favorite_count] => 0
[favorited] =>
[retweeted] =>
[lang] => it
)
)


public static function getList(&$params){
//get database
$db = JFactory::getDbo();
$query = $db->getQuery(true);
$query->select(
$query->year($db->quoteName('a.created')).' AS created_year,'.
$query->month($db->quoteName('a.created')).' AS created_month,
a.title, a.id, a.created, a.catid, c.title AS category');
$query->from('#__content AS a');
$query->join('LEFT', '#__categories AS c ON c.id = a.catid');
$query->where('a.state = 2 AND a.checked_out = 0');
$app = JFactory::getApplication();
if ($app->getLanguageFilter()){
$query->where('language in (' . $db->quote(JFactory::getLanguage()->getTag()) . ',' . $db->quote('*') . ')');
}
$query->order('a.created');
$db->setQuery($query);
$rows = (array) $db->loadObjectList();
$lists = array();
if($rows){
foreach ($rows as $row){
$lists[$row->created_year][JHTML::_('date', $row->created, 'F')][] = array(
'cat' => $row->category,
'link' => JRoute::_(ContentHelperRoute::getArticleRoute($row->id, $row->catid)),
'text' => $row->title
);
}
}
return $lists;
}
|
|