1
yomhatiqva
Smartmedia ad counter hits
  • 2006/11/22 14:17

  • yomhatiqva

  • Just popping in

  • Posts: 10

  • Since: 2006/11/20


Hi

I would like to put a hit counter classification in smartmedia block instead of last upload... Anyone know how can i do this ?

Here is the smartmedia_clips_recent.html block code:

Quote:


    <{foreach item=clip from=$block.clips}>
  • <{$clip.itemlink}>

  • <{/foreach}>





So the thing might be simple: to show the number of hits near the item link and sort by most rated (i already modify the clips_recent.php file to sort by most rated hits) but i don't see how to integrate in the php code:

Quote:

function b_smartmedia_clips_recent_show($options)
{
// This must contain the name of the folder in which reside SmartClient
if( !defined("SMARTMEDIA_DIRNAME") ){
define("SMARTMEDIA_DIRNAME", 'smartmedia');
}
include_once(XOOPS_ROOT_PATH."/modules/" . SMARTMEDIA_DIRNAME . "/include/common.php");

//$max_clips = $options[0];
$title_length = $options[0];
$max_clips = $options[1];

$clipsArray =& $smartmedia_clip_handler->getClipsFromAdmin(0, $max_clips, 'clips.counter', 'DESC', 'all');

If ($clipsArray) {
foreach ($clipsArray as $clipArray) {
$clip = array();
$clip['itemlink'] = '' . $clipArray['title']. '';
$block['clips'][] = $clip;
unset ($clip);
}
}

$block['smartmedia_url'] = SMARTMEDIA_URL;

return $block;
}


Thanks a lot

...FIxED

Login

Who's Online

451 user(s) are online (327 user(s) are browsing Support Forums)


Members: 0


Guests: 451


more...

Donat-O-Meter

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

Latest GitHub Commits