With blogtitle installed, if no profile field is specified at admin/settings/blogtitle, then the titles of users' blogs become empty, rather than the default "[user]'s blog".

The same thing happens if a profile field is specified, but a particular user doesn't specify a blog title in their profile. Again instead of the default "[user]'s blog", they get an empty blog title.

The problem is that blogtitle_get_blog_title(), in blogtitle.module, never uses its $default argument, always returning false instead. The attached patch corrects this problem.

Thanks,
Andrew.

Comments

remi’s picture

Status: Active » Patch (to be ported)

Thanks for patch, Andrew! I will merge it with the code and post a new release as soon as possible.

Andrew Schulman’s picture

OK. Might want to wait on the new release as I have another bug report + patch coming shortly.

remi’s picture

No problem. I'll wait.

ashtonium’s picture

Status: Patch (to be ported) » Reviewed & tested by the community

tested the patch, looks good. Please apply to 6.x-1.x-dev if you're waiting to roll a point release, thanks.

marcushenningsen’s picture

Thanks for the patch.

Andrew: I'm experiencing some problems when I apply all your patches. May I suggest a complete patch against the current version of the module. Or even better, a dev-version of the module with your patches (or at least some of them) committed.

I'm very eager to test and give feedback, but I'm finding it hard to know where to start.

Marcus

Andrew Schulman’s picture

Marcus, here's my unofficial -dev release, if you like. To make it I started with blogtitle-6.x-1.2, and applied the patches posted at the following issues, in order:

  1. #566416: blog title is empty if not specified
  2. #566610: blogtitle and realname are incompatible
  3. #610164: title isn't replaced in blog link in nodes

I did have to revise the last of those, because it apparently was created against a non-clean version of blogtitle. Sorry. I've posted the revised patch with that issue. That may be why you were having trouble, or it may be because the patches listed above have to be applied in the above order.

The other outstanding patch that I didn't apply here is astonium's in #609982: title isn't replaced in breadcrumbs. I didn't apply that one to this build because I haven't reviewed it and it seems that it may not be ready yet. You might be able to apply it to this unofficial build.

So, try it out, and report your results on the individual issues.
Andrew.

marcushenningsen’s picture

StatusFileSize
new32.16 KB

Thanks for this. I've tested your unofficial dev-release, and I'm experiencing some problems. I'll try to address them in the order of patches:

Blog title

The default blog title is not shown correctly. A user named 'Bo' has this title shown: <a href="/users/bo" title="Vis brugerprofil.">Bo</a>'s blog. Somehow the username is shown as a link to the user's account (but not rendered).

Blog link

The same as above happens with the links; the link for Bo's blog outputs &lt;a href=&quot;/users/bo&quot; title=&quot;Vis brugerprofil.&quot;&gt;Bo&lt;/a&gt;'s blog.

In addition to that the title turns up twice in the links, one is rendered as a link, the other not. I'v attached a screenshot to show this.

Realname

Sorry, not using realname right now, so I didn't test this part.

Breadcrumb

I also tested this patch separately: Works only for non-defealt, if default nothing is outputted.

Though I don't think it relates to this patch, there's also an inconsistency of breadcrumb naming: When I'm viewing a blog post the breadcrumb shows my the corresponding blog name (e.g. Bo's blog) but when I'm viewing the landing page for the blog ( i.e. blog/[uid] ) the breadcrumb outputs "My blog". I'm not logged in as Bo. Is this behaviour to be changed?

Marcus

Andrew Schulman’s picture

StatusFileSize
new8.52 KB

The default blog title is not shown correctly. A user named 'Bo' has this title shown: <a href="/users/bo" title="Vis brugerprofil.">Bo</a>'s blog.

Whoops. OK, thanks for finding that. I've posted a revised patch at #566610: blogtitle and realname are incompatible that fixes that error.

remi: the latest patch at #566610 also fixes this bug, so the patch in my original report here is no longer needed if you apply that one.

Here's a revised unofficial -dev tarball. It applies the latest patches from #566610: blogtitle and realname are incompatible and #610164: title isn't replaced in blog link in nodes, and fixes this bug as well.

marcushenningsen’s picture

StatusFileSize
new40.23 KB

Looks good, thanks for this. The titles and the links are good.

Still I have a couple of issues.

The link shows the blog title correctly, but the module also outputs the blog title as a term, even though there is no vocubulary or term existing with these names. Check the screenshot. The problem is isolated to this module.

What's your status on the breadcrumb patch, were you going to revise that as well? Whenever you feel it's ready, I'd love to test that as well.

Marcus

Andrew Schulman’s picture

... the module also outputs the blog title as a term, even though there is no vocubulary or term existing with these names.

Correct me if I'm wrong, but that sounds like a separate issue from this one. If so you should submit a new issue report for it.

What's your status on the breadcrumb patch, were you going to revise that as well? Whenever you feel it's ready, I'd love to test that as well.

The patch I originally submitted with that report was wrong. astonium submitted another patch using a different approach, but I haven't had time to look at or test it yet.

Let's move any further discussion of that issue over to its issue report.

marcushenningsen’s picture

Correct me if I'm wrong, but that sounds like a separate issue from this one.

I'm not sure, it seems isolated to this module, if I remove the module, the problem goes away. Somehow the blog title gets printed both in the node's links and node's terms.

Let's move any further discussion of that issue over to its issue report.

I agree. I'll test and report back.

Andrew Schulman’s picture

Same module, but a different issue. This issue concerns an empty blog title. You should open a new issue report about that problem.

marcushenningsen’s picture

You're right, however, the problem is that this issue only applies to your unofficial dev-release, so opening a new wouldn't really be fair.

Andrew Schulman’s picture

I see. Well in that case, I think one of us is going to have to figure out which of the two patches I applied-- from #566610 or #610164-- is the cause of the problem. I'm guessing it's the 2nd. I'll look at it when I can.

marcushenningsen’s picture

You're right, it's #610164. I'll try to look into this right away and report back.

Andrew Schulman’s picture

Good, thanks. Please do that as a follow-up to #610164, since this whole discussion is OT for this bug.

Andrew Schulman’s picture

StatusFileSize
new8.52 KB

Here's a revised unofficial -dev build, starting from blogtitle-6.x-1.2 and incorporating the following patches:

  1. blogtitle+realname-1_3.patch from #566610: blogtitle and realname are incompatible
  2. blogtitle_node_bottom_links_v3.patch from #610164: title isn't replaced in blog link in nodes
marcushenningsen’s picture

I've installed the above unofficial version, and everything seems to work. I recommend that it gets committed and that I new official version is released. What's the maintainer's opinion?

Marcus

remi’s picture

Hi everyone,

First of all, thank you to everyone who helped fixed the bugs in this module and review the patches. I really appreciate this. I've recently moved in Japan and just moved in my new apartment this week, so I haven't got time to maintain my Drupal projects recently. Hopefully, I'll be able to commit a new version of the module this month. Thank you for your patience!

Rémi

remi’s picture

Status: Reviewed & tested by the community » Fixed

Thank you for your work! The patch files have been committed to version 1.3.

remi’s picture

Status: Fixed » Closed (fixed)