1
gerasimos
PHP Expert?
  • 2005/6/10 15:42

  • gerasimos

  • Not too shy to talk

  • Posts: 114

  • Since: 2005/4/28


Hello i need some php expert help. I am using the estadisticas module for stats. Everything running BUT i want to add just after the displayed number (e.g. 12 members) an image that i have uploaded to [xoopsurl]/uploads/imgstats.
Below i have the whole code for further help!in bold [] is the place that i need the image to displayed

Thanks in advanced
** this code is inside the diverses_stats.php which is in folder Blocks **

function b_diverssats_show() {
global $xoopsDB, $xoopsConfig;
$block = array();
$block['title'] = "Estatisticas";
$result = $xoopsDB->query("select uid, uname, level from ".$xoopsDB->prefix("users")." where level=1 order by uid DESC",1);
list($uid, $lastuser) = $xoopsDB->fetchRow($result);

$result = $xoopsDB->query("SELECT COUNT(*) from ".$xoopsDB->prefix("users")." where level>=0 order by uid DESC",1);
list($numbers) = $xoopsDB->fetchRow($result);

$result = $xoopsDB->query("SELECT COUNT(*) from ".$xoopsDB->prefix("users")." where level=0 order by uid DESC",1);
list($inactifs) = $xoopsDB->fetchRow($result);

$result = $xoopsDB->query("SELECT COUNT(*) from ".$xoopsDB->prefix("users")." where level=5 order by uid DESC",1);
list($admins) = $xoopsDB->fetchRow($result);

$result = $xoopsDB->query("SELECT count(*) from ".$xoopsDB->prefix("mydownloads_downloads")."");
list($numrows2) = $xoopsDB->fetchRow($result);

$result = $xoopsDB->query("SELECT count(*) from ".$xoopsDB->prefix("bb_forums")."");
list($bbforum) = $xoopsDB->fetchRow($result);

$result = $xoopsDB->query("SELECT count(*) from ".$xoopsDB->prefix("mylinks_links")."");
list($links) = $xoopsDB->fetchRow($result);

$result = $xoopsDB->query("SELECT sum(comments) from ".$xoopsDB->prefix("stories")."");
list($comment) = $xoopsDB->fetchRow($result);

$result = $xoopsDB->query("SELECT count(*) from ".$xoopsDB->prefix("stories")."");
list($news) = $xoopsDB->fetchRow($result);

$result = $xoopsDB->query("select sum(hits) from ".$xoopsDB->prefix("mylinks_links")."");
list($hitsliens) = $xoopsDB->fetchRow($result);

$result = $xoopsDB->query("SELECT count(*) from ".$xoopsDB->prefix("bb_posts")."");
list($bbpost) = $xoopsDB->fetchRow($result);

$result = $xoopsDB->query("SELECT count(*) from ".$xoopsDB->prefix("bb_topics")."");
list($bbtopics) = $xoopsDB->fetchRow($result);

$result = $xoopsDB->query("select sum(hits) from ".$xoopsDB->prefix("mydownloads_downloads")."");
list($hits) = $xoopsDB->fetchRow($result);

$result = $xoopsDB->query("select sum(topic_views) from ".$xoopsDB->prefix("bb_topics")."");
list($postviews) = $xoopsDB->fetchRow($result);

$result = $xoopsDB->query("select sum(counter) from ".$xoopsDB->prefix("stories")."");
list($storiesviews) = $xoopsDB->fetchRow($result);



$block['content'] = "<left><a href=\"".$xoopsConfig['xoops_url']."/modules/xoopsmembers/index.php\"><b>$numbers </a> [the place for image show]Members</b><br /> <br />
<a href=\"".$xoopsConfig['xoops_url']."/modules/news/index.php\"><b>$news</a> Δημοσιευμενα Νεα</b><br>
(<b>$storiesviews</b> Αναγνωσεις - <b>$comment</b> Σχολια)<br><br><a href=\"".$xoopsConfig['xoops_url']."/modules/mylinks/index.php\"><b>$links</a> Συνδεσμοι</b>
(<b>$hitsliens</b> Επισκεψεις)<br><br>
<a href=\"".$xoopsConfig['xoops_url']."/modules/newbb/index.php\"><b>$bbforum </a> Κλαδοι Συζητησης</b><br>
<b>$bbtopics</b> Θεματα,<br>
<b>$bbpost</b> Καταχωρησεις,<br>
<b>$postviews</b> Αναγνωσεις<br>
</left>";
return $block;
}

?>

Login

Who's Online

169 user(s) are online (94 user(s) are browsing Support Forums)


Members: 0


Guests: 169


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits