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

Help in adding data to forward.module

I installed forward.module for drupal 4.63 and it's working fine, but it would really be great if the email that is sent could include the node/page title and maybe even a teaser/excerpt instead of just the url. I've searched for possible solutions, but can't find any previous discussions on it. I'm guessing that I need to get data based on the $nid and print it, but can't figure out how to do it. Can anyone help? Thanks.

Stock Quotes Module

I am using the 4.6 releas of the Stock Quote Module. Obviously, it allowes individual users (if so configured) to input their own stock portfolio. What I would like to do is have the administrator configure a "stock portfolio" that displays for all users in a block. Has this been done or any way do do this?

Thanks

Events only for registered users -> control access to content module

I probably put this question in the wrong place.

Content on my site is for registered users. The Events module still allows access no matter what I do. I don't see Events show up under Access Control. Is there a way to close off Events for non-registered users?

How do I translate access permissions?

I developed my first module and translated it (in french). But I note that the access permission do not appear in the POT file, and thus they are not translated in the access control administration page. How do I translate them?
I used the same syntax as for user.module:

Dynamic clubs module - hiding nodes from search (by node type)

I'm working on a club module with the following features:

Allow authorised users to:

- create clubs
- join clubs
- leave clubs
- view club content only if they are a member of the club
- post content to clubs only if they are a member of the club

Progress so far:

club.module is based on a clone of forum.module.

new content type: 'club' - nodes posted via the club are tagged as type 'club'.
new vocabulary 'club'
clubs are taxonomy terms with vid = 'club'
nodes posted to clubs are tagged with type = 'club'.
new table {club} (like {forum} and {club_user} which gives membership level of club.
users can create, join and leave clubs.

Add small change to tracker.module and comment.module to hide nodes of type 'club' (not happy with this as it's too specific - would like a more generalised solution). Also need to change ... umm ... node.module I think to exclude 'club'-type nodes from "popular content" block.

I'm having problems working out how to disable searches of 'club' nodes for non-club members.

Ideas I've had to do this:

1) Exclude clubs from the index:

Hack search to exclude 'club'-type nodes when indexing. Nasty.

Add a club_cron() function to post-delete search terms pointing to 'club'-type nodes. Problem is that can't control the order that modules hook_cron() is called, and club_cron would need to run last, so this would need a hack to module.inc:module_list(). Nasty.

Show/hide content depending on the url of the page that visitor came from

Hi,

I have an idea for the module but since I don't know PHP, it make a proposal here ;) Maybe someone finds it interesting...

Many people come from search engines clicking on search results. And in the URLs of the pages with search results we can often see the keywords people look for.

It could be interesting to have a module that looks for this keywords in the URLs of pages the visitor came from, and displays some content (a node or a block) to the visitor depending on the found keywords.

Pages

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