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

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.

Analytics, like phpmyvisites

I am looking at increasing our analytical abilities on our Drupal site. I've downloaded Xstatistic and I see the google analytics module (but who knows when I'll get my invite to GA? :-)

I also spent some time today looking at phpmyvisites. My french isn't great, but I can read code. This seems like a solid app, and I am thinking of porting it to drupal.

As I see it, there are several ways to do this:

og breadcrumbs problem: the breadcrumb uses the group that was created first

I have been testing the breadcrumb trail with og. If a node is shown to several groups, apparently, the breadcrumb trail uses the name of the group that was CREATED first.

For example, you create 4 groups:
New York
San Francisco
LA
Boston.

You made New York first, then SF, then LA.

If you make a node and check it is viewable by SF and Boston, then the breadcrumb trail will say

Home -- Groups -- SF.

Problems displaying a .swf graph

This is my first drupal module and I am having a little bit of trouble getting a graph to display properly (I'm using http://www.maani.us/charts/index.php if your interested)

Here is what it SHOULD look like, using just regular php http://test.spiffocracy.com/old/index.php
Here is what id DOES look like in drupal http://test.spiffocracy.com/?q=spiff

Pages

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