Forum Tasks Input and help desired

Discussion about the AutoHotkey Foundation and this website
Zelio
Posts: 278
Joined: 30 Sep 2013, 00:45
Location: France

Re: Forum Tasks Input and help desired

Post by Zelio » 02 Oct 2013, 02:43

@Alibaba, perhaps, sorry, I planned to only get english DB, because it is extremly long to get all scripts and support and post are in repost or can found en english alternative (not always), I had a 20go httrack archive but I will trash it, it is unusable... I prefer raw data of my script else to create a lexer or parser will be a nightmare.

Else it is easy to update my database script , just change i := to last-1 page, for a new section change url and copy script to a new directory.

Maybe that will give you idea, just a rough draft script, an attempt to a brute force with a modo account (captcha, less phpbb secoruity against bot), phpbb search engine works on it, but will take some months to post all, need a real lexer to format to a redeable thing, in other words will post by only one person and first line will be posted by XX at XX/XX/XX XX:XX :

Code: Select all

#NoEnv
SetWorkingDir % A_ScriptDir

URL := "http://www.ahkarchive.com/phpBB3/posting.php?mode=post&f=3"
source := A_ScriptDir "\tutorials"

Gui, Add, ActiveX, w980 h640 vWB, Shell.Explorer
WB.Navigate("http://www.ahkarchive.com/phpBB3/index.php")
Gui, Show

;ComObjectError(0)

return

²::
Loop, % source "\*.*", 2, 0
{

Loop, % A_LoopFileFullPath "\*.*", 0, 0
{
FileRead, data, % A_LoopFileFullPath
page := a_index

if !(p1 := InStr(data, "ipsType_pagetitle"))
	break
p2 := InStr(data, "</h1>", 0, p1+1)
title := HTMLDecode(SubStr(data, p1+19+1, p2-p1-19-2))

loop
{
p1 := InStr(data, "<div itemprop=""commentText"" class='post entry-content '>", 0, p2)
if !p1
	break
p2 := InStr(data, "<script type='text/javascript'>", 0, p1+1)
text := SubStr( data, p1, p2-p1)

;msgbox % a_index * page "-" title "`n" text
;continue

StringReplace, text, text, <pre style="" class="prettyprint lang-auto linenums:0 prettyprinted">, [code], All
StringReplace, text, text, <pre style="" class='prettyprint lang-auto linenums:0 prettyprinted'>, [code], All
StringReplace, text, text, <pre class="prettyprint lang-auto linenums:0">, [code], All
StringReplace, text, text, <pre class='prettyprint lang-auto linenums:0'>, [code], All
StringReplace, text, text, </pre>, 
, All

;StringReplace, text, text, <em class="bbc">, , All
;StringReplace, text, text, </em>,
, All
;StringReplace, text, text, <strong class="bbc">, , All
;StringReplace, text, text, </strong>,
, All

;StringReplace, text, text, <p class="citation">, [quote], All
;StringReplace, text, text, <p class='citation'>, [quote], All
;StringReplace, text, text, </blockquote>, [/quote], All

;<span style="color:#FF0000"></span>
;<img src="//cdn.autohotkey.com/board//public/style_emoticons/default/sad.png" class="bbc_emoticon" alt=":(">
;<p class="citation">Quote<span></span></p><blockquote class="ipsBlockquote built" data-author="" &#91;vxe&#93;"&#58;1v4j5fel"=""><p><strong class="bbc">Why bother with it if I can do the same thing with "If/Else"?!</strong><br>The ternary operator has a coolness factor rating of 14 units = sunglasses. Using it makes your code shorterr, cooler, and more complicated-looking. <br></p></blockquote>
;
;<p class="citation">tidbit, on 07 Sept 2013 - 10:14 PM, said:<a href="http://www.autohotkey.com/board/index.p ... pid=611919" rel="citation" class="snapback right"><img src="//cdn.autohotkey.com/board//public/style_images/marble/snapback.png"></a></p><blockquote class="ipsBlockquote built" data-author="tidbit" data-cid="611919" data-time="1378584855"><p>I think some grammar and some examples could be fixed up a bit.</p></blockquote>&nbsp;<br>
;10µs -> 10µs

text := HTMLDecode(text)

StringReplace, text, text, <!-- m -->, , All
StringReplace, text, text, ’, `', All

subject := title
message := text

if ((a_index = 1) && (page = 1))
WB.Navigate(URL)
else
WB.Navigate(newURL)
while, WB.ReadyState != 4
sleep, 10
if (a_index = 1)
WB.Document.getElementById("subject").value := subject
WB.Document.getElementById("message").value := message
Sleep 4000
WB.Document.getElementById("post").click
Sleep 2000
tooltip % a_index + (page-1)*15
if (a_index = 1)
loop
if (WB.Document.all[76].innerText != "Information") {
sleep 200
newURL := WB.Document.all[90].href
break
}

;<a href="./posting.php?mode=reply&f=3&t=303"><img src="./styles/subsilver2/imageset/en/button_topic_reply.gif" alt="Reply to topic" title="Reply to topic" /></a>
}
}

}
return

esc::
exitapp

HTMLDecode(html)
{
StringReplace, html, html, `n, </p>, All ;`
document := ComObjCreate("HTMLFile")
document.write(html)
return document.body.outerText
}[/code]
but as I said it is a rough draft script, tank, you, and me seem try 3 dirrents ways, it's all good, however if you have a good parser to format all of those text, POly did some mess they are sometimes 3 or 4 format just for code tag, quote or other thing... In other word HTMLDecode function is good and easy, but that will create some new strange char because of multiple Poly formated forum changes...

If there is an expert with phpbb bot...

User avatar
tank
Posts: 3164
Joined: 28 Sep 2013, 22:15
Location: CarrolltonTX
Contact:

Re: Forum Tasks Input and help desired

Post by tank » 02 Oct 2013, 08:28

I can make a g+ and i love the hang out idea the hangouts offer such superior tools for collaboration
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;
Telegram is the best way to reach me
https://t.me/ttnnkkrr
If you have forum suggestions please submit a
Check Out WebWriter

User avatar
joedf
Posts: 9097
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: Forum Tasks Input and help desired

Post by joedf » 03 Oct 2013, 23:34

does this, interest anybody? A search page just for autohotkey? http://joedf.pancakeapps.com/
I think something similar could be done, just copy it or, not... :P
more about it here: http://auto-hotkey.com/boards/viewtopic.php?f=22&t=129
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]

User avatar
MasterFocus
Posts: 146
Joined: 01 Oct 2013, 09:47
Location: Rio de Janeiro - RJ - Brasil
Contact:

Re: Forum Tasks Input and help desired

Post by MasterFocus » 07 Oct 2013, 02:10

[1]
Check the homepage ( http://auto-hotkey.com/ )
Facebook and Twitter links. Both icons seem to be missing.
EDIT: When I use Chrome's incognito mode, I can see the icons perfectly. But they never appear when I use a normal logged in session.

[2]
Where are we supposed to post "bugs" related to the forum/website (such as number [1] I just mentioned)?

[3]
I tremendously support joedf's custom search. Could we get a "Search" link on the homepage?

EDIT:
[4] I saw the "Poll: Permanent Domain" topic linked from both Offtopic and Welcome sections.
While I know it's the same topic, accessing it from one section didn't mark it as read when I reloaded the other section's page.
Antonio França - git.io | github.com | ahk4.net | sites.google.com
Member of the AHK community since 08/Apr/2009. Moderator since mid-2012.
Need help? Please post on the forum before sending me a PM.

User avatar
cyruz
Posts: 348
Joined: 30 Sep 2013, 13:31

Re: Forum Tasks Input and help desired

Post by cyruz » 10 Oct 2013, 07:22

I give my availability for any spare time need. I would be happy to contribute to the community.
ABCza on the old forum.
My GitHub.

User avatar
joedf
Posts: 9097
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: Forum Tasks Input and help desired

Post by joedf » 10 Oct 2013, 10:27

@cyruz Sure! I suggest to make a few beginner questions or examples, to help us for a "codeacademy" style tutorial
For autohotkey, I design a webpage for that, as I have suggested, ;)
It will help greatly! Perhaps, someone could make a topic for submitting ideas for
Our "codeacademy"
Cheers! ;)
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]

User avatar
cyruz
Posts: 348
Joined: 30 Sep 2013, 13:31

Re: Forum Tasks Input and help desired

Post by cyruz » 12 Oct 2013, 07:59

joedf wrote:@cyruz Sure! I suggest to make a few beginner questions or examples, to help us for a "codeacademy" style tutorial
For autohotkey, I design a webpage for that, as I have suggested, ;)
It will help greatly! Perhaps, someone could make a topic for submitting ideas for
Our "codeacademy"
Cheers! ;)
It's a good idea, I will start to take care of this with a dedicated topic, thx for the suggestion!
ABCza on the old forum.
My GitHub.

User avatar
joedf
Posts: 9097
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: Forum Tasks Input and help desired

Post by joedf » 12 Oct 2013, 08:51

;)
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]

User avatar
tank
Posts: 3164
Joined: 28 Sep 2013, 22:15
Location: CarrolltonTX
Contact:

Re: Forum Tasks Input and help desired

Post by tank » 12 Oct 2013, 08:56

I like the idea of tutorial and tgraing excersize. If the idea takes off I support it having prominant web space on the site
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;
Telegram is the best way to reach me
https://t.me/ttnnkkrr
If you have forum suggestions please submit a
Check Out WebWriter

just me
Posts: 9763
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: Forum Tasks Input and help desired

Post by just me » 14 Dec 2013, 05:18

Is somebody working on the transfer of the old forum's content still?

Alibaba
Posts: 480
Joined: 29 Sep 2013, 16:15
Location: Germany

Re: Forum Tasks Input and help desired

Post by Alibaba » 14 Dec 2013, 05:54

just me wrote:Is somebody working on the transfer of the old forum's content still?
I only know that we already have a copy of the forum database, but i don't know wheter and how far it can be integrated now.
"Nothing is quieter than a loaded gun." - Heinrich Heine

User avatar
SKAN
Posts: 1619
Joined: 29 Sep 2013, 16:58

Re: Forum Tasks Input and help desired

Post by SKAN » 14 Dec 2013, 07:38

Well, search is working: http://ahkscript.org/forum/search.php

User avatar
joedf
Posts: 9097
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: Forum Tasks Input and help desired

Post by joedf » 14 Dec 2013, 13:18

Oh cool, it's new?
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]

User avatar
tank
Posts: 3164
Joined: 28 Sep 2013, 22:15
Location: CarrolltonTX
Contact:

Re: Forum Tasks Input and help desired

Post by tank » 14 Dec 2013, 17:24

old
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;
Telegram is the best way to reach me
https://t.me/ttnnkkrr
If you have forum suggestions please submit a
Check Out WebWriter

just me
Posts: 9763
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: Forum Tasks Input and help desired

Post by just me » 15 Dec 2013, 05:07

Hmmm, is somebody willing to answer my question?

User avatar
joedf
Posts: 9097
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: Forum Tasks Input and help desired

Post by joedf » 15 Dec 2013, 10:41

I guess not... :(
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]

User avatar
tank
Posts: 3164
Joined: 28 Sep 2013, 22:15
Location: CarrolltonTX
Contact:

Re: Forum Tasks Input and help desired

Post by tank » 15 Dec 2013, 11:00

its a complex answer
the forum archive i have now cannot be cleanly imported and has numerous dead links even if proper conversion is done accounting for db references for users etc.

the dead links in and of itself offer a particularly difficult problem. Its one thing to provide search within the archive its quite another to merge those posts into the current forum. One idea i am toying with is sorting by view and reply counts and focusing on converting select threads that represent sgnifigant knowledge discovery or helpfull code. one example would be Shajules bbcode editor.SKANS tips and tricks thread etc.

but the dead images will require me to either find ways of finding replacements from the OP online or some other creative means as of yet undiscovered. I would love to bring numerous threads by Sean over but source content is no longer there from autohotkey.net.

there are soooooooo many hurdles to cross.
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;
Telegram is the best way to reach me
https://t.me/ttnnkkrr
If you have forum suggestions please submit a
Check Out WebWriter

User avatar
nnnik
Posts: 4500
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: Forum Tasks Input and help desired

Post by nnnik » 15 Dec 2013, 13:21

I would suggest that you merge the dbs and the mods do the recovery manually.
Recommends AHK Studio

User avatar
fincs
Posts: 527
Joined: 30 Sep 2013, 14:17
Location: Seville, Spain
Contact:

Re: Forum Tasks Input and help desired

Post by fincs » 15 Dec 2013, 13:29

I don't think that merging in the old forum into this forum is a good idea, because of the many incongruences and problems that would cause (including those problems stated above) and the plain fact that it's a dump from early 2012, and let's face it, a lot of its content is quite out of date. I suggest to keep the old forum database accessible like it is now, as a read-only archive; and maintain the "purity" of this new forum.
fincs
Windows 11 Pro (Version 22H2) | AMD Ryzen 7 3700X with 32 GB of RAM | AutoHotkey v2.0.0 + v1.1.36.02
Get SciTE4AutoHotkey v3.1.0 - [My project list]

HotKeyIt
Posts: 2364
Joined: 29 Sep 2013, 18:35
Contact:

Re: Forum Tasks Input and help desired

Post by HotKeyIt » 15 Dec 2013, 13:34

fincs wrote:I suggest to keep the old forum database accessible like it is now, as a read-only archive; and maintain the "purity" of this new forum.
+1

Post Reply

Return to “About This Community”