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

Help. Add image to upcoming events????

I've modified some code for upcoming events. But now I need to add a small image in before each event title. Does anyone know how I can do that? I keep getting errors.

function theme_event_upcoming_item($node) {
return l($node->title, "node/$node->nid", array('title' => $node->title)). ''. _event_date('F j, Y', $node->event_start) . '
' . _event_date('g:i a', $node->event_start) . '';
}

FCKEditor 2.3 & Drupal 4.7

I have installed FCKEditor 2.3 in a Drupal 4.7 but doesn´t work, I do not know why, versions, installation, etc. It's recognized in Admin menu, and whe I clicked in fckeditor-settings option a blank new page appears in my browser ...

Any ideas ? Thanks in advance !!

Automatic taxonomy creation

Is it possible to write a module that would automatically tag a newly created node with the username and the node type? If so, could someone point me to the relevant hooks? I don't know how useful it would be to do this but I want to try it out as an experiment in conjunction with taxonomy access.

groups: og or view?

So im trying to create a groups page similiar to Drupals. I have both the OG (organic groups) and Views modules installed. Thing is, i dont know if i can add filters and fields to the ?q=og page like i can with the ?q=view/groups page. I have the ?q=view/groups page looking just the way i want it to, but the problem is that once you click on the group title and your at the individual group page, the bread crumbs link if clicked on "groups" will take you back to the ?q=og page which is not setup the way i wanted.

User list/search module by role or keyword

I put together this module to display a list of users. You can search by role or by keyword which looks at username and mail. It could probably use some adjustments like:

a) separating into pages instead of one big list and
b) handling unclean URLs in the form post

Any suggestions or modifications welcome, but for our purposes it works and maybe someone else could use it too:


<?php
// $Id: userlist.module,v 1.1 2006-06-15 alynner

/**
* @file
* List or search the directory of users by role or keyword.
*/

/**
* Implementation of hook_help().
*/
function userlist_help($section) {
switch ($section) {
case 'admin/modules#description':
return t('List or search the directory of users.');
}
}

/**
* Implementation of hook_node_name().
*/
function userlist_node_name($node) {
return t('User List');
}

/**
* Implementation of hook_perm().
*/
function userlist_perm() {
return array('access user list');
}

/**
* Implementation of hook_access().
*/
function userlist_access($op, $node) {
global $user;

if ($op == 'access') {
return user_access('access user list');
}

}

function userlist_menu($may_cache) {
$items = array();

if ($may_cache) {
$items[] = array('path' => 'admin/userlist',
'title' => t("userlist"),
'callback' => "userlist_page",
'access' => user_access("access user list"),
'type' => MENU_MODIFIABLE_BY_ADMIN );
}

return $items;
}
/**
function userlist_page(){

if (user_access("access user list")) {

$output.= '';
print theme("page", $output);

}

}
*/
/**
* Implementation of hook_page();
*/
function userlist_page() {

//
// filter form
//
$output .= '
General Search

Role(s):

All';
$select = db_query_range('SELECT rid, name FROM role ',0,1000);
while ($roles = db_fetch_object($select)){
$output .= 'rid.'">'.$roles->name.'';
}
$output .= '

Please help! noob's and RSS: a dangerous combo

First, thanks for taking the time out to look at this situation, ecspcecially since you'll probably just roll your eyes and laugh at how easy this is, but I just can't seem to get it. What I'm trying to do is generate an RSS feed from my site, but the problem is that with the custom modules, nothing comes out. No title, no body, no links, just an empty space with the user who submitted the item, the date of submission, and a link to the full item. Did I skip a crucial step in my module? A missing hook? I haven't been able to find anything dealing with this problem.

Pages

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