Customizing SMF > SMF Coding Discussion

Query for Traffic

<< < (17/19) > >>

colby2152:
I know what this is not doing correctly.  It is counting total number of page views between two timestamps on the post-dates rather than the view-dates.  This still provides some useful information, but is there a way to tailor the code so that I can see total page views during a time period?

Anthony`:
I believe that isnt possible.

colby2152:

--- Quote from: Project Evolution on August 20, 2011, 07:20:26 PM ---I believe that isnt possible.

--- End quote ---

Fair enough.  While that is what I want... I can make do without it by taking monthly reports.

colby2152:
One more request as I have explored several options on how to do this.  I want to change the board ID input, so that it is a series of board IDs, separated by commas like this: 1, 45, 542, 209, 1031, 78

The PHP script loops through the inputs, providing output for each board ID in the same format, so: Views(1), Views(45), Views(542), Views(209), Views(1031), Views(78)

It is essentially the same script but with a parent script that loops through the base script N times and saves the outputs in an array until the looping is finished.  The resulting output is the array of saved numbers, separated by commas.

Jokerâ„¢:
I did that in one of my mods.

http://custom.simplemachines.org/mods/index.php?mod=2975


I would highly recommend you to read more about arrays on php.net. The power of arrays is simply amazing. I used them in one of the scripts at my workplace and the output was simply astonishing.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version