Hi
can any one change article block
http://www.tinyportal.net/index.php/topic,26124.0.html
for usage of Last Upload Block???
thx
Pulled right from the TP functions that Bloc already has. This is assuming you are using at least TP 1.x I think. Put this in a phpbox type of block.
global $txt;
$it=array();
$it=dl_recentitems('1','date','array');
if(sizeof($it)>0){
foreach($it as $item){
echo '
<img src="'.$item['icon'].'" align="right" style="margin-left: 4px; " alt="" />
<a href="'.$item['href'].'"><b>'.$item['name'].'</b></a>
<p class="smalltext">'.$txt['tp-uploadedby'].' <b>'.$item['author'].'</b> <br />( '.$item['date'].')<br />
'.$txt['tp-downloads'].'/'.$txt['tp-itemviews'].': <b>'.$item['downloads'].' / '.$item['views'].'</b></p>';
}
}
thank u IchBinâ,,¢
the code work very good
Sorry to hijack a thread, but is it possible to limit the category from where it takes the latest upload?? For Example, the latest upload from "dl=cat6"
Cheers
Not with the code I gave. The code I posted uses a built in function for grabing the entry. You'd have to modify the actual function in TP to grab a specific category or something. Unless you write a different code snippet.
Bugger. Thanks anyway IchBin
nice code ichbin but is there anyway to make this scroll the items u want to show and stop on mouse over ?
guess there isnt then !! >:(
Is there any reason you couldn't try it? I don't mean to be rude, but google has thousands of pages that can show you how to scroll HTML using the marquee tag, and then how to start/stop something using javascript. Any reason you can't try it out yourself instead getting all impatient on me here?
im not impatient sorry if u thought otherwise i have used google and found a wealth of information thxs