Automatic login to Drupal after external authentication (SSO?)

Hi,

I have an existing non-Drupal web app, with its own user repository and login process. I now need to deploy a Drupal site, for use by the same users, that will be automatically accessible to any users who have already logged-in to their original web app account.

The original web app provides a SOAP API, and some PHP includes which allow me to ask the main web app "is the current user logged in". This function will either return an array of the user details (username, real name, email etc) if the user is logged-in, or will redirect to the original web app login page otherwise.

I've been instructed to invoke the "is the current user logged in" function at the point that any page is requested from my Drupal app. Which hook should this call be placed in to ensure it is invoked for every page requested, before any content is sent back to the HTTP stream?

Drupal 6 function in Drupal 5

I'm a really big fan of the "Split summary at cursor"-function in drupal 6 dev. Is is possible to get is to work in Drupal 5? I tryied to use the theme_textarea in the HEAD API and including the js but it didnt work.

http://api.drupal.org/api/HEAD/function/theme_textarea

E-Mag - Online Maganize

Hi,

I am interested in making an online magazine website which will have articles of my friends about several topics.

I want to group the articles in both article category and magazine number.
I dont want to have a blog site but an online magazine website.

Is it possible ?
I think it is but the management part of the content makes me confused.

Any idea ?

One other thing is the serving the article content.
Is it possible to have 2 column article body with pictures and such ?

Thanks

$_SESSION or Drupal cache_set/cache_get?

I'm looking at multi-step forms with Drupal. I've had this working on Drupal 5, and am migrating my module to Drupal 6. I've noticed that core forms.inc now uses cache_set/cache_get for storing form information between requests, where it used to use $_SESSION. I also have need to store form information between requests, and actually need to get my data stored before the first form request (so I need to do it outside $form_state['storage']).

any Drupallers using CCNOW for their site?

Hi,

I'm just wondering if any other Drupallers are using ccnow as a payment gateway?

(This probably only makes sense to people already or planning to use ccnow.)

The reason I ask is that I'm migrating a site at the moment to Drupal and the only ecommerce gateway available for ccnow appears to be cubecart.

http://www.ccnow.com/partners.html

I've emailed the ccnow team to say that I would like to create a ccnow.module for Drupal.

How to have less DB queries

One of the best things about drupal is how modular it is, but this same great feature can also be its downfall. The more modules a user loads the more database queries, the more queries more drupal’s performance is affected. This is even more of a factor when your database is not running off the localhost.

Files system access is very fast. Why can’t we utilize the file system for some things to reduce drupal cores database queries?

Why cant we have a directory called files/drupal/

Then any tables that modules do not access directly and only access using core function can be moved to the file system.

There are 2 places I think this would be easy to do.

Variables and Cache.

To change variable_get() and variable_set() should be easy.

When it comes to cache tables I found this issue to be very interesting. http://drupal.org/node/45414
This never made into core and it ended up becoming a module. If we forget about the fastpath stuff and do as Dries suggested (cache.db.inc + cache.fs.inc) this could also be moved to the file system very easily.

One more place I think we could do this is with sessions. But the session table can be used directly by modules. So, another thing that can slow down queries is the size of the data returned. So why don’t we move just the session data to the file system.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 6.x