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

AcidFree popup request

Hi,

Is there anyone who would know how to make an image within an album popup in a new window (_blank) while i am clicking on it?

Thanks

New node like story but with email function

Hi there,

I am looking for a solution that can put an extra input box for a target email address when, and only when, create a story-like node. The email contains first 50 letters of the node content along with a invitation message and a url to the node. Upon receiving the email, the node creator's friend can go there and put some comments. (drupal 4.7)

Any suggestion will be appreciated. Thanks.

node_privacy_byrole question

Hi

I've using node_privacy_byrole, and it does a fine job at preventing unauthorized viewing/editing

but, i would expect that menu items that reference nodes that are not viewable (because of node_privacy_byrole rules) would not be visible in the menu system

showing menu items to users, that when clicked just lead to an "access denied" page, doesn't make a lot of sense to me

is there something wrong with my installation of node_privacy_byrole? or is that just not functionality that it supports?

John

Is there a way to set the title on the teaser for a node?

Hey Folks,

Title says it all really, I'm using 4.7 and trying to set the title on a teaser as I would do using drupal_set_title on hook_view. I've done a little searching and found some references to nodeapi and some similar stuff with the cck module but not been able to deduce how exactly to do it.

Any ideas?

Thanks,

Jon

Changing a CCK Select fields default value

When adding a node based on a CCK type i want to change the default value in the select list based on a value in the current users profile.

Using hook_form_alter() this is easy for other fields, but the select field appears to ignore whatever #default_value i set.

Example, I have a list of states that are selectable in a CCK node form.
[field_state] => Array
(
[#tree] => 1
[key] => Array
(
[#type] => select
[#title] => State
[#default_value] => AL
[#multiple] =>
[#options] => Array
(
[1] => AK
[2] => AL
[3] => AR
[4] => AZ
[5] => CA
[6] => CO
[7] => CT
[8] => DE
[9] => FL
[10] => GA
[11] => HI
[12] => IA
[13] => ID
[14] => IL
[15] => IN
[16] => KS
[17] => KY
[18] => LA

Need help with Looping 2 dimensional Arrays

I have been working on a module for client, everything is going smoothly, but i am stuck with Looping 2 dimensional Arrays.

Pages

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