Is there any plans of porting this module to Drupal 7? Most, if not all, of the improvements it offers D7 lacks so it would be very useful to have.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sw3b’s picture

Subscribe.

Is there any update on this module to go for Drupal 7 ????

harper1983’s picture

subscribe

barryorourke’s picture

subscribe

bionitech’s picture

subscribe

drupal a11y’s picture

subscribe

borazslo’s picture

subscribe

molave’s picture

Subscribe.

davidk2’s picture

+1

jeffwidman’s picture

subscribe

seth.vincent’s picture

subscribe

dankoB’s picture

subscribe

Tim Jones Toronto’s picture

Any plans for this?

xatu’s picture

subscribe

Dxxxs’s picture

+1

Anonym’s picture

subscribe

carlos.macao’s picture

Subscribe

haggster’s picture

sub

MrHaroldA’s picture

Sub!

CidL’s picture

+1

sw3b’s picture

Title: Drupal 7 version » Port Statistics Advanced Settings to D7

Rename to be more easy to read !

drbeaker’s picture

+1

efarseer’s picture

subscribe

roseba’s picture

subscribe

jzornig’s picture

subscribe

thomas1977’s picture

Any news on this one?

ktleow’s picture

Looking forward for this module implementation in D7.

Alan D.’s picture

Dave you have way too many modules! Do you want a hand porting this?

Here is a completely untested module that was created using the coder module upgrade path.

Only changes after this was to remove:

//drupal_bootstrap(DRUPAL_BOOTSTRAP_PATH);

and to update the delete query (only 50/50 on this - totally untested)

  if (_statistics_advanced_ignore('accesslog')) {
    $db_or = db_or();
    $db_or->condition(db_and()->condition('sid', session_id())->condition('uid', 0));
    $db_or->condition(db_and()->condition('uid', $user->uid)->condition('uid', 0, '>'));
    db_delete('accesslog')->condition($db_or)->execute();
  }
Alan D.’s picture

FileSize
14.82 KB
Alan D.’s picture

Nope. The automatically port version is totally bung. Bootstrap appears to have changed, there are a few basic query fixes to resolve and sadly I have no time to investigate.

franzkewd’s picture

Any progress on this?

Jessica A’s picture

subscribing

Rafal Lukawiecki’s picture

Subscribe - it is a pity that the built-in node view counter is so basic... At least excluding admin etc from the numbers, and overall better control would be useful in D7.

kharbat’s picture

hi there, i'm working on a drupal 7 version of this module.. would you consider co-maintainer ?

Dr.Eetn’s picture

subscribing

jzornig’s picture

I was also after this functionality on D7, I had used a similar module Statistics Filter in D6. When searching for a D7 solution, I found Decounter module and they did have a D7 port, since withdrawn, but with some functions missing. I patched this code, see http://drupal.org/node/1451470#comment-5641656 , to get what I was after in going in D7. I'm happy for anyone to merge that code in with Statistics Advanced Settings.

b.one’s picture

++

Frank Ralf’s picture

There's a Drupal 7 port of the Statistics Filtering module in the making: #1026840: Drupal 7 port?

See also the suggestion at #305764: Merge with Statistics Advanced module?.

Frank Ralf’s picture

Status: Active » Needs review
FileSize
8.91 KB

Here's a very first stab using Coder for manually upgrading the module. It should install ok and the settings dialog is also available.

Haven't done any testing yet. Also haven't looked at the code from #27 and #28 yet.

Alauddin’s picture

Hi,

Getting the following error with a fresh install of statistics_advanced module port from #38

Warning: htmlspecialchars() expects parameter 1 to be string, array given in check_plain() (line 1572 of /public_html/includes/bootstrap.inc).
DatabaseSchemaObjectDoesNotExistException: Cannot add index accesslog to table : table doesn't exist. in DatabaseSchema_mysql->addIndex() (line 429 of /public_html/includes/database/mysql/schema.inc).

Alauddin’s picture

Disabling the above #38 and trying to uninstall gives the following error

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'databasename.Array' doesn't exist: SHOW INDEX FROM {Array} WHERE key_name = 'accesslog'; Array ( ) in db_drop_index() (line 2924 of /public_html/includes/database/database.inc).

RFMP’s picture

subscribe

Frank Ralf’s picture

Thanks for testing! The database queries still need some tweaking as someone mentioned above ;-)

kay.beissert’s picture

I need Statistics Advanced for my drupal 7 site (I always use it on my drupal 6 sites). Will there be a release in the near future?

Thanx

Chatka’s picture

If you need "Discard by user role" functionality for Drupal 7, try this one for now:
http://drupal.org/project/statistics_filter
Im also waiting for Statistics Advanced Settings D7 port :).

kay.beissert’s picture

Thanks for your feedback. My mainproblem is the hitcounter in drupal-statistics counts every single page view for a node. Statistics advanced only count the unique hits and for me, a hit counter without this function is senseless.

So I have to wait. ;)

Lev’s picture

Same problem as #45.

subscribing

kay.beissert’s picture

Are there any news on the Statistics Advanced Settings D7 port? Or do I have to use the (incorrect counting) standard drupal statistic module? Is there a timeframe for the port?

Questions about questions... ;)

Samael27’s picture

subscribe

Frank Ralf’s picture

Please use the nice green "Follow" button at the top of the thread for subscribing instead of littering the thread with meaningless postings. Thanks!

kay.beissert’s picture

Hi Frank Ralf, nice to see you again in this thread. I don't want to be nagging (I'm shure, I am) but will there be a release for the drupal 7 version within a narrow timeframe. A real hitcounter is a big motivation for userauthors, thats why my question.

Thanks for your patience

Frank Ralf’s picture

Hi bertoluci,

sorry for disappointing you, but I'm not even a co-maintainer of this project but only of the related Statistics Filter module. So unfortunately I won't be able to spend a lot of time on this one.

You could move things forward by testing the above D7 dev version and reporting here. Even better, try amending the issues and provide a patch ;-) IMO the database queries need some tweaking. You might try the suggestion given in #27.

Cheers,
Frank

kay.beissert’s picture

Hi Frank Ralf,

thank you for your fast reply. If I had the knowledge, I would provide a patch, but Im more a design gui (with html- and verry limited php-knowledge) so I could draw you a colourfull picture or something else (joke!!!) but I'm afraid, I can't tweak the database queries.

Maybe the maintainer will find some time for the issue. Until then, my authors have no hitcounter, or maybe they get the standard hitcounter and will be happy about the big hitcount :(

Good bye
Kay

ilgriso’s picture

subscrive

MrHaroldA’s picture

@ilgriso: please use the 'Follow' button on the top right of this page instead of replying!

nsalyzyn’s picture

I took what Frank Ralf did in #38 and made it usable, since I needed this. I can't guarantee it is 100% of the way there, but it is now something that works.

Frank Ralf’s picture

Thanks for moving this issue forward!

naught101’s picture

Seems pretty clear that Dave Reid doesn't have time for this module recently (#1027012: Maintenance status of the module?). Perhaps someone should offer to take up maintainership?

DocRPP’s picture

It seems the module in #55 is not counting search traffic the way it should have done, as google webmaster tools says 90 clicks on one of my articles but count says only 48? Can anybody confirm this?

ADrupalUser’s picture

Issue summary: View changes

This feature doesn't work with #55: "Do not log visits from search engines and crawlers". It seems like it causes views to decrease when activated.

Joe Huggans’s picture

Any update on this. Could really use the unique visitors functionality

Paulset’s picture

I tested the d7 version, and i have this error :

PDOException : SQLSTATE[22003]: Numeric value out of range: 1690 BIGINT UNSIGNED value is out of range in '("mysite"."node_counter"."daycount" - 1)': UPDATE {node_counter} SET daycount=daycount - 1, totalcount=totalcount - 1 WHERE (nid = :db_condition_placeholder_0) ; Array ( [:db_condition_placeholder_0] => 4 ) dans statistics_advanced_exit() (ligne 187 dans /Applications/MAMP/htdocs/mysite/sites/all/modules/contrib/statistics_advanced/statistics_advanced.module

Vako’s picture

Surprisingly #28 works for me.
Still surprised that this wonderful module is still not ported after 7 years!!

UPDATE: no #28 is giving the following error for some posts:

PDOException: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens: SELECT timestamp FROM {history} WHERE uid = :uid_0, :uid_1 AND nid = :nid; Array ( [:uid_0] => 1 [:uid_1] => 157 ) in statistics_advanced_boot() (line 124 of .....
Alan D.’s picture

#28 was a coder update and is totally bung / broken imho.

I just done a custom coded solution back in 2011

Vako’s picture

Alan, you are a very busy person contributing to a lot of modules. Thank you for all your contributions. Hope you will find time to fix this module one day.
This was a very important module that was working great in D6. In my opinion it should've been integrated in Drupal core for D7 and onward.

markusd1984’s picture

subscribed, desperately needed to show "real" views of pages instead of clicks :)

Has anybody seen a similar stable module for unique counts? (Statistics Filter?)

Have more people tested #55 for unique counts?

calefilm’s picture

@markusd1984 agree. I could use these tools in my D7 installation as well. Looking for "unique visitors functionality". Was brought here.

Boy, talk about a basic tool... drupal 101. Missed opportunity for D7 developers. Agree @Vako.