All Moodle user pictures on one page

All Moodle user pictures on one page

- Martin Dougiamas の投稿
返信数: 18
画像 Core developers 画像 Documentation writers 画像 Moodle HQ 画像 Particularly helpful Moodlers 画像 Plugin developers 画像 Testers
I was curious what a roomful of Moodle users might look like, so a few lines of code later: http://moodle.org/userpix 笑顔
Martin Dougiamas への返信

Re: All Moodle user pictures on one page

- Gunther Dippe の投稿
Yep!
It's definitely more than a screenful.
Is this what's called to build a virtual community?
笑顔
Gunther Dippe への返信

Re: All Moodle user pictures on one page

- Martin Dougiamas の投稿
画像 Core developers 画像 Documentation writers 画像 Moodle HQ 画像 Particularly helpful Moodlers 画像 Plugin developers 画像 Testers
I'm not sure a page of pictures qualifies as a virtual community, no. 笑顔 But hopefully it's what this site is becoming!

Still it's quite fascinating to see the pictures of you all on one page ... you look like good people to hang out with!

Actually, I'm going to be in Hawaii in June, at the ED-MEDIA 2003 conference, presenting a paper about Moodle. Is anyone else from here going to be there?
Martin Dougiamas への返信

Re: All Moodle user pictures on one page

- Sean Keogh の投稿
Hah, I *wish*!

At this place it would be difficult to get the budget to pay for a half-day trip to London.

Hope you have a good time anyway. Writing still going well?

By the way, moodle is going from strength to strength here. Our second course went live about two weeks ago and the students are piling into it, and I have two more subject teams interested in the potential of the system now.

Sean K
Martin Dougiamas への返信

Re: All Moodle user pictures on one page

- Loren Winfrey の投稿
This is cool!

I was wondering if it could be done.

Now as I was looking at it I thought it would be nice to have thier names apear below the photo. So I added a table with two rows to display this. It worked except the table wrap to the next line. I thought they would line up to the right until the row was full.

Am I nutz?
Martin Dougiamas への返信

Re: All Moodle user pictures on one page

- John Gone の投稿
Any chance that someone could provide some simple instructions on how to do this. I'm probably not the only one who could use some help. I've gotten as far as I can but I get this message:
Warning: Cannot send session cache limiter - headers already sent (output started at d:\inetpub\sites\www.mysite.com\web\moodle\userpics\index.php:9) in d:\inetpub\sites\www.mysite.com\web\moodle\lib\setup.php on line 123
The page will display the placeholders and the image name but no image. Any ideas? Thanks, John
John Gone への返信

Re: All Moodle user pictures on one page

- Loren Winfrey の投稿

Sure John,

Here is the code. In this code replace the instances of designatecc.com/users with your domain name and folder. In lines 14 and 15 of this page..

If you need help send me your file and domain info.

John Gone への返信

Re: All Moodle user pictures on one page

- Martin Dougiamas の投稿
画像 Core developers 画像 Documentation writers 画像 Moodle HQ 画像 Particularly helpful Moodlers 画像 Plugin developers 画像 Testers
This code should be a little more generic (no changes needed).
Martin Dougiamas への返信

Re: All Moodle user pictures on one page

- Loren Winfrey の投稿
I needed to change the domain info to get it to work on my site. Is this correct?
Loren Winfrey への返信

Re: All Moodle user pictures on one page

- Martin Dougiamas の投稿
画像 Core developers 画像 Documentation writers 画像 Moodle HQ 画像 Particularly helpful Moodlers 画像 Plugin developers 画像 Testers
Yes, that's right, but there's no need to do that with the new version I just posted.
Martin Dougiamas への返信

Re: All Moodle user pictures on one page

- John Gone の投稿
Thanks to both of you for your help. I want this feature on my Moodle sites.
So, I'll tell you what I've done so far and maybe someone can tell me where I'm going wrong.
  • Pasted unaltered generic code into an HTML page.
  • FTP to site.
  • Called that page in Mozilla
  • Same errors as previous post
  • Began to feel frustrated笑顔
Warning: Cannot send session cache limiter - headers already sent (output started at d:\inetpub\sites\www.mysite.com\web\moodle\userpics\index.php:9) in d:\inetpub\sites\www.mysite.com\web\moodle\lib\setup.php on line 123 The page will display the placeholders and the image name but no image.
Two issues here, really. The header problem and the images are not placed in their holders. Back to the books for me I think. I don't know enough about this to fix it.
Thanks again, John
John Gone への返信

Re: All Moodle user pictures on one page

- Martin Dougiamas の投稿
画像 Core developers 画像 Documentation writers 画像 Moodle HQ 画像 Particularly helpful Moodlers 画像 Plugin developers 画像 Testers
I think the first step might be the problem. When you see the script in the browser, choose File->Save As... and save it directly as a file called index.php

For the format of the file, choose "Text file" (not HTML or Web page, which will add unhelpful cruft to the page). Then FTP it up to your site and try again.
Martin Dougiamas への返信

Re: All Moodle user pictures on one page

- John Gone の投稿
Thanks Martin,
You know a lot about this stuff, eh?笑顔
So now, no more error messages but no images yet, placeholders and names only. Clicking the placeholder takes you to the profile. Everything is fine except the missing images. It's a very simple script and it works but I can't get it to place the image. I'm running 4 Moodle sites in one MySQL database. Could this be the problem? Maybe it doesn't know which f1.jpg to use, I dunno. I've tried altering code to reflect individual Moodle site but...
i.e.] ../moodle/school/userpics/
Thanks again Martin,
John
P.S. 1} This feature reminds me of a yearbook. Even uninspired students feel a kind of ownership of their school when they see their picture in the yearbook. The sense of being a part of a community can be encouraged even if you didn't particularly feel like being there. That sense of community can't hurt when you're trying to get a student to participate in their own education.
P.S. 2} I showed my wife the Moodle.org users page and she thought it was pretty cool. Suddenly she had a sense of how much was happening in Moodle when she saw the pictures representing all those participants. She asked who they were and what they did and where they're from. That reaction was very cool. Now, maybe, she will listen, maybe, when I talk about Moodle. See, instant sense of ownership and identification with a larger community.
John Gone への返信

Re: All Moodle user pictures on one page

- Martin Dougiamas の投稿
画像 Core developers 画像 Documentation writers 画像 Moodle HQ 画像 Particularly helpful Moodlers 画像 Plugin developers 画像 Testers
Aha - slasharguments strikes again!

Try the attached script instead. 笑顔
Martin Dougiamas への返信

Re: All Moodle user pictures on one page

- John Gone の投稿
Thanks Martin,
Amazes me how you find the time and patience to help. You were right and it's working perfectly. What a difference six characters [ ?file= ] makes! The slasharguments issue is obvious and I should've known that from seeing it in the forums so many times. I'll have to check the FAQ first or do a search on Moodle next time I have a problem. Most problems have been solved several times and appear many times when doing a search.
I believe "All users on one page" is an important community building feature. All participants is good for the same reason.
Thanks to all who replied,
John