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

Email this Page results to Page not found

Hi! I've looked at the forums, but can't find anyone who shares this problem.

When I use the emailthispage module on my Drupal 4.7.3, it produces a link like this:

http://hataw.com/?q=emailpage%26nid%3D17

which results in a "Page not found" error. However, when I manually tweak the URL and type in

http://hataw.com/?q=emailpage&nid=17

I get the emailthispage form.

Teaser without image

I have nodes which include embedded inline images (from img_assist).

When showing these nodes as a teaser, I do not wish to show the image at all. Please can someone explain how to effect this.

I am using the bluemarine theme on Drupal 4.7

TIA
Terry Fido

blogs for all users

Hi all, I have gone through the modules list, but I couldnt find it, so Im basically just checking to see that Im not simply as blind as a bat.

Is there a module available that would give all registered users the option of their own blog?

Your help is greatly appreciated

G :)

How do I create 2 levels of hiararchy?

Hello,

I need to know how to have 2 levels of hiararchy in my "books". In other words, I want to make one of the pages of a book visible to members of other groups.

converting modules from 4.7 to 5.0: the new uninstall hook for modules..assistance needed...

Hi Guys,

It's late and am stumped trying to get the module uninstall working for the front_page.module...

I've gone through uninstall hook thread, checked out the api docs about uninstall_hook and the handbook pages on updating modules from 4.7 to 5.0...but I'm still stumped.

I have managed to implement a sorta workaround, i.e. there's an uninstall on the new CVS version of the front_page.module that clears any front page settings from the database, reverts important system values back to default and then redirects to the /admin/settings/modules page, so the user can manually disable the module.

I'm stumped on how to do the final "disable module" step..i.e. drupal_uninstall_module($module) doesn't seem to disable the module for me. I've also tried creating a seperate front_page.install file in case that's what the drupal_uninstall_module($module) picks up upon, to no avail.

I hope that makes sense...I thought it better to post up here instead of plodding along into Drupals IRC channels, in case others are having difficulty.

cannot save settings in a function / troubles with $_POST['edit']

hi

i tryed to migrate a module from 4.6 to 4.7. there are so many changes required by foram api... but ok, this seems to be done mostly.

but there is a different problem now. the $_POST['edit'] sometimes does not contain anything. the strange thing, it is filled with a array, build from the form, but if there is a "required" field not filled correctly i get the form back for correction. i i correct now the setting and then POST the form the $_POST['edit'] does not contain anything. i'm realy frustrated... 3 days and no success. what is wrong?

function test() {
       $prefix = 'example';
       $form['config'] = array(
             '#type' => 'fieldset',
             '#title' => t('Test selection'),
       );
       print "testA";
       if ($_POST['edit']) {
              print "testB";

//            does not work (whats wrong???)
              $p = $form_values[$prefix.'_test'];
              print_r ($p);

//            works well
              $p = $_POST['edit'][$prefix.'_test'];
              print_r ($p);
       } else {
              print "testC";
       }

       // blah blah code...

       return $form;
}

If i post this form the first time i get "testA" and "testB". If i repost the form after correcting a value i only get "testA" and never "testB".

PS: this is not the original code, it's an easier stripped example and i must understand...

Pages

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