Generating content from web form

I have only just started with drupal and I must say I am impressed with the work of some of the community modules. However, I am finding it a bit hard to know what modules will be the best combination to do what I want, or whether it is even possible without writing my own php code.

I need to create a web form that has a mix of pre-populated drop down boxes, as well as text and image upload fields. I then need to use this information to create content for a page. The user that creates it will need third teer permissions (i.e. an authenticated user with the ability to access the web form, but not a normal authenticated user). The page is created automatically, and it needs to be able to be commented on and be within the normal content area of the page. Only administrators and the user that created the page should be able to edit it, but anyone can comment.

I have tried looking at a few modules that I thought might hold the answers, but I am obviously not familiar enough with how they link together and just need a good place to start.

If you want to direct me to some good tutorials that might give me what I want or just list the things I need to do I am happy to do the research, it's just that the tutorial support, videos and documentation I can find doesn't seem to cover this example.

How to customize the user login/pw/reset blocks in Drupal 7?

Hi everyone,

I picked up on Drupal 7 a few weeks ago and I've begun making my custom theme for my website. However, right now I am stuck on how to customize my authentication blocks for users to login and register.

So far, after scouring the web, I haven't come across a definitive guide to doing this. So after opening up the user.module file to inspect some code, I came across this,

function user_login($form, &$form_state) {
  global $user;

  // If we are already logged on, go to the user page instead.
  if ($user->uid) {
    drupal_goto('user/' . $user->uid);
  }

  // Display login form:
  $form['name'] = array('#type' => 'textfield',
    '#title' => t('Username'),
    '#size' => 60,
    '#maxlength' => USERNAME_MAX_LENGTH,
    '#required' => TRUE,
  );

  $form['name']['#description'] = t('Enter your @s username.', array('@s' => variable_get('site_name', 'Drupal')));
  $form['pass'] = array('#type' => 'password',
    '#title' => t('Password'),
    '#description' => t('Enter the password that accompanies your username.'),
    '#required' => TRUE,
  );
  $form['#validate'] = user_login_default_validators();
  $form['actions'] = array('#type' => 'actions');
  $form['actions']['submit'] = array('#type' => 'submit', '#value' => t('Log in'));

  return $form;
}

Drupal 6, 7 or 8 for highest database performance?

I've tried searching, but am not able to find recent information on the topics that I'm interested in. So I appologize if I am repeating something that I just haven't found. But...

I've played with D6 and D7. But they were small sites on Hostgator co-hosted servers. I'm now working on a project that will eventually have a dedicated environment. My question is about performance for heavy use sites hosting complex data structures. Any graphics or video will only be for tutorials, so not a significant concern.

1. Does anyone have any performance comparisions between Drupal and other CMS systems that they can share? Have there been any performance comparisons between a Drupal and .Net environment (e.g. server load for heavy use sites)? Is there a type of Unix or Linux that is best for Drupal?

2. Given Drupal 6, 7 and 8 has performance been improving? (In my experience, D7 actually seems slower even on a simple site). Are there any performance tuning tips, tutorials, etc (I've already knocked out several optional modules on D7 and that helped, but doesn't bode well for performance). Again, my biggest issue will be holding complex data structures while a client is working with them.

How to add a note in all nodes from node.tpl.php

Hello,

I want to add a simple line that appears in all articles, not by using blocks but by hard editing the php file itself "node.tpl.php".

I want it to be right under the title (first line in the body).

This is the file:

Code/Variable for article title

Hello there,

What's the code or variable for articles?

For example, if I type $articletitle or in the body of an article, it would show the title of the article.

Anybody knows how?

Thanks!

Why is FTP needed on updates?

The one time I updated a module, it seemed to download the module, and then it failed because it needed FTP access to the server.

As far as I know, the Drupal code to download a module is running on the site, which means on the server, and so the downloaded module is already somewhere on the server. Why do we need FTP access to get from the server to the server itself?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x