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

PHP Include behavior / execute PHP code from database

guys,

im working on a module that needs execute a php code stored in database, like:

<?
$variable1 = 1;
?>

i figured a way: print the code as a page something like

function foo () {
print db_fetch_object(db_query('SELECT ...'))->code;
}

and then 'include' this 'file' in my code

Flash Video with Video Module

I do wonder if there is a way to display a player with flash video contend? Dreamweaver for example creates a Java script and uses a swf player skin to uver lay flash video. Would something like this be possible in the Video Module? My goal is to have hundreds of small clips but I dont want to go into flash add a player skin and export a video with player, there must be a easier solution... any info on this??

Thanks so much
Thomas

New module: lexicon/dictionary

This module allows lexicons/dictionaries import and search. Automatic installer, import and customization interface is provided.

Project page, demo and enabled block at http://para.ro/project/lexicon.

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

Pages

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