HMG Forum "Codebox" Reader

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
AUGE_OHR
Posts: 2108
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: HMG Forum "Codebox" Reader

Post by AUGE_OHR »

hi,

have notice that i miss Window for "Setup" DBF ... so i add it in Menu
it will take some Time to finish it so i will release Source later.

here latest Version where "Speed" was fixed ( remove !DELETED() )
NotUser.JPG
NotUser.JPG (145.41 KiB) Viewed 19514 times
FORUMHMG_49.zip
(1.72 MiB) Downloaded 390 times
---

add :
add Index TAG "MSGDATE" (please delete old FORUM.CDX )
add new in CONFIG.INI (please delete old CONFIG.INI)
add more HTML to "remove" (please delete old HTMLSIGN.DBF)
add Setup Window for FORUMDIR.DBF, HTMLSIGN.DBF, NOTUSER.DBF and (new) COLOR.DBF
add Transparency for Child Window when "LOSTFOCUS"
add save new Layout in CONFIG.INI while running (need open Windows to get Row/Col and Size)

btw. for FILTER you can use "|" (pipe) for more than 1 Author ... or "exclude" them
press F9 will "load" User from NOTUSER.DBF which belong to "active" Forum

change :
BROWSE use default TAG "MSGDATE" (Column Date)

Code: Select all

   DTOS(TDATE)+TTIME
while TAG "DUPECHECK (Column Time) use

Code: Select all

   STRZERO(TOPICNO,5)+DTOS(TDATE)+TTIME
change Download "new" Message to -50 up to +50 to get Message from "older" Thread (will SKIP DUPE)

BUG :
there are still some HTML in CODE when download Message which are not "clean up"
please use MENU and call "clean up" which work

i can´t find BUG while both are using same Function to "clean-up" ... hm

todo :
there is no "validation" when add new Entry in FORUMDIR.DBF or NOTUSER.DBF
when change Color it is need to "restart" ...
have fun
Jimmy
User avatar
AUGE_OHR
Posts: 2108
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: HMG Forum "Codebox" Reader

Post by AUGE_OHR »

hi,

while have "Certificate" Problem with HMG Forum "phpBB Forum Grabber" say
Start : 18:08:14
18:08:17 StartDownLoad https://www.hmgforum.com/viewtopic.php?&t=7218
18:08:18 readyState 1 Das Datum des Zertifikats ist ungültig oder das Zertifikat ist abgelaufen.\r\n (0x80072F05) SEND -2147352567 Error download https://www.hmgforum.com/viewtopic.php?&t=7218
18:08:18 StartDownLoad https://www.hmgforum.com/viewtopic.php?&t=7219
but i can login with Firefox ... hm ...
so i try use "only" http:// in "phpBB Forum Grabber" and that work :D
have fun
Jimmy
User avatar
AUGE_OHR
Posts: 2108
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: HMG Forum "Codebox" Reader

Post by AUGE_OHR »

hi,

here now Source CODE of "phpBB Forum Grabber"
FORUM_SOURCE.ZIP
(33.2 KiB) Downloaded 412 times
have add "/Debug" Option as (any) Parameter to create "_LOGIT2.TXT"

Comments welcome

p.s. NO *.RC for Image include
have fun
Jimmy
User avatar
AUGE_OHR
Posts: 2108
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: HMG Forum "Codebox" Reader

Post by AUGE_OHR »

hi,

BUG :
when load Message of Thread "later" which is not "in Order" it will start with MsgNo = 1
Thread MsgNo
7281 1
...
7281 11
7282 1
7281 1 // wrong
Workaround : "renumber" all Message of Thread and replace MsgNo

Code: Select all

STATIC PROCEDURE DoCleanBody( cDBF, cCDX )
LOCAL nThreadNo
LOCAL nCounter := 0
LOCAL nLastThread := 0
   ORDSETFOCUS( "DUPECHECK" )
         nThreadNo := FORUM->TOPICNO
         if nLastThread <> nThreadNo
            nLastThread := nThreadNo
            nCounter := 1
         else
            nCounter ++
         endif
         REPLACE FORUM->NOOFMSG WITH nCounter
have fun
Jimmy
User avatar
AUGE_OHR
Posts: 2108
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: HMG Forum "Codebox" Reader

Post by AUGE_OHR »

hi,

ad. Forum FiveWin

have found out that i have use

Code: Select all

   cMemo := STRTRAN(cMemo,"\r\n", "" }
instead of

Code: Select all

   cMemo := STRTRAN(cMemo,"\r\n", CRLF }
so CODE look bad

you can use Menu -> Database -> HTMLsign and edit it
use CRLF or CHR(13)+CHR(10) for "change to"

p.s. not need for HMG Forum :!:

---

add for next Version new POPUP Menu Item

Code: Select all

   MENUITEM "&re-new this Thread"
and MAIN MENU Item

Code: Select all

   MENUITEM "&renew all CODE"
have fun
Jimmy
User avatar
AUGE_OHR
Posts: 2108
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: HMG Forum "Codebox" Reader

Post by AUGE_OHR »

hi,

here latest Version v0.3.1
Popup_Menu.jpg
Popup_Menu.jpg (227.52 KiB) Viewed 19263 times
FORUMHMG_57.zip
(1.73 MiB) Downloaded 373 times
v0.2.5 BUG MsgNo when not "in Order" -> DoCleanBody()
v0.2.6 DoReNewMsg() : all Message of same Thread
v0.2.7 DoMethod( "FORUM", "Browse_Main", "SetFocus" )
v0.2.8 Forum Combobox ONENTER -> ON CLOSEUP
move "Transparency" into ShowMemo
v0.2.9 DLALLCOD.PRG : get all CODE again
v0.3.0 Layout/Resize for all "Edit" Window
v0.3.1 CheckForumDir(), SnapToCtrl()
p.s.
ForumDir.DBF will be automatic "upgrade" new Structure ( add "THREADSIGN", "C", 10 )
have fun
Jimmy
User avatar
AUGE_OHR
Posts: 2108
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: HMG Forum "Codebox" Reader

Post by AUGE_OHR »

hi,

latest Version better for Table PC with Toolbar ( Option /T )
Forum_Toolbar.jpg
Forum_Toolbar.jpg (129.69 KiB) Viewed 19140 times
RTF now "fit" into Control Width
// 12.09.2022 v0.3.2 DownloadRange() change Index TAG "MSGDATE" -> "DUPECHECK"
// 13.09.2022 v0.3.3 EofBody(@cBody)
// 14.09.2022 v0.3.4 "DOS Error 32" when App "hang" in Tasklist
// 15.09.2022 v0.3.5 Net_Use()
// hb_Translate( oError:Description, cTranslateCP+"WIN" )
// 16.09.2022 v0.3.6 RichEdit_Body : HSCROLL .T. -> WordBreak RTF Width
// Debug Files -> GetThreadFileName(cWorkPath, nThreadNo )
// 17.09.2022 v0.3.7 Option /T -> Toolbar for Touchpad
FORUMHMG_62.zip
(1.77 MiB) Downloaded 396 times
have fun
Jimmy
User avatar
serge_girard
Posts: 3364
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: HMG Forum "Codebox" Reader

Post by serge_girard »

Thanks Jimmy !
There's nothing you can do that can't be done...
User avatar
AUGE_OHR
Posts: 2108
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: HMG Forum "Codebox" Reader

Post by AUGE_OHR »

hi,

BUG v0.3.7:
Fivewin CODE does include "invisible" Sign CHR(194) and CHR(160)

will be remove in next Version.

p.s. you can try to include CHR(194) and CHR(160) in HTMLsign.DBF and "reload" Thread
have fun
Jimmy
User avatar
AUGE_OHR
Posts: 2108
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: HMG Forum "Codebox" Reader

Post by AUGE_OHR »

next Version with BUG Fix
// 18.09.2022 v0.3.8 more Cursor (WAIT) and Icon for SayBarText()
// 19.09.2022 v0.3.9 DoErrorLog() -> ListLog( aError )
// 20.09.2022 v0.4.0 FiveWin : remove CHR(194) and CHR(160) in CODE
// 21.09.2022 v0.4.1 after CODE Rest of BODY is missing
// 22.09.2022 v0.4.2 IsInternet()
// 23.09.2022 v0.4.3 Translate FromClipBoard()
// 24.09.2022 v0.4.4 new Forum "Deskmodder" (German Hardware Forum)
FromClipBoard()
when BODY have BLOCKQUOTE there might be Sign where Google Translate fail
you can mark it in BODY and copy it to Clipboard

when Translate Window is visible and have Focus (!) use CTRL + V and paste it from Cipboard
it will translate what come from Clipboard

ListLog()
will get Error when download Message.
it will use MessageBoxTimeout() and NOT "stop" download
later it will show Dialog where you can re-read missing Message
reread_Thread.JPG
reread_Thread.JPG (193.72 KiB) Viewed 18911 times
FORUMHMG_69.zip
(1.78 MiB) Downloaded 351 times
have fun
Jimmy
Post Reply