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

path.module works, pathauto.module does not

Hi all...

I've just installed Drupal 4.7.3 on my local machine (SuSE Linux 10.1, Apache 2.2, MySQL 5.0.18, PHP 5 [PHP memory set to 64MB]), and I've added on the following modules:

cck; contemplate; image; imagefield; pathauto; similar; simplenews

I've created a bunch of CCK content types ("journal issue," "journal article," "author," etc.), all of which work fine. I enable the path module and that works fine too. I can manually change the path of any node I create.

handling logout for an SSO

We're using a SSO developed at UMich called CoSign (www.weblogin.org). We're working on integrating cosign w/ drupal. Currently, we're using the webserver_auth module to handle log in - cosign just sets $_SERVER[ 'REMOTE_USER' ] and creates some cookies, so webserver_auth is working fine.

We need to be able to handle logout tho, and since cosign logout is handled by a cgi, I pretty much just need to have a logout action that redirects to our logout cgi.

Sorry, I'm a complete noob and this is my first attempt at a drupal module. I'm trying this:

function cosign_user($op, &$edit, &$account, $category = NULL) {
    global $user;

    if( $op  == 'logout' ) {
        watchdog( 'cosign', "logout: $user->name" );
        cosign_logout();
    }
} // function cosign_user

function cosign_logout() {
    global $user;

    module_invoke_all('user', 'logout', NULL, $user);
    header('Location: https://' . $_SERVER[ 'SERVER_NAME' ] . '/cgi-bin/logout?'
        . 'https://' . $_SERVER[ 'SERVER_NAME' ] . '/drupal/' );

} // function cosign_logout

and it sooooo does not work. I get redirected to https://www.example.org/drupal/?q=logout (not surprising) and I get pages upon pages of my watchdog message.

There are other things this module will need to do eventually (require all editing to be done on the https side, display our login link, etc)... but I'm just trying to get logout working to start. I'd appreciate any suggestions.

Any modules that make personal blogs easier to organize?

Hey guys,

I'm using blogs on my site, but I wish there was some way that each personal blog could have it's own 'archive' block. That is, let's say I have a blog. When users look at my blog, it would be cool if there was a Calendar on the right that organized my blog posts by date. Is there anyway to do this?

Thanks,
Geoff

Position of Pagination in FlatForum

How i can change the position of pagination in FlatForum?

I need to place the pagination in footer and too in header of page. Which the best way to i make this?

Thanks,

Taxonomy? Categories? I'm losing my mind.

I am using Drupal 4.7. With 1000 modules.. and probably doing it completely wrong.

I think Im going a bit mental. Im addicted to Drupal. But I still have no idea what Im doing.

Anyways we've made it pretty far and I need figure this one out... It's the Holy Grail.

So... Ive looked far and wide for a straight answer... but to no avail..

Is there Anyway to Display Images in my TAXONOMY BLOCK?

It seems to skip all the code and go straight for the text...

Holy crap! Select Taxonomy terms as checkboxes and radio buttons!

Merlinofchaos, being the incredibly awesome chap that he is, hammered out this module that converts the difficult to use taxonomy term selection into radio buttons or checkboxes. This is an amazingly handy piece of code and really shakes up the submission procedure.

Awesome it is, there are ways it could be improved, things that require better coders than I - imagine if taxonomy parent terms had the same expansion and shrinking that sections of the page had.

Here's a screenshot of the module in action:
http://squidgystudios.com/drupal/current.jpg

And a proposed screenshot of the ideal:
http://squidgystudios.com/drupal/ideal.jpg

Specifically, if child nodes were automatically assigned a different div class based on their childhood, and perhaps level of childhood, and the expansion/contraction of parent terms. I'm throwing a 50$ bounty on this, if anyone can introduce those elements.

And finally, the module itself!

Place this in a file called test.module for best results.

<?php
function test_form_alter($form_id, &$form) {
if (isset($form['type']) && $form['type']['#value'] .'_node_form' == $form_id) {
if (is_array($form['taxonomy'])) {
foreach ($form['taxonomy'] as $vid => $taxonomy) {
if (is_numeric($vid)) {
if ($taxonomy['#multiple']) {
$form['taxonomy'][$vid]['#type'] = 'checkboxes';

Pages

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