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?
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.
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/
I am trying to figure how to limit the number of latest articles displayed in a block. I have searched the php manual on limiting the arrays, but didn't come up with anything usable.
I believe that function that handles this in the article module is the following:
I am having a bit of a problem understanding how to trap and handle database errors. Lets say i have a table with the following definition:
CREATE TABLE test (
nid INTEGER(10) UNSIGNED NOT NULL,
email VARCHAR(128) NOT NULL,
UNIQUE INDEX u_email_idx(email)
)
For the purposes of this discussion, email is a field that contains a unique email address. The uniqueness of this address is enforced by the unique index u_email_idx.