HOWTO: add data to sessions.session record?

I'm developing a simple e-commerce module for Drupal. I've been thinking about using the standard e-commerce project, but it is way too elaborate for my needs. Besides, doing it myself is a nice way to get to know the inner workings of Drupal.

My problem: when a user adds a product to the cart, I obviously want to store this somewhere. The Drupal e-commerce project uses a database table (ec_cart) for this, but looking at the sessions table, I see the following serialized data in the session-column:


form|a:6:{s:32:"6dc59b09841cbf352fcb5669e74d3e88";a:2:{s:9:"timestamp";i:1224167714;s:4:"args";a:1:{i:0;s:14:
"system_modules";}}s:32:"176eb31a60a35c8d9a87f333de3c1775";a:2:{s:9:"timestamp";i:1224168124;s:4:"args";a:1
:{i:0;s:14:"system_modules";}}s:32:"2ae6390e331141ad4ca1aa2ef86b6977";a:2:{s:9:"timestamp";i:1224168181;s:4
:"args";a:1:{i:0;s:14:"system_modules";}}s:32:"ee2b99e2873fa5d91c2b32430b8129c5";a:2:{s:9:"timestamp";i:1224
168271;s:4:"args";a:1:{i:0;s:14:"system_modules";}}s:32:"825fef6cafc93f08b85b6953e6ed9c77";a:2:{s:9:"timestam
p";i:1224168831;s:4:"args";a:3:{i:0;s:14:"tax_admin_form";i:1;i:0;i:2;a:5:{s:5:"realm";s:7:"country";s:2:"op";s:4:"N
ext";s:13:"form_build_id";s:32:"cec0efe486aa3ea46facda1753c4d843";s:10:"form_token";s:32:"5c9909272a072ad443

Broken CSS from Unchecking the Logo

Hey All,

I'm having the following issue with my CSS.

1) I went into Administer >> Site Building >> Themes >> Garland >> Clicked "configure" next to garland, which is set as my default theme (and yes, it's enabled)

2) About Halfway down the page are a bunch of check boxes under "Toggle Display"

3) I unchecked "Logo." The logo that was selected was a custom logo.

4) I clicked "Save Configuration"

The page then saved, but rendered a variety of errors and the style sheet that previously styled the site was no longer working. It appears that the blue marine theme is styling part of it and the garland theme is styling part of it.

The errors that showed up on the page were as follows:

* warning: mkdir() [function.mkdir]: Permission denied public_html/modules/color/color.module on line 235.
* warning: copy(files/color/garland-768c3586/menu-collapsed.gif) [function.copy]: failed to open stream: No such file or directory public_html/modules/color/color.module on line 252.
* warning: copy(files/color/garland-768c3586/menu-expanded.gif) [function.copy]: failed to open stream: No such file or directory public_html/modules/color/color.module on line 252.
* warning: copy(files/color/garland-768c3586/menu-leaf.gif) [function.copy]: failed to open stream: No such file or directory public_html/modules/color/color.module on line 252.

Convergence

Hi,

Blog Meeting Needs?

I have been using Drupal for quite a while as a CMS and I love it.

I've recently come up with an idea for a new forum/blogging site-- and I am not too familiar with how the blog works. I will be doing studies, but I would like to know everyone's thoughts on the blog.

DHTML Menus: Prefixed menu name with DHTML under Blocks section of Site buiding

Does any one know why that after I installed the DHTML Menus module and i can't find the the additional menu option under Blocks section of Site Building under the Disabled items like DHTML: Navigation, DHTML:Primary links, DHTML: Secondary links? Could you please tell me what did i do wrong? Or what do I need to do to see these option under the Disabled section of BLOCKS Section of Site Building? Thank you.

how to display user status on profile page?

Hi
I'm interested how to make user status ("active", or "blocked"), appears on the user page. I want make a hook into a profile.module.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 4.5.x or older