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

taxonomy/term/17/flickrpic, Is it possible to extend the taxonomy pages

I searched around the site for about an hour or more, I lost count. I did find some interesting things that will help my site but not what I am looking for right now. With that said this is what I am trying to do and am hoping someone can point me in the right direction because my first couple of tries have not worked.

Block configure problems (please help!!)

Attention you hotshot drupal programmers, seize the day and help a newbie who is desperately in need of some advice. I have created a module who's sole purpose is to serve as a kind of block container. Essentially, it queries several database tables that hold info for user created nodes. The problem is as follows, I only want this block to show on the "front page", but whenever I select the configure option for it I get a blank page and my error log fills up with the following:

Message array_shift(): The argument should be an array in /home/httpd/html/drupal/includes/form.inc on line 469.
Severity error

My module looks like this:

<?php

/**
* @file
* Enables users to submit Rick and Fled stories
*/

/**
* Implementation of hook_help().
*/
function true_help($section) {
switch ($section) {
case 'admin/help#true':
$output = '

'. t('The true module. ') .'

';
$output .= '

'. t('The true module.') .'

';
$output .= t('

', array('%node-add-true' => url('node/add/true'), '%admin-settings-content-types-true' => url('admin/settings/content-types/true')));

Organic Groups 4.7.2 with postgresql errors

I am running Drupal 4.7.2 with postgresql 8.0.3 after installing organic groups the install failed after enabling it in modules. I then looked at the og.install and did not see any switch statement for postgresql. I copied the sql regarding the tables and ran it as the db owner from psql.

Please see copies below:

CREATE TABLE og (
nid int NOT NULL,
selective int NOT NULL default '0',
description varchar(255) NULL,
image varchar(255) NULL,
theme varchar(255) NULL,
website varchar(255) NULL,
register int(1) NOT NULL default 0,
directory int(1) NOT NULL default 0,
language varchar(12) NOT NULL default '',
PRIMARY KEY (nid)
)

CREATE TABLE og_uid (
nid int NOT NULL,
og_role int NOT NULL DEFAULT 0,
is_active int NOT NULL DEFAULT 0,
is_admin int NOT NULL DEFAULT 0,
uid int( NOT NULL,
mail_type int NULL,
PRIMARY KEY (nid, uid)
)

This seem to have cured the problem but what worries me is the following in og.install :

$sql = "ALTER TABLE {node_access} DROP PRIMARY KEY, ADD INDEX `nid_gid_realm` ( `nid` , `gid` , `realm`)";
db_query($sql);

$sql = "ALTER TABLE {node_access} CHANGE grant_view grant_view int(11) unsigned NOT NULL default '0'";
db_query($sql);

$sql = "UPDATE {system} SET status = 1 WHERE name = 'og_basic'";

NEWS MODULE???

Can anyone help me with any existing module that has some functionaility of posting news and events / announcements???

flatforum problem

hey. I just tried to install the flatforum module but I got an error when i view a page:

Fatal error: Call to undefined function: phptemplate_wrap_links() in /home/sittingo/public_html/themes/friendselectric/page.tpl.php on line 30

does anyone know what i need to do to fix this problem? thanks!

extend existing nodetype and archive module

i've added the function function story_load($node) { ... to story.module, so i can add values to node from my table. it works fine using node module, but when i switch to archive.module (selecting archive date from the calendar http://example/archive)- , it ignores it. do i miss something in the concept?

thanks in advance..

/h

Pages

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