try another color:
try another fontsize: 60% 70% 80% 90%
dueyesterday.net
Documentation for the masses

Updated User Directory Module for Download

I took a look back at the User Directory module and noticed that some of the ways I did a few things were outside of Drupal's coding standards. I went back and corrected these issues. There is no new functionality, but the coding is proper and the entries within the tree structure are in a proper Drupal table.

AttachmentSize
user_directory_current.zip2.23 KB
Your rating: None Average: 2.8 (4 votes)

Comments

Just what I was looking for!

3

Just what I was looking for! What version of Drupal is this intended for, though? I'm getting an error: warning: Invalid argument supplied for foreach() in /.../drupal/includes/theme.inc on line 1335.

Drupal Versions

I have been using it for Drupal 6, but I think because I am using core functions that it should not change much between 6 and 7. I'll take a look at the error as it has something to do with the way I am populating the tree. It should work regardless though (the message just shows up as a warning). I will post updates as soon as I can.

Thanks, bsdixon!  I could be

Thanks, bsdixon!  I could be doing something wrong too.This particular Drupal 6 site has Content Profile module installed so I think this has something to  do with it. Cheers, S

Issue Solved

I found the issue. Take a look at the module code and modify this line:

 for ($i = 0; $i < count($results); $i++) {

Change it to this:
 
 for ($i = 0; $i <= count($results); $i++) {
 
There was a boolean false getting tacked on to the end of the output. The theme let it pass on through to the foreach that had no clue how to handle it. I will make the changes in the module code and re-upload.
 

 


Warning: INSERT command denied to user 'dbo265338363'@'74.208.16.232' for table 'watchdog' query: INSERT INTO watchdog (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '%message in %file on line %line.', 'a:4:{s:6:\"%error\";s:12:\"user warning\";s:8:\"%message\";s:390:\"INSERT command denied to user &#039;dbo265338363&#039;@&#039;74.208.16.232&#039; for table &#039;accesslog&#039;\nquery: INSERT INTO accesslog (title, path, url, hostname, uid, sid, timer, timestamp) values(&#039;Updated User Directory Module for Download&#039;, &#039;node/34&#039;, &#039;&#039;, &#039;38.107.179.244&#039;, 0, &#039;dafc8f2b2cb98a0b2580df0eb28af674&#039;, 767, 1337463944)\";s:5:\"%file\";s:75:\"/homepages/30/d264039497/htdocs/drupal/modules/statistics/statistics.module\";s:5:\"%line\&qu in /homepages/30/d264039497/htdocs/drupal/includes/database.mysql.inc on line 128