Warning: constant() [function.constant]: Couldn't find constant Gateway used by the module in file /modules/system/admin/preferences/main.php line 298
$modversion['blocks'][3]['file'] = "blocks.php";
$modversion['blocks'][3]['name'] = _MI_TRIBES_LAST;
$modversion['blocks'][3]['description'] = _MI_TRIBES_LAST_DESC;
$modversion['blocks'][3]['show_func'] = "b_yogurt_tribes_show";
$modversion['blocks'][3]['options'] = "5";
$modversion['blocks'][3]['template'] = 'yogurt_block_lasttribes.html';
<{section name=j loop=$tribes}>
<div style="width:80%; text-align: center; page-break-after: always; margin: auto; page-break-before: always;">
<a href="{$xoops_url}>/modules/yogurt/tribes.php?tribe_id=<{$tribes[j].id}>"><img src="<{$xoops_upload_url}>/<{$tribes[j].img}>" alt="<{$tribes[j].title}>" title="<{$tribes[j].title}>" /></a>
</div>
<{/section}>
function b_yogurt_lasttribes_show($options) {
global $xoopsDB, $xoopsModule, $xoopsModuleConfig;
$myts =& MyTextSanitizer::getInstance();
$block = array();
/**
* Filter for fetch votes ishot and isnothot
*/
$criteria = new criteria('tribe_id',0,">");
$criteria->setSort("tribe_id");
$criteria->setOrder("DESC");
$criteria->setLimit($options[0]);
/**
* Creating factories of tribes and votes
*/
//$album_factory = new Xoopsyogurt_imagesHandler($xoopsDB);
$tribes_factory = new Xoopsyogurt_tribesHandler($xoopsDB);
$block = $tribes_factory->getLastTribesForBlock($options[0]);
return $block;
}
Based on this threadhttps://xoops.org/modules/newbb/vi ... hp?topic_id=68315&forum=7 is it possible to create a block eg 22 friend (1 waiting for approval) 23 scraps you joined 2 groups 1 new pm bla bla that will be cool
the selected album/picture does not exist
$down = $downloads[$i]->getDownloadInfo();
Warning: Class 'XoopsTree' is deprecated, check 'XoopsObjectTree' in tree.php in file /class/xoopstree.php line 45
Warning: Class 'XoopsTree' is deprecated, check 'XoopsObjectTree' in tree.php in file /class/xoopstree.php line 45
Notice: Function xoops_getLinkedUnameFromId() is deprecated, use XoopsUserUtility::getUnameFromId() instead in file /include/functions.legacy.php line 44
Warning: sprintf() [function.sprintf]: Too few arguments in file /modules/wfdownloads/viewcat.php line 259
//Get number of downloads the last week
$one_week_ago = time() - 3600*24*7; //@TODO: Change to strtotime (TODAY-1week);
$download_handler = xoops_getmodulehandler('download');
$allowed_cats = $gperm_handler->getItemIds("WFDownCatPerm", $groups, $module_id);
$criteria = new Criteria("published", $one_week_ago, ">=");
$allweekdownloads = $download_handler->getActiveCount($criteria);
//Get number of downloads the last month
$one_month_ago = time() - 3600*24*7; //@TODO: Change to strtotime (TODAY-1month);
$criteria = new Criteria("published", $one_month_ago, ">=");
$allmonthdownloads = $download_handler->getActiveCount($criteria);
$xoopsTpl->assign('allweekdownloads', $allweekdownloads);
$xoopsTpl->assign('allmonthdownloads', $allmonthdownloads);
//Get latest downloads
$criteria = new CriteriaCompo(new Criteria("offline", 0));
if(isset($_GET['newdownloadshowdays'])) {
$days = intval($_GET['newdownloadshowdays']);
$days_limit = array(7, 14, 30);
if(in_array($days, $days_limit)) {
$downloadshowdays = time() - (3600 * 24 * $days);
$criteria->add(new Criteria("published",$downloadshowdays, '>='), 'AND');
}
}
$criteria->setSort("published");
$criteria->setOrder("DESC");
$criteria->setLimit($xoopsModuleConfig['perpage']);
$criteria->setStart(0);
$downloads = $download_handler->getActiveDownloads($criteria);
foreach (array_keys($downloads) as $i)
{
$down = $downloads[$i]->getDownloadInfo();
$xoopsTpl->assign('lang_dltimes', sprintf(_MD_WFD_DLTIMES, $down['hits']));
$xoopsTpl->assign('lang_subdate' , $down['is_updated']);
$xoopsTpl->append('file', $down);
}
$_res &= (bool)$smarty->_unlink($params['auto_base'] . DIRECTORY_SEPARATOR . $_filename, $params['exp_time']);