get view count for current thread

Discuss issues and requests related with the forum software
User avatar
jeeswg
Posts: 4589
Joined: 19 Dec 2016, 01:58
Location: UK

get view count for current thread

21 Jul 2017, 22:34

Am I missing something. Is there an easy way to the get the view count for the current thread? Otherwise I know that I can search for it and get the view count that way. Thanks.

Basically I want to know if anyone is actually reading/benefiting from any of my tutorials.

==================================================

[EDIT:]
E.g. this, it's only got 171 views cf. some of my other tutorials. I think this one's pretty good, so it's a shame.
jeeswg's documentation extension tutorial - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=7&t=33596

This one has 2908, but I'm surprised so many people have looked at it.
jeeswg's SoX (Sound eXchange) tutorial - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=7&t=29234

E.g. to search I can use 'tutorial' as a keyword here:
AutoHotkey Community - Search
https://autohotkey.com/boards/search.php?st=0&sk=t&sd=d&sr=topics&author=jeeswg&sf=firstpost

Although I list various tutorials here as well:
jeeswg's homepage - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=17&t=30931
User avatar
TheDewd
Posts: 959
Joined: 19 Dec 2013, 11:16
Location: USA

Re: get view count for current thread

01 Aug 2017, 12:56

My opinion is that your posts are not clearly formatted or presented in a way that is pleasant for the users to easily read and understand. It looks like a lot of stuff just mashed together and it becomes cumbersome to look at.

My comment is not intended to anger you or deter from attempting future "tutorials". These are just my initial thoughts regarding your tutorial posts. I see them more as a resource or collection of ideas, not so much as a tutorial.
User avatar
tank
Posts: 2299
Joined: 28 Sep 2013, 22:15
Facebook: charlie.simmons.7334
Google: ttnnkkrr
GitHub: ttnnkkrr
Location: Louisville KY
Contact:

Re: get view count for current thread

01 Aug 2017, 13:28

when you look at any board the view count for each thread is plain for all to see ????
We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
https://www.facebook.com/ahkscript.org
If you have forum suggestions please submit a pull request
User avatar
jeeswg
Posts: 4589
Joined: 19 Dec 2016, 01:58
Location: UK

Re: get view count for current thread

01 Aug 2017, 14:08

@tank: E.g. on this specific page, I don't see a view count figure anywhere. If I find a random thread somewhere that isn't on the front page of the forum, how do I find its view count, by trying to get it in some search results?

In simple terms, what is the fastest way to go from a url e.g. this thread:
https://autohotkey.com/boards/viewtopic.php?f=3&t=34838
to a view count.

@TheDewd: So nothing in plaintext can ever count as a tutorial? Btw I think you're referring to my objects tutorial which isn't finished yet.

Btw how about 'guide', is 'guide' a fair classification in your opinion?

Also, to be clear, I'm more concerned about the relative views, than the absolute views, generally some threads, tutorials or not, have more views than I expected, some which I think could be quite useful to people have fewer.
User avatar
TheDewd
Posts: 959
Joined: 19 Dec 2013, 11:16
Location: USA

Re: get view count for current thread

01 Aug 2017, 14:36

I see your issue. The best I could do is make you a script:

Replace the topic ID (t=34838)

Code: [Select all] [Download] (Untitled.ahk)GeSHi © Codebox Plus

HTMLObj := ComObjCreate("WinHttp.WinHttpRequest.5.1")
HTMLObj.Open("GET", "https://autohotkey.com/boards/search.php?author_id=74796&t=34838&sf=titleonly&ch=0", true)
HTMLObj.Send()
HTMLObj.WaitForResponse()
RegExMatch(HTMLObj.ResponseText, "<dd>Views: <strong>(.*?)<\/strong><\/dd>", Views)
MsgBox, % Views1
Last edited by TheDewd on 01 Aug 2017, 14:58, edited 1 time in total.
User avatar
derz00
Posts: 491
Joined: 02 Feb 2016, 17:54
GitHub: derz00
Location: Middle of the round cube

Re: get view count for current thread

01 Aug 2017, 14:57

Spoiler


I shouldn't have said so much.
Spoiler
Last edited by derz00 on 01 Aug 2017, 15:49, edited 1 time in total.
try it and see
...
User avatar
joedf
Posts: 6340
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada, Quebec
Contact:

Re: get view count for current thread

01 Aug 2017, 15:17

This could be added with some modification. I already have an idea but the lack of reasoning for the actual benefit for general people ....
User avatar
tank
Posts: 2299
Joined: 28 Sep 2013, 22:15
Facebook: charlie.simmons.7334
Google: ttnnkkrr
GitHub: ttnnkkrr
Location: Louisville KY
Contact:

Re: get view count for current thread

01 Aug 2017, 15:21

I dunno i once did the exact same thing @jeeswg so i dont see the complaints. But i never worried about view counts so that's kind of a new delima. I would suggest doing what interests you and not worrying about view counts so much. I dont have any plans to enhance the search results to accomodate this for such a scarcely had concern. Actually in 13 years of other people building a main thread to work from, this is the first time i have seen complaints. Take the detraction for what they are and nothing more
We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
https://www.facebook.com/ahkscript.org
If you have forum suggestions please submit a pull request
User avatar
jeeswg
Posts: 4589
Joined: 19 Dec 2016, 01:58
Location: UK

Re: get view count for current thread

01 Aug 2017, 16:35

@TheDewd: Cheers, that's really nice, and probably better than what I had planned, as it doesn't use any custom functions.

@derz00: Some of my preferred ones at present are: best utilities, RegEx, forum tips, command list, documentation extension, Explorer. One problem with writing tutorials within the forum is that you can't jump to a point within an AHK post AFAIK, hence things like a leading character for chapter headings are useful. I have considered doing some html tutorials elsewhere. In general, as more of my projects get completed I can, in theory, return to previous projects and make considerations.

@TheDewd/@derz00:
Any good tutorial should work in txt form:
crc_v3.txt
http://www.ross.net/crc/download/crc_v3.txt
pcre.txt
http://www.pcre.org/pcre.txt

@tank: I'm not 100% clear on what you're referring to, so I'll just say that: I'm not criticising the forum, and I don't mind criticism or low view counts. Actually what I do mind re. view counts, is for the forum over all, I see great posts by other people with say 100 views!? I'm surprised that the AHK community isn't 10 times bigger for example.

@joedf/@tank: I'm quite happy with TheDewd's solution, I don't want or need any changes to the forum.

If I had any concerns it would be:
- Was autohotkey.net backed up anywhere?
- Since the old forum is hard to search, it would actually be more sensible to download the whole old forum as a zip, if this is doable, possibly an html only version without any images.
- I really like this AutoHotkey Archives idea, and I think any attempts to store (i.e. not rely on archive.org) and to browse through archive.org material in order to republish certain classic old material is a great idea (and useful where autohotkey.net content is no longer available). Also, if we were to lose access to autohotkey.com, at least we would have all the content backed up, in case as with autohotkey.net, the archive.org links become blocked.
AutoHotkey Archives
http://ahkscript.org/joedf/unofficial_faq/
Mentioned here:
autohotkey.net vs autohotkey.com - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=2&t=35062
- [EDIT:] Also, if a mod would like to officially start that guestbook thread I mentioned.
User avatar
tank
Posts: 2299
Joined: 28 Sep 2013, 22:15
Facebook: charlie.simmons.7334
Google: ttnnkkrr
GitHub: ttnnkkrr
Location: Louisville KY
Contact:

Re: get view count for current thread

01 Aug 2017, 19:05

jeeswg wrote:- Was autohotkey.net backed up anywhere?
Sore subject No our previous site admin didn't believe in backups
jeeswg wrote:if this is doable, possibly an html only version without any images.
Probably but it wont make my list of priorities any time soon
Our server gets offsite backups weekly and i regularly back it up locally.
Our database is synced to a backup server and also fully backed up weekly offsite. If something happened to this site lets say hacking. i could bring up an archive in less than 5 minutes. we will never suffer another Autohotkey.net type loss. The database isn't accessible via public networks. i have all public traffic fire-walled. It may only be accessed via a direct connection from this web server over an non public network.
We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
https://www.facebook.com/ahkscript.org
If you have forum suggestions please submit a pull request
User avatar
jeeswg
Posts: 4589
Joined: 19 Dec 2016, 01:58
Location: UK

Re: get view count for current thread

02 Aug 2017, 00:33

Many thanks for your response @tank. I think some websites let you download the whole thing for easy and offline reference, and so even better for a website, the old forum, that isn't changing, and won't need updates. Might be good to have a version with images as well ... because I like colourful avatars.

What is sad is that it seems that autohotkey.net was lost twice, and that backups weren't made in-between.
User avatar
tank
Posts: 2299
Joined: 28 Sep 2013, 22:15
Facebook: charlie.simmons.7334
Google: ttnnkkrr
GitHub: ttnnkkrr
Location: Louisville KY
Contact:

Re: get view count for current thread

02 Aug 2017, 07:40

incidently the user control panel will let you organize favorites and for those threads show the same statistics as the board index
We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
https://www.facebook.com/ahkscript.org
If you have forum suggestions please submit a pull request
User avatar
tank
Posts: 2299
Joined: 28 Sep 2013, 22:15
Facebook: charlie.simmons.7334
Google: ttnnkkrr
GitHub: ttnnkkrr
Location: Louisville KY
Contact:

Re: get view count for current thread

02 Aug 2017, 10:13

Upon checking my last statement seems to be in error
We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
https://www.facebook.com/ahkscript.org
If you have forum suggestions please submit a pull request
User avatar
jeeswg
Posts: 4589
Joined: 19 Dec 2016, 01:58
Location: UK

Re: get view count for current thread

19 Sep 2017, 09:38

On a WinHttpRequest: ("GET", vUrl, True), True makes it faster, what exactly is going on here?

WinHttpRequest object (Windows)
https://msdn.microsoft.com/en-us/library/windows/desktop/aa384106(v=vs.85).aspx
IWinHttpRequest::Open method (Windows)
https://msdn.microsoft.com/en-us/library/windows/desktop/aa383989(v=vs.85).aspx

Anyhow, I've added some functions here:

AHK forum scripts - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=28041

Return to “Forum Issues”

Who is online

Users browsing this forum: No registered users and 4 guests