This forum is for less technical discussions about the Drupal project, not for support questions.

Friend in need, banned from Drupal???

My friend is gettin the following error when he tries to visit the site "Sorry, 202.47.247.135 has been banned.". He does not know why he could have been banned. His username is Yogayak .

He says he offered a fellow drupal user a free membership thinking this was a kind and proper offer since he believes very much in barter.

Was he banned for this action? And if so, can he regain access somehow?

Thanks!

Upload with Permissions

Hello,
I know it sounds lazy, but I have this problem:

I need a way for users to upload files in a node. The node is made by another user, and multiple users can upload file(s) to the node. Files uploaded by a user should be visible only for the user who upload the file and the user who created the node.

I think permission for files / attachments is sufficient for this. Is there a module suitable for this task? Or should I create another module?

Permissions

1. Can I hide content from non-members?
2. Can I create forums for admins only?

PHP & MySql Brain Fart

Hi everyone.

I am having some sort of PHP / MySql Brain Fart. Any help would be greatly appreciated. Here’s what I am trying to do:

I am using the Profile Module and I a want to create a “stats page”.
I want to pull UID that contains two specific values. The “Profile_Values” table contains three rows. FID, UID, VALUE.
FID is the field
UID is the userid
Value..well, that’s the value of the FID.

In the database, I have:
FID UID VALUE
2 5 2002
3 5 Bill
4 5 Johnson

I want to pull users (UID) that have selected “2002” and that the last name is “Johnson”.
For this example, I am not interested in pulling the first name (FID 3).

Here is am looping the results to get the UID’s for 2002:

$query="SELECT * FROM profile_values WHERE  value = '2002'";
$result=mysql_query($query);

$num=mysql_numrows($result);

$i=0;
while ($i < $num) {

$value=mysql_result($result,$i,"uid");

echo "$value <br>";

$i++;
}

This generates the a list UID’s that contain 2002 as a value.
From this list, I need to see who (which UID) has the last name (Value = ‘ Johnson’) Johnson.

So I tried this:

$own3d = db_result(db_query("SELECT COUNT(*) FROM {profile_values} WHERE uid='$value'  AND value = 'Johnson'"));
print "$own3d";

But pulls nothing.
Any help would be greatly appreciated.

file attachment as a node?

Whouldn't it be great to have a basic node type called "file", similar to that of image? We could add a description of the file in the node, just like for the img node. We could browse the "file assist" manager to include the file in different pages? Or maybe that already exists?

/boris

Creating a new custom language

A quick query - I've searched and found no similar comments.

Is it just my installation or does Drupal 4.7 prevent the creation of custom languages (under Localization) with an 'en' language code? It does however allow me to create use 'en-us'.

Am I missing something obvious?

Pages

Subscribe with RSS Subscribe to RSS - General discussion