What I want to do is change the layout of the alphabet in wf-downloads. Currently shows 36 characters in 2 rows, 19 in 1st row and 17 in 2nd row. I want it to display 4 rows with 9 characters in each.
The changes must be made to this code from "/include/functions.php"
function wfd_letters()
{
global $xoopsModule;
$letterchoice = "";
$letterchoice .= "[ ";
$alphabet = array ("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9");
$num = count($alphabet) - 1;
$counter = 0;
while (list(, $ltr) = each($alphabet))
{
$letterchoice .= "<a href='" . XOOPS_URL . "/modules/wfdownloads/viewcat.php?list=$ltr'>$ltr</a>";
if ($counter == round($num / 2))
$letterchoice .= " ]<br />[ ";
elseif ($counter != $num)
$letterchoice .= " | ";
$counter++;
}
$letterchoice .= " ]";
return $letterchoice;
}
As you can see I already moved the numbers after the letters so it would display nicely in 4 rows.
I have played with this code for 2 hours and it will not work. It is not the same as the "<{if $category.count is div by 2}>" sort of idea. Now am asking for assistance.
Thank you for your time.