Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I'm having issues trying to upload files to drupal. I put a file_check_upload in there to see if it was making it that far in the file_save_upload and it is. I can't seem to figure where I'm going wrong. I have a deadline in couple hours and I'm trying to get this solved before then.
Heres my upload code. Like I said before, the file uploads to the server properly, but it doesn't make it through file_save_upload and I don't know why. This is my first project with drupal, so take my ignorance with a grain of salt ;)
I've been searching for sometime now but to no avail. I am looking to use the Title module feature with Flexinode forms. I am having teachers at my school fill out the forms to create their staff page. I would like to have them choose what department they are in from a drop down menu. As it stands now, I have set up a taxonomy of departments they can choose from. The only problem with this is that the link that is created by the taxonomy term sends the user to a page I don't want them to go to.
I'm having trouble building a table. Here's the story. I created a catergory, and a term called directory. I have attached a page to it. And in this page, I use the following code that works to a point, but does not stick this data in a table :
$output .= '
';
$result = db_query("SELECT uid FROM {users} WHERE status = 1");
while ($processingUser = db_fetch_object($result)){
if ( $processingUser > 1 ) {
profile_load_profile($processingUser);
$resultA = db_query('SELECT * FROM {profile_fields} ORDER BY name, category');
$first = '';
$last = '';
$address = '';
$phone = '';
$listuse = '';
while ($field = db_fetch_object($resultA)) {
if ($value = profile_view_field($processingUser, $field)) {
if ( $field->title == "Address" ) {
$address = $value;
$address .= " Maineville Ohio 45039";
}
if ( $field->title == "First Name(s)" ) {
$first = $value;
}
if ( $field->title == "Last Name(s)" ) {
$last = $value;
}
if ( $field->title == "Phone Number" ) {
$phone = $value;
}
if ( $field->title == "Directory Listing" ) {
$listuser = $value;
}
}
}
if ( $listuser == "Directory Listing" or $listuser != '') {
I'm working on changing the recipe node module. At the moment it performs drupal_set_html_head with some extra CSS.
The codefilter module goes one step further and uses drupal_set_html_head to point to an extra stylesheet (<st yle>@import etc), stored as codefilter.css in the module's directory.
In my module, I currently use theme_add_style(), because that seems to do exactly what I want. Is it the right function to use?
Anyone have any idea about allowing users to create their own forums under a certain container through the create content menu. Any one know which direction to look in in order to get that? I tried searching for it, and didn't find much.