Comments

mariano.barcia’s picture

same problem here, with the latest versions

ofercorn’s picture

Problem is located in advanced_blog.module token implementation.
It duplicates the same token for two different purposes.
Replace one token as follows:

Use:

  if ($type == 'user') {
    $user = $object;
    $results = db_query("SELECT title, description, format FROM {advanced_blog} WHERE uid = %d", $user->uid);
    $advanced_blog = db_fetch_object($results);
    $tokens['user-blog-title'] = $advanced_blog->title;
  }

Instead original

  if ($type == 'user') {
    $user = $object;
    $results = db_query("SELECT title, description, format FROM {advanced_blog} WHERE uid = %d", $user->uid);
    $advanced_blog = db_fetch_object($results);
    $tokens['blog-title'] = $advanced_blog->title;
  }

and use

  if ($type == 'user' || $type == 'all') {
    $tokens['user']['user-blog-title'] = t('User\'s Blog Title from advanced_blog module.');
  }

instead of original

  if ($type == 'user' || $type == 'all') {
    $tokens['user']['blog-title'] = t('Blog Title from advanced_blog module.');
  }

OTH: code has numerous other issues :-(

dries arnolds’s picture

Same issue here...

browlands’s picture

ditto, +1

svendecabooter’s picture

Assigned: weynhamz » svendecabooter
Status: Active » Fixed

I have update the token implementation, taking ofercorn's code snippet into account.
Please test if the latest HEAD version of the module fixes the reported problems.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.