This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

new module: nodeblock

I created a little module that defines a new content type called 'nodeblock'. When you add a nodeblock node its title will show up on the Blocks page. From here you can enable the block and do whatever you want with it.

Although this achieves the same effect as creating a block and putting something in the body, the beauty is that you don't have to give your clients or lower-level users access to the ugly admin/block page. Also you have more power with a node than with a block.

The last thing it does is add an 'edit' link inside the block (if you have the correct permissions)... which is very convenient for end users. After editing, they will be sent back to the referring page.

If you like the module or are interested in it maybe I'll see if I can get it into CVS and on the modules page.

<?php

// $Id: nodeblock.module,v 0.1 2006/11/06 00:00:00 chud Exp $

function nodeblock_help($section) {
switch ($section) {
case 'admin/modules#description':
// This description is shown in the listing at admin/modules.
return t('A custom node type that can be enabled as a block.');
case 'node/add#nodeblock':
// This description shows up when users click "create content."
return t('A custom node type that can be enabled as a block.');
}
}

function nodeblock_node_info() {
return array('nodeblock' => array('name' => t('nodeblock'), 'base' => 'nodeblock'));

User's demo reel on profile page

I am trying to create a module that will display a demo reel on their profile page but I cannot seem to display the content. I would like to use either IMCE or a simple upload box to allow users the ability to upload the demo reel and change it if needed.

These can be mp3, mov, mpeg, or flv.

Any help would be appreciated.

Gmap Location

I have gmap and location modules, what I would like to do is have the link on the default location map go to another map that shows just the node zoomed with detailed description below. I think I will need to modify the CKK, but I am not sure how to tackle this.

Thanks Trav

Changing switchtheme module from form to link

Is it possible to edit the Switchtheme module from a form to a simple list? I don't have much experience tweaking modules, so am not sure how to do it.

Can anyone give me some pointers?

A drop-down selection list of languages instead of the default text links and flags using i18n

I am currently developing a multi-lingual site in Drupal 4.74 using the i18n module. At first the site will be translated into 4 languages but eventually this will be extended to between 18 and 25 languages. This is why I would like users to select their chosen language from a dropdown form list instead of the default text links and flags. I think that this would be a better solution when I have so many languages to show.

Ideally, this drop-down select menu would show the current selected language.

how to insert the content of a page in a node?

What do you think would be the approach to be able to "borrow" the content of a page and put it in a node?

For example:
I have written a module which defines a "donation" page (the url is "donation").
However, I would like to be able to see the content of this page displayed in a node.
I could have something like this in the node body:
[insert_url:donation]
And it would write the output of the url in the node body.

Any suggestions on how to tackle this?

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions