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

looking for an address book type module

hello all I am working on an internal only Law Firm Drupal installation which requires a listing of their clients, plus status, who's working on it, if paid, etc. Am considering using Profiles for this function but am posting this to request for alternatives if any.

thanks in advance, gary

Category Issue- Site Design

Hey Guys,

I'm designing a site with the Category module, and things can get a little confusing (as I'm sure those familiar with the module know). The site I'm building has multiple types of content (blog posts, book reviews, news stories, etc). Further, it has 2 types of "tags"- Industry (what industry does this content relate to?) and Category (which topic does this content cover (ie., People, Purpose, etc)?). The lists of possible choices for Industry and Category are very large and have many levels (around 5 each).

CCK-less, separate-textarea-teasers without hacking core

Buh-bye "break" command and thank you but no thank you cck (no offense I'm sure you've got some great uses, but you also confuse the heck out of me and I see no documentation that anyone this side of a systems engineer can figure out).

After much futtzing, I've figured out how to implement teasers as a seperate textarea from the "body" field using on the exceprt module and contemplate (barely).

A few caveats first:

* This is tested for 4.7.3.
* It is more convenient to set up with a new site, but it is doable on an old one (*see comments at the bottom for more)
* There are no code hacks to anything, but because of the way this solution uses existing functions you should expect to accomodate some special needs when it comes to updating your installation since this uses the existing "teaser" and "body" columns (within the node revisions table) in a different way than a stock installation does when teasers are autogenerated or created with the break command.
* Teaser length settings in admin/settings/node will have no effect on any content type which is set to have a manual excerpt. What you enter in the teaser text area is what gets output. Am planning to add a character limit on the teaser at some point. If someone beats me to it - that would be awesome.
* It is possible to undo these changes, but you would need to take care of any teasers (e.g., get them transfered from the "teaser" table cell to the "body" table cell in the node revision table) which you generated while this setup was active.

So (finally) here it goes (if you are trying this on a site with pre-existing content read the addendum first):

1. Get the 4.7 version of the excerpt module. There are some patches people have put up in the issues threads. Don't use these - they seem to break the "read more" functionality. The module works great as is. Or you can download this one which I've modified slightly for my needs.

2. Get the 4.7 version of the ConTemplate module (another fabulous creation by JJeff)

3. Install both modules

4. Turn on excerpt functionailty (e.g. seperate textarea for teaser) by going to /admin/settings/content-types and selecting each content type and turning on/off "Manual excerpt" for each one.

5. Once you're done with that go to /admin/node/template to set up contemplate. You'll be greeted by a screen which lists all of your content types and has a link which says "create template" next to it. Click this link for each content type you want to enable a seperate teaser for, scroll down to where it says "Body Template", paste in the following:

print $teaser; print $body;

SimpleSendSms.Module

Hi all,

i'm building my really first module (i'm not a developer) and i would be grateful to anyone that could help me.
As is my firs attempt, please forgive me any error or stupid things; i'll try to clearly explain what the module do and what it should do, please feel free to answer and suggest anything you might consider useful to get deeper.

The module (actually a simple one) lets a block send sms to authenticated_user loading the page where the block is shown (if he/she has checked the option in the edit profile page).
Here is what i wrote down

<?php
/**
* hook_block().
*/
function sendsms_block($op = 'list', $delta = 0, $edit = array()) {
if ($op == 'list') {
$blocks[0]['info'] = t('Send sms ');
return $blocks;
}
else if ($op == 'view') {
//Function invio() to send sms and output a defined text. Much much more work to do!
function invio()
{
global $user;
profile_load_profile($user);
$destination_number=$user->{profile_mobile};
$message_body=($user->name) . ", your sms sent. KeyId: ". randomkeys(6) ." -- staff.mysite.com";
if (isset($user->{profile_mobileok})&&($user->{profile_mobileok})=='1') {smsgateway_sendmessage( $destination_number, $message_body); $s='Sms delivered.' ; return $s; }
elseif (($user->{profile_mobileok})=='0') { $t='you have to edit your profile to get sms.'; return $t ; }
}
switch ($delta) {

Form API dropdown list and hook_settings

I'm working on a module which requires different files to be loaded into a page depending on the plugin version selected in the module settings page. A dropdown list seems to be the best way to go, can anybody give me a hand on setting a default variable and how the module can change the variable.

This is what I have:

Expose Category Table to Views Module (Views Module API)

My problem: I wish to create Views of my nodes filtered and sorted by categories (from category table) rather than taxonomy vocabulary terms. The Views module only sees vocabulary terms (even with category_views, which depends upon taxonomy wrapper to create a "mirror" of categories as terms). I can't use taxnonomy wrapper because it appears to break OG forums.

Pages

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