I am building a site for my wife and her friends to chat on
anyhow she has decided she would like member lists to be displayed in that array style of images favoured by community sites so before I make this happen in my cack handed way would I be right in asuming that the code to do this is in here-
[code:1]<?php
$i = 1;
foreach($users as $user) {
$evenodd = $i % 2;
if ($evenodd == 0) {
$class = "sectiontableentry1";
} else {
$class = "sectiontableentry2";
}
//print $user->name;
if($ueConfig==1) {
$onclick = "onclick=\"javascript:window.location='".sefRelToAbs("index.php?option=com_comprofiler&task=userProfile&user=".$user->id)."'\"";
$style="style=\"cursor:hand;cursor:«»pointer;\"";
}
print "\t<tr class=\"$class\" ".$style." ".$onclick.">\n";
//print $lfields;
$str = null;
eval("\$str = \"$lfields\";"«»);
echo $str. "\n";
print "\t</tr>\n";
$i++;
}
?>
[/code:1]
Which makes sense to me- if it is the case then I suppose I should be concentrating on [code:1]print "\t</tr>\n";[/code:1]
and making this and the opening TR conditional maybe linked to a count- there seems to be an odd and even thing already going on so that could be useful for 2 columns but maybe I could modify the whole even odd bit since we dont really need the shading done that way to count fours- since my php is ropey I will look at the books before doing this but the pseudocode would run along the lines of testing for a count of say 3 then doing the /tr tr thing.
The snippets I am looking at are in comprofiler.html section
/******************************
List Functions
******************************/
Someone please tell me- am I barking up the right tree with this one- I hate hacking at the codes of others especially from an upgrade perspective but sometimes a man has to do what a man has to do to please she who must be obeyed.
If I am in the right area with this I can move onto the joomlaboard hack she requires because she doesn't like that one bit. Since I ve only moved to joomla a few days ago from nuke/phpbb built sites this is hitting the floor running.
I ve got three or four tasks to complete-
rearranging the forum output and placing an image next to each forum to represent the topic of that forum, flags next to country names in profile (may well prove to be the easiest but we ll see)
and the displaying lists one, I had a feeling the lists one would be the toughest but I have a feeling I m onto something already. Just wanted to gauge the views of others on this.
Have a nice day,
herman