So, this is the first in a series of posts where I pander the Drupal community to assist me in shortcomings on the social networking/movie distribution website I'm currently designing, Hollywood Can Suck It. The problem I'm currently trying to tackle is a custom block which displays 6 users' pictures (in cropped squares), with links to their profiles, in two columns. So far, I've gotten it to display 6 pictures with usernames, but only in one column and without links. Here's the code for the block (found elsewhere on drupal.org and slightly tweaked):
<?php
/*
* This php snippet loads up a random user object and displays their name and avatar.
* $count controls (x) number of users to display
* $no_avatar controls the path to the default avatar image to display.
*
* tested and works with drupal 4.6.x
*/
$count = 6;
$no_avatar = "http://crewcial.org/blam.gif";
$result = db_query_range(db_rewrite_sql("SELECT * FROM {users} u ORDER BY RAND()"), 0, $count);
while ($user_info = db_fetch_object($result)) {
if($user_info->uid){
if($user_info->picture){
print '
I posted this question in reply to an upgrade question that was answered. Then I realized that this evolved into a theme design help question after posting so I am reposting my question here. Hope this does not offend anybody.
As I'm sure we're all aware, ajax is coming into Drupal (indeed, it's already here). I think that there is a strong argument to use established toolkits / libraries, and there's an equally strong argument to come to a decision about which toolkit to promote as the "drupal standard".
So far, I see three primary contenders: xajax, sajax, and Dojo.
xajax seems the most prominent of these.
Are there any other players needing consideration? Are any of these 3 inappropriate for our needs?
Hi, I am creating a community site where I want users to be able to create albums and upload
pictures. It should work in such a way that an administrator creates a root-album and users can
create subalbums under that level. Users should have ownership to the album they create,
and other users should not be allowed to alter any files found in that album.
What would be the best solution to this use-case? I have tried Acidfree, but I can see that this will
give me the access restrictions I want.
I was a bit confused.. This Drupal is only for administation.... not for the users... ie administrated by the admin???
Like wise In shopping cart system we have admin panel where the admin can add/edit/delete the products (categories/su categories) and site user can see the products and go for shop..
Pls explain we have Tag Module in Drupal?. If yes means pls give me the link where can I download the module. I want the tag like in the site http://connect.educause.edu/ is it possible with Drupal. Please help me on this Issue.