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

Some JavaScript to post a node form AJAX

function ajax_submit(goto_url) {
  $('update-indicator').style.display = 'block';
  if (tinyMCE) {
    tinyMCE.triggerSave();
  }
  var params = new Array();
  for (i = 0; i < document.forms[1].elements.length; i++) {
    with (document.forms[1].elements[i]) {
      if (tagName == 'TEXTAREA' || tagName == 'INPUT') {
        params[name] = value;
      }
    }
  }
  params['op'] = 'Submit';
  remove = function (string, xmlhttp, goto_url) {
    if (xmlhttp.status != 200 && typeof xmlhttp.status != 'undefined') {

How about this for an install wizard? An Automated Website tour guide!

I've been doing something a bit special last night.
I couldn't find a demo/screengrab thing that I liked enough, so I thought about doing it the hard way.
... Then I decided to go even harder than that.

I built an entire wizard walkthrough scripting thing to guide you through the first stage of the relationships module.

If you're Firefox or IE6+ (I honestly dunno about the rest today) Then visiting My Animated Tutorial should be a blast.

TinyMCE 4.7.0

It seems the files are missing in the tgz files

Hook on settings update

Hi all,

I'm a newbie Drupal module developer - is there a hook (or any other method) of being notified when the settings page has been saved (ie after save on hook_settings)? I need to do a bit of work on the settings that have been saved, but can't figure out how.

Thanks,

Matt

mysql_real_escape_string() warning

Hi,

I've coded a module which should read informations out of the database... everything works fine if i am logged in with the administrator account, but when a anonymous user wants to access the page the following warning is shown:

warning: mysql_real_escape_string() expects parameter 1 to be string, unknown given in ****\includes\database.mysql.inc on line 239.

I don't know why, because I didn't called this function :(

thanks for help :)

A block based on page content

Hi,

I'm trying to set up a block that will show a content that is placed at one of pages. The meaning is that editor can change a content of the page (text, links, images) and it will be automatically shown at one of side block. Is it real? I've tried few modules but all of them give an option to make custom menus, not content.

Pages

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