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

Form Buttons

Hi

I am creating a node module which has a table of related items. I have these outputting as an editable table and wish to palce a delete button at the end of each row so that users can delete specific rows individually. I have managed to get the buttons appearing using the stand button type form element but cannot see how I hook into the button click.

When I click the button the form is submitted and the "op" code is set to "delete_highlight" but I do not know which hook I should be using to react to this or how I can pass the record id that requires deleting?

Image module with lighttpd server?

Good evening everyone,

I have just finished setting up my site on a lighttpd server, only one simple problem, is that I can't use GD for my image module.

So basically I would need to switch to Image Magick which I know is old, and when it says this:

Make sure you have a working image toolkit installed and enabled, for more information see: the settings page

I go to my settings page and I don,t see where I can change anything for the image handling.

So now, what do I do?

Thank you!

Trying to create a shortened "post blog" form on the front page

I'm trying to create a shortened version of the form at http://www.examplesite.com/?q=node/add/blog that just has fields for Title and Body, none of that other stuff. The problem is I have no idea where to start with this, I'm new to Drupal.

I tried adding the following code to my page.tpl.php file just as somewhere to start, but not really getting anywhere:

How to send emails from awardspace server?

Hello! Have you got smtp to work on awardspace free host? i Tried to use smtp module with phpmailer but it doesen't seem to work. Can you give me a hand on this stuff please? I'm not that good in programming!

How can i add fixed clickable images (not randomized) to a block on drupal 4.7.2 ?

I want to add images with links to pages. I have tinymce installed and configured, but i can't get images to show on a block. Could you help me please? I've searched a little bit on the forums but i have no clue yet. Thanks in advance. PS: I'm not that good in programming.

Can a Drupal Module be made to log in a user bassed on an already open PHP Session containing their user/pass?

I have a web app which opens a PHP session and stores the user's username and password inside it, as well as first and last name, and e-mail address.

I am installing Drupal in a subdirectory on the same server, and I need to use this information to _automatically_ log in to Drupal the moment they visit a page on Drupal. It is important that they not have to enter the username and password themselves.

I've written and successfully tested a PHP script already:

session_start();
$crazyuserobject = $HTTP_SESSION_VARS["user"];
$uservars = get_object_vars($crazyuserobject);
print('<br>USER: ' . $uservars['Username'] );
print('<br>PASS: ' . $uservars['Password'] );
print('<br>FNAM: ' . $uservars['FirstName'] );
print('<br>LNAM: ' . $uservars['LastName'] );
print('<br>MAIL: ' . $uservars['Email'] );

...that retrieves the variables I need, to verify that it can be done. What I want to do is, if that Drupal user exists, log in to it instantly. (If not existing, *maybe* create the account AND login. But that's not the important part.)

Pages

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