a simple php question

I messed up the php code on my site and was wondering if any one can provide some help.

Once a user logs in, I want the User info block to display "Aloha user_name" above the links for: my account, shopping cart and log out

This is the truncated code that I have and I know it is not correct. My knowledge of php is limited so that is why I need the help of the members of this forum.

Aloha <?php db_insert profile_first_name; ?>

Manipulating source order of $content

No matter where I put this snippet:

<?php print theme(array('links__system_secondary_menu', 'links'), $secondary_links,
          array(
            'id' => 'zenigata-menu',
            'class' => 'links clearfix',
          ));
        ?>

within my page.tpl.php template, it still appears above the Primary links. I don't know what else is affecting the placement of the menu. There is no css applied. If I delete the snippet, it disappears so I know I'm calling the right template and the menu.

I have tried outside various sections but it's still getting placed above the Primary links. I have a sub-theme and set it to the default theme.

Am I missing something or could it just be some weird glitch in my install/page?

Code for page.tpl.php: (just from body to body to cut-down on post)

print $classes; ">

Developer quit the job and forgot access to the site. What to do?

Hi all, the developer that created my site in 2009 under my domain markleung.com has left the job since, and currently cannot remember how to get access to Drupal for the site, let alone her login credentials.

Now the front page of the site works, but navigating anywhere else returns a 404 error.

I vaguely remember not needing to log in to the Drupal panel through drupal.org. I believe the URL was something like http://markleung.com/drupal.

Drupal.org does not recognize my log in.

How to change my custom module to print an array in the given format

How to change my custom module to print an array in the given format on submitting the data in my custom form in Drupal 6?

['Authentic user']=array(
['edit']=>true;
['read']=>false;
}

My custom module code is:
<?php

/**
* @file
* Role user add
*
* This is acustom module to add users from roles
*/

/*
* Implementation of hook_form_alter()
*/
function roleuseradd_form_alter(&$form, &$form_state, $form_id) {

if ($form_id == 'user_admin_new_role' || $form_id == 'user_admin_account'||$form_id == 'user_profile_form') {
$form['#submit'][] = 'roleuseradd_rid_submit';
}
}

function roleuseradd_rid_submit($form, &$form_state){
//print_r($form_state['values']['name']);exit();
$role_name = $form_state['values']['name'];
db_set_active('mediawiki');
$sql="INSERT into wiki_user_groups(ug_group) VALUES ('$role_name')";
db_query($sql);
//Switch back to the default connection when finished.
db_set_active('default');
drupal_set_message(t('The queries have been made.'));
}

/**Implements hook_menu to create a form for adding wiki permissions

*/

function roleuseradd_menu() {
$items = array();
$items['admin/wikisetting'] = array(
'title' => 'Drupal wiki form',
'page callback' => 'drupal_get_form',
'page arguments' => array('roleuseradd_form'),
'access arguments' => array('access content'),

Removing fields from content type

I've added a new content type, but I end up with a bunch of fields that are redundant. I would like to get read of:
- Menu settings (is there a way to hide it?)
- Locations (I'm using the location module for another content type, but I don't need it here)

Thanks for the help!

Moving secondary links and logo in page.tpl.php

No matter where I put this snippet:

<?php print theme(array('links__system_secondary_menu', 'links'), $secondary_links,
          array(
            'id' => 'zenigata-menu',
            'class' => 'links clearfix',
          ));
        ?>

within my page.tpl.php template, it still appears above the Primary links. I don't know what else is affecting the placement of the menu. There is no css applied. If I delete the snippet, it disappears so I know I'm calling the right template and the menu.

I have tried outside various sections but it's still getting placed above the Primary links. I have a sub-theme and set it to the default theme.

Also, I think maybe this other issue may shed light to those more knowledgeable.

I'm trying to eliminate the site logo. I've set the specific theme settings by checking off the "logo" and even putting a custom page in the logo box just as a back-up. However, every time I check the page in various browsers, even after clearing caches both in the browsers and Drupal, a broken-icon for the logo comes up and the image it's looking for is not even the custom path to the logo I set.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 6.x