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

Weblink module: Allow duplicated weblinks

Hi,

how can I change the code to allow duplicated weblinks in the database??

Thanks,

Roseline Paquin

node_prepare stripping out my tags

Hi

I have been using the node_example.module sample to learn a bit about writing drupal modules. I have run into a bit of a problem though with the node filters and I am hoping that a veteran developer could just clarify this issue for me.

The node_example.module has these two functions that are used to render the 'new' node:


function node_example_view(&$node, $teaser = FALSE, $page = FALSE) {
  $node = node_example_content($node, $teaser);
  return theme('node', $node, $teaser, $page);
}

function node_example_content($node, $teaser = FALSE) {
  $order_info = theme('node_example_order_info', $node);
  $node->body .= $order_info;
  $node->teaser .= $order_info;
  return node_prepare($node, $teaser);
}

function theme_node_example_order_info($node) {
  $output = '<div class="node_example_order_info">';
  $output .= t('The order is for %quantity, %colour items.', array('%quantity' => $node->quantity,
                                                                   '%colour' => $node->colour));
  $output .= '</div>';
  return $output;

node->body is themed by node_example_content() and then filtered through node_prepare. One of the things that the theme does in insert a

into the node body. The problem is that the filter then removes the
.

Now my problem is:
How do I use my theme to insert the

tags that I want, but still prevent users from submitting node bodies that contain
tags.

Changing the format of node->title

Hi

I am writing a module that will be used to track clicks on title links in the teaser view. The problem is that I am can't figure out how to rewrite the URL for the node title in the teaser view. I thought that hook_nodeapi() might be useful for this, but it seems it is only useful for rewriting node_body.

I would prefer to do this without hacking any particular theme, since I would like this module to be compatible with all/most existing themes.

Any suggestions out there on how I could approach this?

Thanks

any chance slideshow and ecard for image.module?

Hi..

Feature requests for the superb image.module..

a slideshow for the gallery part and ecard functionality?

is this possible - anybody out there can do?

Ewan

subscrible module to nonregistred visitors

I am in need of a module that allows an Admin to send different emails/newsletters to non registred/registred members who entered e-mail in special subscrible form.

Moblog module needs your help

Hello all,

I have developed a moblog module that lets your users post pictures, audio and video from their phones. One of the problems I'm faced with is that every wireless phone carrier delivers the item (picture/audio/video) in a different format. I've developed a plugin system to handle the processing of messages from different carriers. The main thing these plugins do is to separate the actual package from the formatting/advertizing. In some instances, only a link to some website where the image is stored is sent, with no actual attachment. In such instances, the plugin will pull the image from the external website. The wireless carriers don't tend to publish this sort of message format anywhere, so I have a favor to ask of you...

Could I get anyone who is interested in helping me with the development of this module to send image, audio and/or video to my test server mail account here: testpost@moblog.nullcraft.org ? All I really need is one example of each from every major carrier (and every major model of phone, if the data differs). My primary concern is images at this point. Video conversion is a scary can of worms that I'm deferring until later. I think audio would be somewhat trivial, but until I have a broad array of examples to look at, I won't know for sure.

I would certainly appreciate feedback. The code is only in CVS and an official project has not yet been created. It's at best beta quality code at the moment. The Readme is here. My testing/development site is here: http://moblog.nullcraft.org/

Pages

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