1
sikey
Random Mydownloads block needed
  • 2004/10/5 7:54

  • sikey

  • Not too shy to talk

  • Posts: 151

  • Since: 2003/4/29


Anyone up to it?... name your price :)

2
sikey
Re:Random Mydownloads block needed
  • 2004/10/11 7:09

  • sikey

  • Not too shy to talk

  • Posts: 151

  • Since: 2003/4/29


no one able to help me?
you'ld be a huge help

3
phppp
Re:Random Mydownloads block needed
  • 2004/10/11 13:41

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


check wfsection 2.07, there is a random block
You can make your own mydownloads block following that one

4
sikey
Re:Random Mydownloads block needed
  • 2004/10/12 7:44

  • sikey

  • Not too shy to talk

  • Posts: 151

  • Since: 2003/4/29


i have been testing it on the website, but i don't find a random block?...
anyways, i have posted a message on the board overthere... so let's see :)

thx!

5
sikey
Re:Random Mydownloads block needed
  • 2004/10/12 19:43

  • sikey

  • Not too shy to talk

  • Posts: 151

  • Since: 2003/4/29


i just found the random part... but where do i find the block that this uses?... damn i wish i knew more about php so i could make this myself

6
sikey
Re:Random Mydownloads block needed
  • 2004/10/14 21:56

  • sikey

  • Not too shy to talk

  • Posts: 151

  • Since: 2003/4/29


i'm trying to change the lykos randompartners block to do this... but it just isn't working... i don't know php and just tried to change everything as i thought was needed...

Here is what i have ->

function b_lykos_blocks_random_mydownloads_show(){
global $xoopsDB;
$myts =& MyTextSanitizer::getInstance();
$block = array();
$block['title'] = _MI_LYKOS_BLOCKS_B1_TITLE;
$result = $xoopsDB->query("SELECT lid, cid, title FROM ".$xoopsDB->prefix("mydownloads_downloads")." ORDER BY RAND()");

$block['content'] = "<div align=\"center\">";
while (list($lid,$title) = $xoopsDB->fetchRow($result)) {
$block['content'] .= "<a href='".XOOPS_URL."/modules/mydownloads/singlefile.php?lid=$num' target='_blank'>";
$block['content'] .= "$title">";
$block['content'] .= "</a><br />\n";
if ($options[0] == 1) {
$block['content'] .= "<br />\n";
}
break;
}
return $block;
}

?>


If anyone is able to help me... PLEEEEAAASE
thanks

7
sikey
Re:Random Mydownloads block needed
  • 2004/10/18 23:11

  • sikey

  • Not too shy to talk

  • Posts: 151

  • Since: 2003/4/29


anyone?

Login

Who's Online

68 user(s) are online (43 user(s) are browsing Support Forums)


Members: 0


Guests: 68


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