Would be great to have Statistics (core) support so that the views-count would be imported too and assigned to each posts (if module enabled).
A bit sad to see all Views are set to 0 after import... :P
It shouldn't be too difficult as the views is stored in phpbb_topics.topic_views..so it basically only has to be moved to the right Drupal table...
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 472422.patch | 1008 bytes | JeremyFrench |
| #6 | phbb2drupal_view_counts.patch | 2.93 KB | JeremyFrench |
Comments
Comment #1
NeoID commentedNo interest in this?
Comment #2
naheemsays commentedUnfortunately, no. If put into the module, it would be as a separate step and that would make the module more complicated.
All that would need to be done is for each node, get the number of views for that phpbb post, then insert it into drupal, but this would need to be done after all the other stuff has been imported, so a sepaarate step I think.
Leaving it open as you/others may disagree.
Comment #3
NeoID commentedSo it could not be integrated into the actual import, right after a phpbb topic has been moved into the Drupal db?
As the module already moves information for the topic like who created it, text and so.. I didn't think it should be too difficult to include the views count table...but I may be wrong...
Comment #4
Fogg commentedUp!!
I would be interessted in this as well!
Thanks.
Comment #5
Fogg commentedFound out that if everything is in one database it is a simple query ;)
Here it is:
May be that is helpfull for others as well :)
Comment #6
JeremyFrench commentedMigrate 2.4 makes this much easier. Patch attached.
Comment #7
JeremyFrench commentedA cleaner patch which works for me.
Comment #8
g10 commented#7 looks good
maybe add a check if the statistics module is enabled?
Comment #9
JeremyFrench commentedI think that the import framework does that for you but I will test later to make sure there are no errors.
Comment #10
JeremyFrench commentedHave tested with statistics on and off. Seems to work for me. Committed as http://drupalcode.org/project/phpbb2drupal.git/commitdiff/bd48bb6