no no che blocco note...
uso dreamweaver...
comunque stiamo andando fuori seminato.... nel senso...che le icone dei browser vanno bene.... dovrei aggiungere solo dopo l'immagine il testo...quindi pensavo di inserirlo nel file CSS , possibile ??
dovrebbe diventare così :
[IMMAGINE.png (GIA PRESENTE)]+ visualizzazioni con Chrome
Ecco qui un esempio , come diventerebbe questo codice se dovessi aggiungere dopo l'immagine chrome.png del testo scritto ?? .
codice:
.ztvc-icon-chrome {
height: 15px;
background: url(../agent/chrome.png) no-repeat top left;
text-indent: 20px;
}
inoltre nel medesimo modulo ho una situazione contrario ovvero la voce "Visitatori sul sito:2 " , a parte i famosi "duepunti" da levare, nel medesimo codice dovrei aggiungere a sinistra una piccola immagine gif , in questo caso diventerebbe :
[IMMAGINE.png]+Visitatori sul sito 2
In caso non si potesse , sotto invece c'è la struttura del file php del modulo....
la struttura del file php è questa :
codice:
function chat_count(o) {
document.getElementById('uo_count').innerHTML = o.uo_count;
}
</script>
<script type='text/javascript' src='http://b.freeforumzone.leonardo.it/service/count.ashx?c=189602&jsoncallback=chat_count'></script>
<hr class="ztvc-space">
<?php
/**
* @package ZT Counter module
* @author Hiepvu
* @copyright(C) 2013 - ZooTemplate.com
* @license PHP files are GNU/GPL
**/
// no direct access
defined('_JEXEC') or die;
defined('DS') ? null : define('DS', DIRECTORY_SEPARATOR);
// Require the base helper class only once
require_once dirname(__FILE__) . DS . 'helper.php';
$enabled = JPluginHelper::isEnabled('system', 'zt_visitor_counter');
if (!$enabled) {
return JError::raiseWarning(0, JText::_("MOD_ZT_VISITOR_COUNTER_ERROR_PLUGIN"));
}
$moduleclass_sfx = $params->get('moduleclass_sfx', '');
$content = '';
$totals = array();
$show = array('today' => $params->get('today'), 'yesterday' => $params->get('yesterday'), 'thisWeek' => $params->get('thisWeek', 'This Week'), 'lastWeek' => $params->get('lastWeek', 'Last Week'), 'thisMonth' => $params->get('thisMonth', 'This Month'), 'lastMonth' => $params->get('lastMonth', 'Last Month'), 'all' => $params->get('all'), 'foreCast' => $params->get('foreCast', 'Forecast Today'));
$widths = $params->get('width');
$showDigit = $params->get("showDigit", 1) ? true : false;
$minDigits = $params->get('minDigits', 8);
$showIcons = $params->get('showIcons', 1) ? true : false;
$showTitles = $params->get('showTitles', 1) ? true : false;
$showTotals = $params->get('showTotals', 1) ? true : false;
$firstDay = $params->get('firstDay', 0);
$digit_style = $params->get('digit_style', 'default');
$module_style = $params->get('module_style', 'default');
// for count online
$showOnline = $params->get('showOnline', 1) ? true : false;
$duration = $params->get('duration', 15);
$showGuestOnline = $params->get('showGuestOnline', 1) ? true : false;
$showMemberOnline = $params->get('showMemberOnline', 1) ? true : false;
$showAllOnline = $params->get('showAllOnline', 1) ? true : false;
$showAgent = $params->get('showAgent', 1) ? true : false;
$showForeCast = $params->get('foreCast', 1) ? true : false;
$ip = ($params->get('showIp') != '0') ? $params->get('showIp') . $_SERVER['REMOTE_ADDR'] : '';
$help = new modZTCounterHelper($params);
$cache_time = (int)$params->get('cache_time', 900);
$cache_enabled = $params->get('cache', 0) ? true : false;
$cache = & JFactory::getCache('mod_zt_visitor_counter');
$cache->setCaching($cache_enabled);
$cache->setLifeTime($cache_time);
if ($show['today']) {
$totals["today"] = $help->getTodayVisitors();
}
if ($show['yesterday']) {
if ($cache_enabled) {
$totals["yesterday"] = $cache->call(array($help, 'getYesterdayVisitors'));
} else {
$totals["yesterday"] = $help->getYesterdayVisitors();
}
}
if ($show['thisWeek']) {
if ($cache_enabled) {
$totals["thisWeek"] = $cache->call(array($help, 'getWeekVisitors'));
} else {
$totals["thisWeek"] = $help->getWeekVisitors();
}
}
if ($show['lastWeek']) {
if ($cache_enabled) {
$totals["lastWeek"] = $cache->call(array($help, 'getLastWeekVisitors'));
} else {
$totals["lastWeek"] = $help->getLastWeekVisitors();
}
}
if ($show['thisMonth']) {
if ($cache_enabled) {
$totals["thisMonth"] = $cache->call(array($help, 'getMonthVisitors'));
} else {
$totals["thisMonth"] = $help->getMonthVisitors();
}
}
if ($show['lastMonth']) {
if ($cache_enabled) {
$totals["lastMonth"] = $cache->call(array($help, 'getLastMonthVisitors'));
} else {
$totals["lastMonth"] = $help->getLastMonthVisitors();
}
}
if ($show['all']) {
if ($cache_enabled) {
$totals["all"] = $cache->call(array($help, 'getTotalVisitors'));
} else {
$totals["all"] = $help->getTotalVisitors();
}
}
if ($showDigit) {
$digits = modZTCounterHelper::getDigits($totals["all"], $minDigits);
$digits = modZTCounterHelper::renderDigitsCounter($digits);
}
// count visitors by agent
if ($showAgent) {
if ($cache_enabled) {
$userAgents = $cache->call(array($help, 'renderIconsUserAgents'));
} else {
$userAgents = $help->renderIconsUserAgents();
}
}
// count online
$count = $help->getOnline($duration);
// add css
$document = JFactory::getDocument();
$document->addStyleSheet(JURI::base() . 'modules/mod_zt_visitor_counter/assets/css/zt_visitor_counter.css');
$document->addStyleSheet(JURI::base() . 'modules/mod_zt_visitor_counter/assets/digit/' . $digit_style . '.css');
$document->addStyleSheet(JURI::base() . 'modules/mod_zt_visitor_counter/assets/style/' . $module_style . '.css');
$document->addCustomTag("
<style>
.ztvc-visitor-counter {
width: " . $widths[0] . $widths[1] . ";
}
</style>
");
require JModuleHelper::getLayoutPath('mod_zt_visitor_counter', '');