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

node.module hack -- Add 'read on...' to the end of nodes

It bugs me sometimes that Drupal will just cut at a part in your node, without letting the user know something has been cut. So... here is what I did to fix that...
Open up node.module in your favorite editor and search for 'function node_teaser($body)'.
You should see some sections that look like this:

return substr($body, 0, $delimiter);

Replace all of them with something like this:

Locale module's output stretching fixed layout

I have modified XTemplate to produce a new fixed-width layout,
and all works fine but locale module which is stretching the layout.

Not on it's first page, but after search when it populates the table with
locale terms.

Looking at the HTML output I can see where the problem starts, but I just can't
find the solution, tried everything I could think of for the past 2 days. Now I am really getting desperate.

HTML Output looks like this:

<div id="help">The locale module handles translations into new
languages. It also enables you to add jargon,
slang or other special language as fits the web site.
For each language you want to support, a line needs to
be added to your configuration file.<br>
&lt;/div&gt;

This part is still OK, and now the problem follows:

    <!- begin content ->

    <table >

    <tr><th>string</th><th>languages'</th><th colspan="2">operations</th> </tr>

    <tr class="dark"><td><br /><small><i>/beautymag/admin/system/modules</i></small>
    </td>
    <td
    align="center"><strike>hr</strike> <strike>en</strike> </td><td
    nowrap="nowrap"><a href="admin/locale/edit/399">edit
    locale</a></td><td nowrap="nowrap"><a href="admin/locale/delete/399">
    delete
    locale</a></td> </tr>

Problems applying patches

I have run into problems applying patches, as follows:

node.module:

patch < node.module.patch
patching file node.module
Hunk #1 FAILED at 1245.
1 out of 1 hunk FAILED -- saving rejects to file node.module.rej

node_image.module:

patch < imaged_nodes.patch
patching file node_image.module
Hunk #1 FAILED at 184.
Hunk #2 FAILED at 582.
2 out of 2 hunks FAILED -- saving rejects to file node_image.module.rej

xtemplate.theme:

Txonomy form dropdown

In my module settings how do i create a dropdown that selects a different taxonomy vocab?

Thanks

Check boxes

Hi i'm a complete noobie when it comes to module development.
I was wondering how do I make the form_checkbox function output the value of the ceckboxes to the body of the node?
thanks :)

Filestore upload problem

I can't find this problem in the forum or bugs so here it is.

My temp directory path is specified as:
files/temp/ and both are CHMOD 777

My Drupal db tables use a prefix drupal_

I get this warning:

Pages

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