Blogtheme for Drupal 4.7

I've spent a while today trying to upgrade the Blog Theme module for Drupal to work with Drupal 4.7. Somehow I'm just not seeing the error. It is not throwing any errors so maybe I need to break it in order to track the variables more easily. Fixing Blog Theme is the last "must have" for upgrading this site to Drupal 4.7. A few more challenges remain for one more site.

Update: Persistence does pay. Attached below is a module for BlogTheme that seems to work with Drupal 4.7. The only other modification to the config is setting Taxonomy Theme to be called as a menu hook instead of init hook by changing taxonomy_theme_init () to taxonomy_theme_menu().

Update #2: This is odd. I'll have to work more tomorrow on what it means. If I put blog_theme.module into the modules directory it works fine. If it goes into the modules/blogtheme/blog_theme.module directory it doesn't work. It should but it doesn't.

AttachmentSize
blog_theme.module.txt2.34 KB
No votes yet

Comments

Feb
12
2006

Dude! I like -- have an idea...

I have no idea if this is related, but I had what sounds like a similar problem today with 4.7. The cause ended up being the disappearence of the <base href="yoursite.com/" /> tag that used to be in the head, but was removed for wahtever reason in 4.7. Check you're module's inclusion paths. if it uses JScript or CSS (which I imagine it does).

This may be a worthless idea, but it ended a 3 hour hairpulling session I went through today.

Feb
12
2006

Moving modules

See this link:
http://drupal.org/node/48025

You can probably fix the problem by running the following query in your database:
DELETE FROM system WHERE name = 'blog_theme';

You may have to reenable the module after you do this. An UPDATE query to set the filename would also work, but I've just been using the DELETE and reenable route.

Feb
12
2006

Thanks That solved it

by Joshua Brauer

In moving the database I didn't think to look and see that it already existed in the system table. Interestingly I did a manual UPDATE that set the file name but that didn't seem to work. The Delete and then turning the module on in admin did.

Sep
12
2006

A Little Fix

by ak

Hi, your module happens to be just the right thing I needed. But using the latest Drupal (4.7.3) sometimes I got a -not harmful-but-annoying MySQL error. Here is a little fix at blog_theme_menu():

case 'node':
if (!arg(1))
break;

It basically skipps calling node_load when a node ID is not specified.

Jan
25
2007

Download link doesn't work

The download for your copy of this module isn't working. Can you upload your module to the blogtheme issue tracker at drupal.org?

Jan
25
2007

download not working

Hi Josh,

I would like to grab your 4.7 version of this module to start playing with it, but the download link doesn't work. Any help?

Thanks in advance,

 

Jan
25
2007

Oops...

by Joshua Brauer

Sorry about that... One too many site moves and a folder was left behind. It should be available now.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Link to Amazon products with: [amazon product_id inline|full|thumbnail|datadescriptor]. Example: [amazon 1590597559 thumbnail] or [amazon 1590597559 author]. Details are on the Amazon module handbook page.
  • Twitter-style @usersnames are linked to their Twitter account pages.
  • Twitter-style #hashtags are linked to search.twitter.com.
  • Allowed HTML tags: <a> <b> <dd> <dl> <dt> <i> <li> <ol> <u> <ul><p> <img> <table> <tr> <td><strong><em><sup><div><fn><h1><h2><h3><h4><blockquote><img style="">
  • Use [fn]...[/fn] (or <fn>...</fn>) to insert automatically numbered footnotes.
  • You may insert videos with [video:URL]
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically. (Better URL filter.)
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options