Drupal is up and running but how do I ...?

Safe way to delete fields of tables in database

Is there a safe way to delete fields of tables in database. I emptied watchdog fields couple of weeks back and now the wid is starting from 100 instead of 1.

Well, watchdog table doesnt have an autoincrement. so how does it happen ? after emptying any table, how to clear the memory of the last inserted data in a table so that the next entry starts from the beginning?

Appreciate your comments.

How to use sub folders to separate users

I am looking for a blog system which allows my visitors to create their own blogs. After I uninstalled a lot of famous systems, I believe Drupal is the right one. I created a stand along website blog.mysite.com for Drupal and installed Drupal on its "/" folder. Here is my goal: A visitor visits my site (blog.mysite.com) and he can register his own blog account. And then, this visitor can get his blog in this URL: blog.mysite.com/his_user_name/ When someone visits this URL, only his_user_name's blogs can be displayed.

dynamic horizontal tab menu like contAire

Sorry for the newby question.

I'm not a programmer but want to change a bit of the phptemplate theme. using the contaire.com - A Corporate Website Based On Drupal article as a basis. I've also looked on their website at the article A Corporate Website Based On Drupal, which is almost identical.

In addition, Drupaldocs section on menus is a good reference but only if someone knows where to begin. I unfortunately don't.
I changed the contAire code to :

 
function _global_menu($pid = 1) {
  $menu = menu_get_menu();

  $entries = array();
  if (isset($menu['visible'][$pid]) && $menu['visible'][$pid]['children'])
 {
    foreach ($menu['visible'][$pid]['children'] as $mid) {
      $style = (count($menu['visible'][$mid]['children'])
        ? (menu_in_active_trail($mid)  
          ? 'expanded' : 'collapsed') 
          : 'leaf');
      $entry = array('style' => $style, 'link' => theme('menu_item', $mid));
      $entry['children'] = _global_menu($mid);
      $entries[] = $entry;
    }
  }
  return $entries;
}

function global_menu($pid = 1) {
  return _phptemplate_callback('_menu',
    array('pid' => $pid, 'entries' => _global_menu($pid)));
} 

In the template.php file in my themes > engines > phptemplate folder on the server after the class Template call on line 26 of the template.php file.

Then in page.tpl.php in the themes directory (manji, in this case) I added to line 31:

<?php function global_menu(73) ?>

to call the MenuID for the custom menu I made.
contAire uses:

<div tal:content="php:contaire_menu(26)" />

But I don't know how to translate that to plain php syntax.

i then receive the error:

Parse error: parse error, unexpected T_LNUMBER, expecting ')' in ...page.tpl.php on line 31

I realize I must be making some horrific coding errors, but there is nowhere I have found to document simple calls pull in a specific variable... I understand that the menu is getting loaded into an array "entries" but then is being called by its $mid, but the function is asking for the pid, which is confusing to me.

I greatly appreciate anyone's help on this.

Brett

Friendster & Taxonomy

Hello Friends,
I realize that this site is quite expansive and mostly any question can probably be found with enough searching.

I have a question that may have been repeated many times, sorry.

Will someone please explain the Taxonomy module to me. If I want to have a site that creates links to other members based on similarities (eye color, high school graduated from, state living in, gender, favorite movie, video game, etc., etc.)

Do I:

User Profile Customization > create all the necessary fields

Can't attach files

Hello,

I have drupal set up and running fine on a IIS server on Win XP pro.

I have the files directory set with write permission.

I can't attach files to posts. I can upload the file and it appears in the preview. I can even download the file by clicking on the link in the preview.

But once I click on the submit button, the file dissapears.

I have checked the files directory and nothing ever appears there.

Does anyone know what might be going on?

Thank you!

How do I create new user input fields?

Hi, I am new to drupal.

I have created a blog-type entry system, but want to expand the number of posslble user input fields.

So, for example, instead of a user being limited to the default "title" and "body", there are many other fields that users can input information into, including drop-down menus.

How can I go about creating these added user input fields?

Thank you and I greatly appreciate your advice and help!

Pages

Subscribe with RSS Subscribe to RSS - Post installation