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

2 quick questions after upgrading to 4.7.3

I just upgraded to 4.7.3 from 4.6.3

I'm experiencing 2 small issues...

before, with nodes I could add this code:

Top sticky block in home page?

Hi,

Sorry if this is too basic, but I'd like to know how to get a top box (like the one on Drupal.org home page, the one with a different background color, that contains the screenshots and the main bulleted points). Is it some kind of special block?

There's also one at http://gallery.menalto.com

Thanks for any assistance
--
Albert

Can I add new text field on story node ?

Hi,

I need to create a new URL text box on a story.
so it can show something like this

Link out side --> the story title
Submitted by ionalia on Wed, 2006-09-20 22:28. ---> the story info
source : www.cnn.com ---> need to create this field
<-- summary goes here -->

Thank you

Create new entry on the Create Content page

I have the image_gallery module (part of the image module) installed. I'd like to allow users to create their own galleries in the same way that they create other content types. The problem is that 'galleries' are actually taxonomy entries, and the interface for creating galleries is via the Administration menu.

So, I'd like to be able to have an entry on the create content page and a menu item that says 'create new gallery'.

From what I can see, it looks like the obvious way to achieve this would be to create a new module that simply has a hook_menu function.

I've tried to do this, but I can't seem to get it right.

Here's what I've got:

<?php

/**
 *
 *
 * @version $Id$
 * @copyright 2006
 */

function gallery_help($section='') {

  $output = '';

  switch ($section) {
    case "admin/modules#description":
      $output = t("Creates a new image gallery or 'set'");
      break;
  }

  return $output;
} // function gallery_help

function gallery_menu($may_cache) {
  $items = array();

  if ($may_cache) {
    $items[] = array(
    				'path' => 'admin/image/add',
				'title' => t('gallery'),
                                'type' => MENU_CALLBACK,
                                'callback arguments' => array('gallery'),
				'callback' => 'category_add');
  }

  return $items;
}
?>

My guess is the I'm not passing the right variable into the $items[]=array(), but I'm moving well outside my 'knowledge base' with this one. I'm learning, but it's slow.

Organize forums only by taxonomy ?

This is probably a stupid idea, so I'll try to keep it short. Would it be possible to use only categories for organizing the forums, instead of containers and stuff ? Now when I have a site with filtering possibilities of all other nodes by 'politics', 'sports' etc., it seems like double work to have to setup these topics also as separate forums. My dream setup would be just one big initial list of forum topics, with filtering possibilities in a block or the navigation menu.

Multibyte string input conversion in PHP problem and permissions question

I'm getting a couple errors on my administer-settings page (4.7, I believe, the newest):

* Multibyte string input conversion in PHP is active and must be disabled. Check the php.ini mbstring.http_input setting. Please refer to the PHP mbstring documentation for more information.
* warning: mkdir(files): Permission denied in xxx/.../includes/file.inc on line 91.
* The directory files does not exist.

Pages

Subscribe with RSS Subscribe to RSS - Post installation