5
Quote:
limecity wrote:
have u seen Myreviews module?
it got link list there..
maybe the developer could help~
Hi all,
I use a function called letters() that I got from the new downloads module catz is working on. Then just call it in the top part of your code. You must create a viewlist.php file with what you want to display and the order you want to display it in. Very easy implementation that add value to your module. (Thanks Catz)
Grotmis
Riaan
CraftsOnlinemyReviews module developer
function letters()
{
$letterchoice = "[ ";
$alphabet = array ("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "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");
$num = count($alphabet) - 1;
$counter = 0;
while (list(, $ltr) = each($alphabet)) {
$letterchoice .= "<a href='viewlist.php?list=$ltr'>$ltr</a>";
if ($counter == round($num / 2))
$letterchoice .= " ]<br>[ ";
elseif ($counter != $num)
$letterchoice .= " | ";
$counter++;
}
$letterchoice .= " ]";
return $letterchoice;
}