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
Comment | File | Size | Author |
---|---|---|---|
#6 | Screen Shot 2013-03-21 at 10.17.01 PM.jpg | 40.36 KB | yupitsmabel |
Comments
Comment #1
medial CreditAttribution: medial commentedMaybe 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
Comment #2
jobnomade CreditAttribution: jobnomade commentedHey 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
Comment #3
caskraker CreditAttribution: caskraker commentedThe content type should be the std Blog type supplied by core, otherwise it doesn't use the bubble.
Hope this helps, kind regards,
Cas
Comment #4
Fulgrim CreditAttribution: Fulgrim commentedYou 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
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.
Comment #5
aurian CreditAttribution: aurian commentedThis 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?
Comment #6
yupitsmabel CreditAttribution: yupitsmabel commentedI'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
Comment #7
yupitsmabel CreditAttribution: yupitsmabel commentedI'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).
Comment #8
yupitsmabel CreditAttribution: yupitsmabel commentedOK 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; ?>>
Comment #9
mailfox CreditAttribution: mailfox commentedhow 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...