I've added some extra sections to awstats. These show when awstats displays the page and if I look in the awstats txt file there is a section EXTRA_1. The info with better awstats already has an extra_1 but this doesn't seem to be enabled. How do I do that? Is it a betterawstats issue or a bawstats issue?

Also, in bawstats I see there are menu items admin/reports/bawstats/all and admin/reports/bawstats/details what are these? All I seem to get is admin/reports/bawstats/xxx/month/year, where xxx is time, userinfo etc. The names on the tabs.

Thanks

Comments

malc_b’s picture

OK, so I worked that the details is the more info, full list. I got betterawstats working standalone and sorted that out to display extra sections. The docs on that could do with more detail. Not easy to insert extra sections nor am I sure I've done it right. But it seems to work ok. The extra sections are just record/pages/hits. Not sure how to expand that.

So I copied the new, working sections from the standalone into config.php and extras.inc.php, but I still can't see extra sections in drupal/bawstats.

malc_b’s picture

As far as I can see to add extra sections I have to:

Mod bawstats/engine/library.inc.php to add extra_1 to $BAW_LIB['item_groups'] list
Mod bawstats/engine/display.inc.php to add extra_1 to $BAW_CONF_DIS_DEF list
Mod bawstats/language/lang_en.inc.php to define cfg_dis_extra_1 in english

Not sure if this is due to my mods but I've noticed that clicking any other link to see the full list the displayed page always has the title other access and not the title of that section.

egfrith’s picture

Thanks for your comments, malc_b.

I have to say that I'm not fully familiar with the code, as I haven't a chance to take a proper look since I took over maintaining the module. However, having had a look inside includes/bawstats.stats.inc it looks like you're doing the right thing.
The only thing that you might need to do is to go to
admin/settings/bawstats
and click on "Submit". This is because bawstats_admin_settings_submit() seems to do the work of reading $BAW_LIB['item_groups'] into
bawstats_groups, which is then used by the menu system.

Also, in bawstats I see there are menu items admin/reports/bawstats/all and admin/reports/bawstats/details what are these? All I seem to get is admin/reports/bawstats/xxx/month/year, where xxx is time, userinfo etc. The names on the tabs.

As you said, you get to
admin/reports/bawstats/details
by clicking on the "Others" links on a number of the tabs.

I'm not sure about the URL admin/reports/bawstats/all - I wonder if the "all" needs to be there?

malc_b’s picture

I find that admin/reports/bawstats/all/11/2009 gives summary page with no tabs for userinfo etc. where as admin/reports/bawstats/11/2009 give the same page with tabs.

In bawstats module the menu for details is

  // the "other" more specific things we don't have menus for!
  $items['admin/reports/bawstats/details/%/%/%'] = array(
    'title' => $group_details,
 

This follows a foreach to set the tabs. The foreach uses $group_details as the tab name hence all details pages have a title of the last tab name. Presumably this should be overwritten somewhere or a should have been a more drupal approach and used title callback or title arguments to give the correct title.

egfrith’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closing this, due to inactivity from me for the past 15 years! But if your're still around @malc_b and using AWstats and drupal, feel free to reopen.