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

access $_SESSION from hook_user

I'm trying to add a few values to the $_SESSION array in hook_user (login), but
I dont have access to $_SESSION and dont know why ...

The following code

function test_user($op, &$edit, &$user, $category = NULL) {
  switch ($op) {
  case 'login':
    echo session_id();
    var_dump($_SESSION);
    break;
  }
}

returns d0c9f0a45960d0300672646c4f0bd873 array(0) { }.

RSS Feeds published as a Story so they can be commented on?

Hey,

Im wondering if there is some way of fetching news story's by RSS and putting the intro/link to the main article on my website -- (preferably published as something like a story) but then allowing user comments below them.

I've taken a look at the RSS Comment module, but I don't really like the way that or the aggregator publish comments/articles -- quite differently from the rest of the drupal site.

Anyone know of any other modules of a method to achieve something like this? :)

Cheers

Sizing blocks - quick question

Where do I go to resize the blocks. I noticed that while I was developing (switching between having story and weblink nodes) the size of the center block would expand or retract. I want to use the Weblink mode, and for some time the center block was a smaller size.

I went in and deleted some old content and now, the center block is large again.

This is only for creating a usable website for my users. With a big center block, it gets dificult to read the content.

Any ideas on how to make the center block small again?

Explanation of Nid|Vid Needed

I modifed about 200 articles (custom module based on story nodes) to be Books today. I ended up with nodes with mis-matched vids. Because Books seem to be "revisions aware" and what I was porting from didn't care - the new pages were not loading data correctly.

Eventually I figured out that the Nid/Vids were not paired corrrectly between the node table and node_revisions table. Matching these did the trick - although I ended up with about 20 that had duplicate keys. Will manually enter those as new nids.

want html area in body of create content

hello everybody,
I am new to drupal and by selecting or deselecting i lose my html area in create content page if have selected html area in module but it is not comming if any one have idea please help

i18n can not get url variables behind "?"

When I use i18n with flexinode's tables.
I found i18n can't get "?from=xx" from url.

I put the code below into file i18n.inc function i18n_l, befor "return":

  // get querys from $_GET
  $querys=array();
  foreach($_GET as $key => $val)
  {
    if($key!='q')$querys[]= $key.'='.$val ;
  }
  if($querys) $query=implode('&',$querys);

it works.

Pages

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