Hi, nice looking theme.
I´ve been reading (the guide & here) and searching for one issue i have had for two days now. Everything seems to be ok except that the nice "date bubble" postdate-bg.png doesn´t show up at all, not even the date for the blog submission on the "bubble place". I did see someone else hade same issue posted in your own QA but there wasn´t any respons on that.

Can´t find any place to enable it either. Ivé tried to add a new date format d M and enabled that as short version but still no luck. Compared your online page sourcecode (footer submitted) with my and it differs, my shows something about "sioc" and so on.

Hope to get some advice, i´m totally stuck... Thanks.

/Mikey

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

medial’s picture

Maybe should be moved to bug report & code instead of "Support request - documentation". Anyone has any idea about why the date baloon doesn´t show up?

Regards Mikey

jobnomade’s picture

Hey Mikey,

please share to the community an URL or screenshot so we can inspect the HTML mark-up and CSS.
If you found in the Q&A section similar issues, please share the URL, too.

Cheers,
Jan

caskraker’s picture

The content type should be the std Blog type supplied by core, otherwise it doesn't use the bubble.
Hope this helps, kind regards,
Cas

Fulgrim’s picture

You can use the nice bubble to all content types you like. For example you want to add the bubbles to a content type called "page" add this code to preprocess_functions.inc

function tb_blog_preprocess_node(&$vars) {
  if ($vars['type'] == 'page') {
    $vars['page_created_day'] = date('d', $vars['created']);
    $vars['page_created_month'] = date('M', $vars['created']);
  }
}

Create a file called "node--page.tpl.php" and then you have to copy the content from node--blog.tpl.php to this file. Change the line

'!datetime' => '<span class="submitted-date"><span class="date">' . $blog_created_day . '</span><span class="month">' . $blog_created_month . '</span></span>',

to

'!datetime' => '<span class="submitted-date"><span class="date">' . $page_created_day . '</span><span class="month">' . $page_created_month . '</span></span>',

This way i did it on my blog.

aurian’s picture

This fix does not work on my blog: www.webnrj.com . I tried to add a node--article.tpl.php and a node--page.tpl.php file and I did the according changes on preprocess_functions.inc . But I still can't figure these pretty bubbles out.
Can someone have a look?

yupitsmabel’s picture

I'm also having this issue!

I've tried what fulgrim has suggested but to no avail. I do use the content type that is already provided "Article".

Please help! totally stuck too

yupitsmabel’s picture

I've tweaked it a bit. I now get the pink bubble but it's blank inside (no date!)

and then i get these error message
Notice: Undefined variable: blog_created_day in include() (line 99 of /Applications/MAMP/htdocs/drupal/sites/all/themes/tb_blog/tpl/node--article.tpl.php).
Notice: Undefined variable: blog_created_month in include() (line 99 of /Applications/MAMP/htdocs/drupal/sites/all/themes/tb_blog/tpl/node--article.tpl.php).

yupitsmabel’s picture

OK FIXED IT!!

the key is to change this line

<div id="article-<?php print $node->nid; ?>" class="article node-article <?php print $classes; ?> clearfix"<?php print $attributes; ?>>

mailfox’s picture

how to translate the month 'M' on the Russian here?

in preprocess_functions.inc
function tb_blog_preprocess_node(&$vars) {
if ($vars['type'] == 'blog') {
$vars['blog_created_day'] = date('d', $vars['created']);
$vars['blog_created_month'] = date('M', $vars['created']);
}
}
try this
setlocale(LC_ALL,'ru_RU.utf8');

no effects...