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

Auto Linking

Hi all,

I'd like to be able to automatically link to a website when certain words are used on a blog or forum entry by any users.

IE - if someone types google, I'd like it to link to http://www.google.com

I've since found a module called "autolink", but it doesn't seem to work for the latest version of drupal.

Does anyone have any idea's if anything else can do this?

Cheers
James

trimmed version with tinymce

i have problems using tinymce that it doesn't puts <!--break--> into posts, and i have to do this manualy, is there a fix for this?

Problem with writing .install files?

I'm not sure whats wrong with this code? It works when it's in a normal page (or in the module itself) but when it's written into a .install file - it just refuses to work...?

function tablemanager_update_3() {
  $items = array();
  $row = array();
  $sql = db_query("SELECT tm.tid, tm.header FROM {tablemanager} tm ORDER BY tm.tid ASC");
        while ($fetch = db_fetch_object($sql)) {
        $count = 1;
        $temp = unserialize($fetch->header);
                foreach ($temp as $a) {
                        if (is_array($a)) {
                                if (array_key_exists('field', $a)) {
                                $a['field'] = (string)($count);
                                } // end if (array_key_exists)
                        } // end if (is_array)
                $row[] = $a;
                $count++;
                } // end foreach
  $items[] = update_sql("UPDATE {tablemanager} tm SET header='%s' WHERE tm.tid=%d", serialize($row), $fetch->tid);
  unset($row);
        } // end while
  return $items;
}

It also displays literally "UPDATE {tablemanager} tm SET header='%s' WHERE tm.tid=%d" as the output for each table you have rather than the actual output with the serialized strings. If I put the strings directly into the query rather than use '%s' and '%d' then (as expected) the curly brackets get stripped from the string when its put into the db.

Check_Markup issue?

$check = '<?php print "hello"; 

';
print "Checked: ".htmlentities(check_markup($check, 2), ENT_QUOTES);
print "
Original: ".htmlentities($check, ENT_QUOTES);
?>

Format 2 is the php filter and this code returns:

Checked: hello
Original: print "hello";

Why does it strip the code? This isn't very helpful :o( It used to work when using check_output in 4.6?

Pobster

image_import for 4.7...

4.7

Any eta on when this will be ready? I have a site I need to finish up in the next couple of days and it depends on multiple image uploads since the user will be uploading 30 photo sets daily.

Thanks in advance,
Jeff

Where can I find the "last updated/added" modules?

Hi there!

This is just a suggestion... but it would be very nice if could be an area on the index page, or maybe at the "modules" page, or "downloads" page where we could see the last updates/added modules on the site.

I´ve searched for it and didn´t find it... maybe it is out there and I´m wasting your time asking for this... (in this case, please tell me where it is ;-)

Greetings!

Rosamunda

Pages

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