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

Help with menus please

I'm trying to work out how to acheive the following.

I want to have users be able to add pages into an existing menu structure from the node page without having access to administer menus. As far as I can see there is only all or nothing. Does the menu module need patching with extra permissions for this?

"Page cannot be displayed" all of a sudden

my drupal sites have been up and running for months with no issues, then overnight i get a page cannont be displayed message. i just re-installed with the newest version of 4.7 after finding this problem, and still have it. 3 sites linked to this one install all have the same issue. I have one other site running on it's own in another directory that's fine. (not sure of it's version however). any ideas? thanks

Some errors...

My users get these errors when searching my site:

Image Uploading Issues

Whenever I try to create an image using the image module, I get the following error:

Unable to create thumbnail image
The selected file /home/x3oadmin/public_html/gaming1/files could not be copied.

Any help or advice?

P.S. Already made the 'files' directory 7777.

snippet help: if no news image uploaded print default picture

I'm trying to write a snippet that will check if an image has been loaded into a cck image field and if not then print a default image. I've been having a look at the user image code in the user module to try get some clues but am a bit stuck on how to apply the same principals to get what i need - i'm afraid this is my first attempt at php coding and i would really appreciate any help!

This is the section of code from the user module that performs the kind of thing i want but i'm not entirely sure how to adapt it:

function theme_user_picture($account) {
  if (variable_get('user_pictures', 0)) {
    if ($account->picture && file_exists($account->picture)) {
      $picture = file_create_url($account->picture);
    }
    else if (variable_get('user_picture_default', '')) {
      $picture = variable_get('user_picture_default', '');
    }

    if (isset($picture)) {
      $alt = t('%user\'s picture', array('%user' => $account->name ? $account->name : variable_get('anonymous', 'Anonymous')));
      $picture = theme('image', $picture, $alt, $alt, '', false);
      if (!empty($account->uid) && user_access('access user profiles')) {
        $picture = l($picture, "user/$account->uid", array('title' => t('View user profile.')), NULL, NULL, FALSE, TRUE);
      }

      return "<div class=\"picture\">$picture</div>";
    }
  }
}

and this is the section of code in my cck template that printed out my news image:

<head> How Do I get access to the head tags?? </head>

Hi,

Sorry, this may be a bit of a dumb question, but i've searched the forums with no luck, and had a squizz through the handbook, but cannot find what I need to know.

How/Where can I add some code to the tags??

I need to add a small parsing script so I can track dynamic pages with my tracking script.

Any help would be hugely appreciated!

Thank you for your time!

Pages

Subscribe with RSS Subscribe to RSS - Post installation