How Do I set up D7 so that every user uploads to their own files directory

All I want is that the system puts user uploaded files into their directory, by uid or name, don't care which.

default/files/1
default/files/2 etc

I'm envisioning a LOT of files.

Only logged in users can create content or comment so don't care about anon.

I'd like it to work with MEDIA Module, but can live without it doing so.

I've tried doing things like setting in config sites/default/files/%uid or [uid] or [user:name] but to no avail.

Weird upload problem when using ajax

I have weird problem with my code. I have form with few fields. If user selects a checkbox i want that other fields disappear and new fieldset with file upload appear. This works great except that when I choose file to upload and press submit, nothing happens. I think it's something wrong with ajax callback, because when I remove that callback (ajax_classes_from_file_callback) file upload works. This code bellow is from my tests. It has the same problem. Maybe i need to set something in $form_state?

<?php
function insert_class_form($form, &$form_state){
$form['insert_class'] = array(
'#type' => 'fieldset',
'#title' => t('Insert new class'),
'#weight' => 0,
);
$form['insert_class']['table'] = array(
'#prefix' => "

",
'#suffix' => "

",
'#weight' => 1,
if(empty($form_state['values']['fromfile']) || $form_state['values']['fromfile'] != 1){
$form['insert_class']['table']['class_name'] = array(
'#type' => 'textfield',
'#required' => TRUE,
'#maxlength' => 4,
'#title' => t('Class name'),
'#prefix' => '

',
);

',
'#suffix' => '

More than one public file system paths

Hi,

is it possible to set many different public upload destinations for files?

Lets say for example if I have site that holds pictures of cars and motorbikes. I would like to user uploaded pictures of cars (node: car) go to folder public/cars and the pictures of motorbikes (node: motorbike) to folder public/motorbikes.

When I go Drupal administration (File System - configuration) it shows setup only for one public file system path.

Thanks for advance.

pager problem after clicking next

I am using Drupal 7.

I am using Views to create a block which lists a number of titles that each link to a
corresponding node.
When I click one of the items on the first page the list of titles is reloaded correctly.

However, when I click one of the items on the second page the titles
belonging to the first page are displayed. Obviously, the ?page= parameter
is not added to the list of titles on the second page. Is there an easy way to accomplish this,
or am I to write a pager myself?

Seting up a community archive

Hi all,

I run a website that is a community archive or original and fan-based fiction. Now, recently the guy who did all the coding for the site nuked everything and has pulled us from our server. I have an archive of all the content, but I need to get drupal setup so it can handle things for users. I have a need to:

How to add html to my Article?

I want to add a html in my news post such as a embedded video. How do I do this? I have the Ckeditor but I don't see the html option to click so I can do this. I also need this option so I can add ads to my site.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x