You are here

user.txt in Statistics Pro 6.2

$view = new view;
$view->name = 'statspro_user';
$view->description = 'Statistics about new user and online user';
$view->tag = 'Statistics Pro';
$view->view_php = '';
$view->base_table = 'statspro';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */

$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('fields', array(
  'day' => array(
    'label' => 'Date',
    'date_format' => 'custom',
    'custom_date_format' => 'd. F Y',
    'exclude' => 0,
    'id' => 'day',
    'table' => 'statspro',
    'field' => 'day',
    'relationship' => 'none',
  ),
  'nuser' => array(
    'label' => 'User registrations',
    'set_precision' => FALSE,
    'precision' => 0,
    'decimal' => '.',
    'separator' => '.',
    'prefix' => '',
    'suffix' => '',
    'exclude' => 0,
    'id' => 'nuser',
    'table' => 'statspro',
    'field' => 'nuser',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
    'display_mode' => 'graph',
    'graph_size' => '350',
  ),
  'nuser_1' => array(
    'label' => 'Trend',
    'set_precision' => FALSE,
    'precision' => 0,
    'decimal' => '.',
    'separator' => '.',
    'prefix' => '',
    'suffix' => '',
    'exclude' => 0,
    'id' => 'nuser_1',
    'table' => 'statspro',
    'field' => 'nuser',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
    'display_mode' => 'trend',
    'graph_size' => '',
  ),
  'nuser_2' => array(
    'label' => 'Amount',
    'set_precision' => FALSE,
    'precision' => 0,
    'decimal' => '.',
    'separator' => '.',
    'prefix' => '',
    'suffix' => '',
    'exclude' => 0,
    'id' => 'nuser_2',
    'table' => 'statspro',
    'field' => 'nuser',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
    'display_mode' => 'text',
    'graph_size' => '',
  ),
));
$handler->override_option('sorts', array(
  'day' => array(
    'order' => 'DESC',
    'id' => 'day',
    'table' => 'statspro',
    'field' => 'day',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
));
$handler->override_option('access', array(
  'type' => 'perm',
  'perm' => 'access statistics pro reports',
));
$handler->override_option('cache', array(
  'type' => 'none',
));
$handler->override_option('title', 'Statistics Pro');
$handler->override_option('header', 'Overview for new user registrations.');
$handler->override_option('header_format', '1');
$handler->override_option('header_empty', 0);
$handler->override_option('use_ajax', TRUE);
$handler->override_option('items_per_page', 20);
$handler->override_option('use_pager', '1');
$handler->override_option('style_plugin', 'table');
$handler->override_option('style_options', array(
  'grouping' => '',
  'override' => 1,
  'sticky' => 0,
  'order' => 'desc',
  'columns' => array(
    'day' => 'day',
    'nuser' => 'nuser',
    'nuser_1' => 'nuser_1',
    'nuser_2' => 'nuser_2',
  ),
  'info' => array(
    'day' => array(
      'sortable' => 1,
      'separator' => '',
    ),
    'nuser' => array(
      'sortable' => 0,
      'separator' => '',
    ),
    'nuser_1' => array(
      'sortable' => 0,
      'separator' => '',
    ),
    'nuser_2' => array(
      'sortable' => 1,
      'separator' => '',
    ),
  ),
  'default' => 'day',
));

$handler = $view->new_display('page', 'New registered users', 'page_1');
$handler->override_option('header', 'New registered users');
$handler->override_option('path', 'admin/reports/statspro/user');
$handler->override_option('menu', array(
  'type' => 'tab',
  'title' => 'User',
  'description' => '',
  'weight' => '0',
  'name' => 'navigation',
));
$handler->override_option('tab_options', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
  'name' => 'navigation',
));
$handler = $view->new_display('attachment', 'Users online', 'attachment_1');
$handler->override_option('fields', array(
  'day' => array(
    'label' => 'Date',
    'date_format' => 'custom',
    'custom_date_format' => 'd. F Y',
    'exclude' => 0,
    'id' => 'day',
    'table' => 'statspro',
    'field' => 'day',
    'relationship' => 'none',
  ),
  'auser' => array(
    'label' => 'User online',
    'set_precision' => FALSE,
    'precision' => 0,
    'decimal' => '.',
    'separator' => '.',
    'prefix' => '',
    'suffix' => '',
    'exclude' => 0,
    'id' => 'auser',
    'table' => 'statspro',
    'field' => 'auser',
    'override' => array(
      'button' => 'Use default',
    ),
    'relationship' => 'none',
    'display_mode' => 'graph',
    'graph_size' => '350',
  ),
  'auser_1' => array(
    'label' => 'Trend',
    'set_precision' => FALSE,
    'precision' => 0,
    'decimal' => '.',
    'separator' => '.',
    'prefix' => '',
    'suffix' => '',
    'exclude' => 0,
    'id' => 'auser_1',
    'table' => 'statspro',
    'field' => 'auser',
    'override' => array(
      'button' => 'Use default',
    ),
    'relationship' => 'none',
    'display_mode' => 'trend',
    'graph_size' => '',
  ),
  'auser_2' => array(
    'label' => 'Amount',
    'set_precision' => FALSE,
    'precision' => 0,
    'decimal' => '.',
    'separator' => '.',
    'prefix' => '',
    'suffix' => '',
    'exclude' => 0,
    'id' => 'auser_2',
    'table' => 'statspro',
    'field' => 'auser',
    'override' => array(
      'button' => 'Use default',
    ),
    'relationship' => 'none',
    'display_mode' => 'text',
    'graph_size' => '',
  ),
));
$handler->override_option('header', 'Users online');
$handler->override_option('style_options', array(
  'grouping' => '',
  'override' => 1,
  'sticky' => 0,
  'order' => 'desc',
  'columns' => array(
    'day' => 'day',
    'auser' => 'auser',
    'auser_1' => 'auser_1',
    'auser_2' => 'auser_2',
  ),
  'info' => array(
    'day' => array(
      'sortable' => 1,
      'separator' => '',
    ),
    'auser' => array(
      'sortable' => 0,
      'separator' => '',
    ),
    'auser_1' => array(
      'sortable' => 0,
      'separator' => '',
    ),
    'auser_2' => array(
      'sortable' => 1,
      'separator' => '',
    ),
  ),
  'default' => 'day',
));
$handler->override_option('attachment_position', 'after');
$handler->override_option('inherit_arguments', TRUE);
$handler->override_option('inherit_exposed_filters', FALSE);
$handler->override_option('inherit_pager', FALSE);
$handler->override_option('render_pager', TRUE);
$handler->override_option('displays', array(
  'page_1' => 'page_1',
  'default' => 0,
));

$handler = $view->new_display('attachment', 'Users chart', 'attachment_2');
$handler->override_option('fields', array(
  'day' => array(
    'label' => 'Date',
    'date_format' => 'custom',
    'custom_date_format' => 'd. F Y',
    'exclude' => 0,
    'id' => 'day',
    'table' => 'statspro',
    'field' => 'day',
    'relationship' => 'none',
  ),
  'nuser' => array(
    'label' => 'User registrations',
    'set_precision' => FALSE,
    'precision' => 0,
    'decimal' => '.',
    'separator' => '.',
    'prefix' => '',
    'suffix' => '',
    'exclude' => 0,
    'id' => 'nuser',
    'table' => 'statspro',
    'field' => 'nuser',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
    'display_mode' => 'graph',
    'graph_size' => '350',
  ),
  'auser' => array(
    'label' => 'User online',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'html' => 0,
      'strip_tags' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'set_precision' => FALSE,
    'precision' => 0,
    'decimal' => '.',
    'separator' => ',.',
    'prefix' => '',
    'suffix' => '',
    'exclude' => 0,
    'id' => 'auser',
    'table' => 'statspro',
    'field' => 'auser',
    'override' => array(
      'button' => 'Use default',
    ),
    'relationship' => 'none',
    'display_mode' => 'text',
    'graph_size' => '',
  ),
));
$handler->override_option('header', 'Users chart');
$handler->override_option('style_plugin', 'charts');
$handler->override_option('style_options', array(
  'views_charts_series_fields' => array(
    'nuser' => 'nuser',
    'auser' => 'auser',
  ),
  'views_charts_x_labels' => 'day',
  'width' => '700',
  'height' => '200',
  'engine' => 'bluff',
  'type' => array(
    'amcharts' => 'line',
    'bluff' => 'line',
    'open-flash' => 'line',
  ),
  'wmode' => 'window',
  'y_min' => '0',
  'y_legend' => '',
));
$handler->override_option('attachment_position', 'after');
$handler->override_option('inherit_arguments', TRUE);
$handler->override_option('inherit_exposed_filters', FALSE);
$handler->override_option('inherit_pager', FALSE);
$handler->override_option('render_pager', TRUE);
$handler->override_option('displays', array(
  'page_1' => 'page_1',
  'default' => 0,
));

File

views_exported/user.txt
View source
  1. $view = new view;
  2. $view->name = 'statspro_user';
  3. $view->description = 'Statistics about new user and online user';
  4. $view->tag = 'Statistics Pro';
  5. $view->view_php = '';
  6. $view->base_table = 'statspro';
  7. $view->is_cacheable = FALSE;
  8. $view->api_version = 2;
  9. $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
  10. $handler = $view->new_display('default', 'Defaults', 'default');
  11. $handler->override_option('fields', array(
  12. 'day' => array(
  13. 'label' => 'Date',
  14. 'date_format' => 'custom',
  15. 'custom_date_format' => 'd. F Y',
  16. 'exclude' => 0,
  17. 'id' => 'day',
  18. 'table' => 'statspro',
  19. 'field' => 'day',
  20. 'relationship' => 'none',
  21. ),
  22. 'nuser' => array(
  23. 'label' => 'User registrations',
  24. 'set_precision' => FALSE,
  25. 'precision' => 0,
  26. 'decimal' => '.',
  27. 'separator' => '.',
  28. 'prefix' => '',
  29. 'suffix' => '',
  30. 'exclude' => 0,
  31. 'id' => 'nuser',
  32. 'table' => 'statspro',
  33. 'field' => 'nuser',
  34. 'override' => array(
  35. 'button' => 'Override',
  36. ),
  37. 'relationship' => 'none',
  38. 'display_mode' => 'graph',
  39. 'graph_size' => '350',
  40. ),
  41. 'nuser_1' => array(
  42. 'label' => 'Trend',
  43. 'set_precision' => FALSE,
  44. 'precision' => 0,
  45. 'decimal' => '.',
  46. 'separator' => '.',
  47. 'prefix' => '',
  48. 'suffix' => '',
  49. 'exclude' => 0,
  50. 'id' => 'nuser_1',
  51. 'table' => 'statspro',
  52. 'field' => 'nuser',
  53. 'override' => array(
  54. 'button' => 'Override',
  55. ),
  56. 'relationship' => 'none',
  57. 'display_mode' => 'trend',
  58. 'graph_size' => '',
  59. ),
  60. 'nuser_2' => array(
  61. 'label' => 'Amount',
  62. 'set_precision' => FALSE,
  63. 'precision' => 0,
  64. 'decimal' => '.',
  65. 'separator' => '.',
  66. 'prefix' => '',
  67. 'suffix' => '',
  68. 'exclude' => 0,
  69. 'id' => 'nuser_2',
  70. 'table' => 'statspro',
  71. 'field' => 'nuser',
  72. 'override' => array(
  73. 'button' => 'Override',
  74. ),
  75. 'relationship' => 'none',
  76. 'display_mode' => 'text',
  77. 'graph_size' => '',
  78. ),
  79. ));
  80. $handler->override_option('sorts', array(
  81. 'day' => array(
  82. 'order' => 'DESC',
  83. 'id' => 'day',
  84. 'table' => 'statspro',
  85. 'field' => 'day',
  86. 'override' => array(
  87. 'button' => 'Override',
  88. ),
  89. 'relationship' => 'none',
  90. ),
  91. ));
  92. $handler->override_option('access', array(
  93. 'type' => 'perm',
  94. 'perm' => 'access statistics pro reports',
  95. ));
  96. $handler->override_option('cache', array(
  97. 'type' => 'none',
  98. ));
  99. $handler->override_option('title', 'Statistics Pro');
  100. $handler->override_option('header', 'Overview for new user registrations.');
  101. $handler->override_option('header_format', '1');
  102. $handler->override_option('header_empty', 0);
  103. $handler->override_option('use_ajax', TRUE);
  104. $handler->override_option('items_per_page', 20);
  105. $handler->override_option('use_pager', '1');
  106. $handler->override_option('style_plugin', 'table');
  107. $handler->override_option('style_options', array(
  108. 'grouping' => '',
  109. 'override' => 1,
  110. 'sticky' => 0,
  111. 'order' => 'desc',
  112. 'columns' => array(
  113. 'day' => 'day',
  114. 'nuser' => 'nuser',
  115. 'nuser_1' => 'nuser_1',
  116. 'nuser_2' => 'nuser_2',
  117. ),
  118. 'info' => array(
  119. 'day' => array(
  120. 'sortable' => 1,
  121. 'separator' => '',
  122. ),
  123. 'nuser' => array(
  124. 'sortable' => 0,
  125. 'separator' => '',
  126. ),
  127. 'nuser_1' => array(
  128. 'sortable' => 0,
  129. 'separator' => '',
  130. ),
  131. 'nuser_2' => array(
  132. 'sortable' => 1,
  133. 'separator' => '',
  134. ),
  135. ),
  136. 'default' => 'day',
  137. ));
  138. $handler = $view->new_display('page', 'New registered users', 'page_1');
  139. $handler->override_option('header', 'New registered users');
  140. $handler->override_option('path', 'admin/reports/statspro/user');
  141. $handler->override_option('menu', array(
  142. 'type' => 'tab',
  143. 'title' => 'User',
  144. 'description' => '',
  145. 'weight' => '0',
  146. 'name' => 'navigation',
  147. ));
  148. $handler->override_option('tab_options', array(
  149. 'type' => 'none',
  150. 'title' => '',
  151. 'description' => '',
  152. 'weight' => 0,
  153. 'name' => 'navigation',
  154. ));
  155. $handler = $view->new_display('attachment', 'Users online', 'attachment_1');
  156. $handler->override_option('fields', array(
  157. 'day' => array(
  158. 'label' => 'Date',
  159. 'date_format' => 'custom',
  160. 'custom_date_format' => 'd. F Y',
  161. 'exclude' => 0,
  162. 'id' => 'day',
  163. 'table' => 'statspro',
  164. 'field' => 'day',
  165. 'relationship' => 'none',
  166. ),
  167. 'auser' => array(
  168. 'label' => 'User online',
  169. 'set_precision' => FALSE,
  170. 'precision' => 0,
  171. 'decimal' => '.',
  172. 'separator' => '.',
  173. 'prefix' => '',
  174. 'suffix' => '',
  175. 'exclude' => 0,
  176. 'id' => 'auser',
  177. 'table' => 'statspro',
  178. 'field' => 'auser',
  179. 'override' => array(
  180. 'button' => 'Use default',
  181. ),
  182. 'relationship' => 'none',
  183. 'display_mode' => 'graph',
  184. 'graph_size' => '350',
  185. ),
  186. 'auser_1' => array(
  187. 'label' => 'Trend',
  188. 'set_precision' => FALSE,
  189. 'precision' => 0,
  190. 'decimal' => '.',
  191. 'separator' => '.',
  192. 'prefix' => '',
  193. 'suffix' => '',
  194. 'exclude' => 0,
  195. 'id' => 'auser_1',
  196. 'table' => 'statspro',
  197. 'field' => 'auser',
  198. 'override' => array(
  199. 'button' => 'Use default',
  200. ),
  201. 'relationship' => 'none',
  202. 'display_mode' => 'trend',
  203. 'graph_size' => '',
  204. ),
  205. 'auser_2' => array(
  206. 'label' => 'Amount',
  207. 'set_precision' => FALSE,
  208. 'precision' => 0,
  209. 'decimal' => '.',
  210. 'separator' => '.',
  211. 'prefix' => '',
  212. 'suffix' => '',
  213. 'exclude' => 0,
  214. 'id' => 'auser_2',
  215. 'table' => 'statspro',
  216. 'field' => 'auser',
  217. 'override' => array(
  218. 'button' => 'Use default',
  219. ),
  220. 'relationship' => 'none',
  221. 'display_mode' => 'text',
  222. 'graph_size' => '',
  223. ),
  224. ));
  225. $handler->override_option('header', 'Users online');
  226. $handler->override_option('style_options', array(
  227. 'grouping' => '',
  228. 'override' => 1,
  229. 'sticky' => 0,
  230. 'order' => 'desc',
  231. 'columns' => array(
  232. 'day' => 'day',
  233. 'auser' => 'auser',
  234. 'auser_1' => 'auser_1',
  235. 'auser_2' => 'auser_2',
  236. ),
  237. 'info' => array(
  238. 'day' => array(
  239. 'sortable' => 1,
  240. 'separator' => '',
  241. ),
  242. 'auser' => array(
  243. 'sortable' => 0,
  244. 'separator' => '',
  245. ),
  246. 'auser_1' => array(
  247. 'sortable' => 0,
  248. 'separator' => '',
  249. ),
  250. 'auser_2' => array(
  251. 'sortable' => 1,
  252. 'separator' => '',
  253. ),
  254. ),
  255. 'default' => 'day',
  256. ));
  257. $handler->override_option('attachment_position', 'after');
  258. $handler->override_option('inherit_arguments', TRUE);
  259. $handler->override_option('inherit_exposed_filters', FALSE);
  260. $handler->override_option('inherit_pager', FALSE);
  261. $handler->override_option('render_pager', TRUE);
  262. $handler->override_option('displays', array(
  263. 'page_1' => 'page_1',
  264. 'default' => 0,
  265. ));
  266. $handler = $view->new_display('attachment', 'Users chart', 'attachment_2');
  267. $handler->override_option('fields', array(
  268. 'day' => array(
  269. 'label' => 'Date',
  270. 'date_format' => 'custom',
  271. 'custom_date_format' => 'd. F Y',
  272. 'exclude' => 0,
  273. 'id' => 'day',
  274. 'table' => 'statspro',
  275. 'field' => 'day',
  276. 'relationship' => 'none',
  277. ),
  278. 'nuser' => array(
  279. 'label' => 'User registrations',
  280. 'set_precision' => FALSE,
  281. 'precision' => 0,
  282. 'decimal' => '.',
  283. 'separator' => '.',
  284. 'prefix' => '',
  285. 'suffix' => '',
  286. 'exclude' => 0,
  287. 'id' => 'nuser',
  288. 'table' => 'statspro',
  289. 'field' => 'nuser',
  290. 'override' => array(
  291. 'button' => 'Override',
  292. ),
  293. 'relationship' => 'none',
  294. 'display_mode' => 'graph',
  295. 'graph_size' => '350',
  296. ),
  297. 'auser' => array(
  298. 'label' => 'User online',
  299. 'alter' => array(
  300. 'alter_text' => 0,
  301. 'text' => '',
  302. 'make_link' => 0,
  303. 'path' => '',
  304. 'link_class' => '',
  305. 'alt' => '',
  306. 'prefix' => '',
  307. 'suffix' => '',
  308. 'target' => '',
  309. 'help' => '',
  310. 'trim' => 0,
  311. 'max_length' => '',
  312. 'word_boundary' => 1,
  313. 'ellipsis' => 1,
  314. 'html' => 0,
  315. 'strip_tags' => 0,
  316. ),
  317. 'empty' => '',
  318. 'hide_empty' => 0,
  319. 'empty_zero' => 0,
  320. 'set_precision' => FALSE,
  321. 'precision' => 0,
  322. 'decimal' => '.',
  323. 'separator' => ',.',
  324. 'prefix' => '',
  325. 'suffix' => '',
  326. 'exclude' => 0,
  327. 'id' => 'auser',
  328. 'table' => 'statspro',
  329. 'field' => 'auser',
  330. 'override' => array(
  331. 'button' => 'Use default',
  332. ),
  333. 'relationship' => 'none',
  334. 'display_mode' => 'text',
  335. 'graph_size' => '',
  336. ),
  337. ));
  338. $handler->override_option('header', 'Users chart');
  339. $handler->override_option('style_plugin', 'charts');
  340. $handler->override_option('style_options', array(
  341. 'views_charts_series_fields' => array(
  342. 'nuser' => 'nuser',
  343. 'auser' => 'auser',
  344. ),
  345. 'views_charts_x_labels' => 'day',
  346. 'width' => '700',
  347. 'height' => '200',
  348. 'engine' => 'bluff',
  349. 'type' => array(
  350. 'amcharts' => 'line',
  351. 'bluff' => 'line',
  352. 'open-flash' => 'line',
  353. ),
  354. 'wmode' => 'window',
  355. 'y_min' => '0',
  356. 'y_legend' => '',
  357. ));
  358. $handler->override_option('attachment_position', 'after');
  359. $handler->override_option('inherit_arguments', TRUE);
  360. $handler->override_option('inherit_exposed_filters', FALSE);
  361. $handler->override_option('inherit_pager', FALSE);
  362. $handler->override_option('render_pager', TRUE);
  363. $handler->override_option('displays', array(
  364. 'page_1' => 'page_1',
  365. 'default' => 0,
  366. ));