Closed (fixed)
Project:
Blog Information
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 May 2008 at 20:52 UTC
Updated:
19 Sep 2009 at 16:12 UTC
Jump to comment: Most recent file
Comments
Comment #1
gregglesYes, but this would need to be done in the Blog Information module itself.
To the Blog Information maintainer or whomever writes this code - let me know if you need any help understanding what to do for this.
Comment #2
kbalderson commentedthanks
Comment #3
vikingew commentedWill look at this in a while as I want this myself, but please don't expect any major improvement on this module before the D7 version. That's what I will be planing ahead for, but will backport if easy enough. Of course I will be open for patches any day as long as they don't carry major side effects.
Comment #4
kbalderson commentedI implemented the token hooks and they seem to work, at least for me.
I've attached the revamped .module file as a .txt.
The only changes made are at the bottom of the file.
Like i said, it works for me, i didn't get into too much detail though, so maybe it could be fixed up for someone else's needs.
Comment #5
kbalderson commentedComment #6
vikingew commentedOk thanks, I will check out the D5 branch and look at it. But before I put this in officially, if I do it, I want to see how this transfer to D6 and D7
Comment #7
vikingew commentedOk it looked simple and easy to implement so comitted and 2.5RC2 released, and this will soon go into 6.x-1.x-dev as well
Comment #8
kbalderson commented@yettyn
I think it should work for D6 also, but i'll look into that further.
as for D7, there is not a -dev release of the tokens module available, so we can't test anything yet.
Comment #9
vikingew commented@orbface9
Yes I am testing it in D6 right now, just wonder is there any special reason (I don't see) you include 'description' and 'format' in the db call
?
As for D7 yes it has to wait.
Comment #10
vikingew commentedCommitted to the Drupal-6--1 branch and will soon show up in the dev release. The packager only run once every 12 hour for dev so have some patience ;-)
Comment #11
kbalderson commentedThere wasn't any reason to select the description and format, i just copied and pasted the sql query from a different part of the module. Here's the updated code.
Comment #12
kbalderson commented@yettyn
I got to thinking. Either the bloginfo.info file needs to show the token module as a dependency, or we should add some filtering to the above code.
This code is tested and working in D5 and D6, but adding the dependency would probably be easier and more logical.
Comment #13
vikingew commentedSorry been ill for a few days...
good point, I am not sure we are having a dependency situation here though. That would mean the token module would provide a functionality essential for bloginfo to function and I don't think it's the case, not yet at least. I could go for the above code in testing for a while to make sure it doesn't impose any problems and then we will see for D7 if we make token a dependency or not.
Bottom line here again is that I don't want to plaw in a bunch of new functionality in D5 & D6 that people start to rely on but may cause problem in the upgrade path to D7. Behind this is a discussion going on if blog module should be in core or not and although it currently lean at it staying I have a feeling last word isn't said yet and there might be fundamental changes. So until D7 gone into freeze I want o play cautious about what to add.
Another thing, not specificly related, when an issue has been set to fixed and you feel a need it's somehow not or want to continue the discussion, please either reopen the issue or open a new one (possibly with a refer to the related issue). In most cases it's better to open a new issue, unless something really is wrong with the fix. This way the issue system comes to its most effective use and will make things easier and clearer for all of us.
Comment #14
kbalderson commentedComment #15
gregglesLooks like this was committed - http://drupal.org/cvs?commit=148705 thanks!