bestbuildpc I might as well work here


Joined: Nov 16, 2009 Posts: 100
|
Posted: Tue Apr 17, 2012 7:07 am Post subject: |
|
|
 Long time ago I had the same idea to include tags to my download module. I took a look at the new download module from Ravennuke and here we go.
1.Open your FTP
2.Open folders modules/Downloads/public/
3.Open index.php
Search for
Code: pagenums($cid, $query, $orderbyURL, $op, $totalselected, $dl_config['perpage'], $max);
}
CloseTable();
|
Add these codes under CloseTable() Like this.
Code:
OpenTable();
//tags cloud
function otoTag($tag,$link,$en_kucuk=10,$en_buyuk=18) {
//$renk='#'.dechex(rand(1,16)).dechex(rand(16,3)).dechex(rand(3,16)).dechex(rand(1,1)).dechex(rand(3,1)).dechex(rand(1,2));
$renk='#'.dechex(rand(1,16)).dechex(rand(1,16)).dechex(rand(0,16)).dechex(rand(0,16)).dechex(rand(0,16)).dechex(rand(0,16));
$boy=rand($en_kucuk,$en_buyuk);
echo '<a href="'.$link.'"
style="font-size: ' . $boy . 'px;color:'.$renk.'"
tag="' . $tag . '">' . $tag . '</a> ';
}
$sorgu=$db->sql_query("SELECT lid,title FROM ".$prefix."_downloads ORDER BY rand() limit 50");
while ($sonuc=$db->sql_fetchrow($sorgu))
{
echo otoTag($sonuc[title],'download-file-.html'.$sonuc[lid]);
}
//tags cloud
CloseTable();
|
It should look like this
Code: // END LISTING
pagenums($cid, $query, $orderbyURL, $op, $totalselected, $dl_config['perpage'], $max);
}
CloseTable();
OpenTable();
//tags cloud
function otoTag($tag,$link,$en_kucuk=10,$en_buyuk=18) {
//$renk='#'.dechex(rand(1,16)).dechex(rand(16,3)).dechex(rand(3,16)).dechex(rand(1,1)).dechex(rand(3,1)).dechex(rand(1,2));
$renk='#'.dechex(rand(1,16)).dechex(rand(1,16)).dechex(rand(0,16)).dechex(rand(0,16)).dechex(rand(0,16)).dechex(rand(0,16));
$boy=rand($en_kucuk,$en_buyuk);
echo '<a href="'.$link.'"
style="font-size: ' . $boy . 'px;color:'.$renk.'"
tag="' . $tag . '">' . $tag . '</a> ';
}
$sorgu=$db->sql_query("SELECT lid,title FROM ".$prefix."_downloads ORDER BY rand() limit 50");
while ($sonuc=$db->sql_fetchrow($sorgu))
{
echo otoTag($sonuc[title],'download-file-.html'.$sonuc[lid]);
}
//tags cloud
CloseTable();
|
Let me know if you have any issue.  |
|