Page 1 of 2

Access to HmgForum unread posts

Posted: Fri Feb 23, 2018 8:37 am
by hmgchang
Dear Masters,

I want to access the hmgforum unread posts from hmg code :
but everytime i was asked to program login screen, how can i provide the username and password by code ?
Capture01.JPG
Capture01.JPG (59.47 KiB) Viewed 1696 times
my code is :
Main.zip
(1.03 KiB) Downloaded 90 times

Re: Access to HmgForum unread posts

Posted: Tue Feb 27, 2018 3:56 am
by hmgchang
Dear All,
Screenshot_2018-02-27-10-41-11.png
Screenshot_2018-02-27-10-41-11.png (285.75 KiB) Viewed 1636 times
As can be seen i hv 6807 unread topics.
So i want to code with hmg in order to save all the unread posts. Without the browser
1. I need to save to unread index to get all the post url
2. Read from the url and save each topic in seperate folder with each html file for each page
3. Mol showed me how to save a url but hmgforum always direct me to the login for username and password. How to skip the login by providing the usename and password by code ?
4. After succeded if possible to mark the post as read...
5. Then i can read the post offline during time with no connectivity


TIA
Chang

Re: Access to HmgForum unread posts

Posted: Tue Feb 27, 2018 8:36 am
by serge_girard
That would be a nice thing to have!
At the moment I cannot help you but within a few days I can take a look!

Serge

Re: Access to HmgForum unread posts

Posted: Wed Apr 04, 2018 9:26 pm
by hmgchang
now even worse :

this is what you see :
whatyousee.JPG
whatyousee.JPG (158.43 KiB) Viewed 1449 times
after this page saved as ( complete html), and opened offline with your browser,
this is what you get :

whatyouget2.JPG
whatyouget2.JPG (83.75 KiB) Viewed 1449 times

:roll:
it seem after 'capcay' and 'keong racun'... :lol:
pls spare me... :roll:

TIA

best rgds
Chang

Re: Access to HmgForum unread posts

Posted: Thu Apr 05, 2018 7:19 am
by serge_girard
Chang,

Please send your PRG as well!

Serge

Re: Access to HmgForum unread posts

Posted: Thu Apr 05, 2018 1:46 pm
by mol
I don't think it's possible to omit login screen.
Everytime you log in to the forum, you get session id. If you do not use forum for few minutes, this session id dies and you need to log in again.
This session id is passed by php scripts from start page to the next.

Re: Access to HmgForum unread posts

Posted: Thu Apr 05, 2018 2:01 pm
by Rathinagiri
Rightly said Marek.

Sorry I didn't see this topic previously.

You have to use the sessionid to move into the member area of phpbb forum.

I can give you a clue: You can grab the sessionid once you know the username and password using curl.

Re: Access to HmgForum unread posts

Posted: Thu Apr 05, 2018 9:33 pm
by hmgchang
Dear Sirs,

My appreciation for your responds.
I understand fully about the security for the right username and password....
As we do with the browser:
1. login successfully
2. read what we suppose to read
3. save our pages for offline reading

my question is :
1. How to do it with hmg programming
2. In the hmg program, I provide :
a. The hmgforum unread-posts address, my username, my password
b. read the url ( a)
c. open every unread-post and save it as a html file with the attachment if available
d. when it is saved then i can mark as read
3. I hope you understand that i am not connected to the internet all of the time
4. In order not to miss to much of this forum ( even thousands) posts, i need a quick way to be able to save it
5. So the issue is not to 'by pass' the security ( hacked) into the hmgforum

TIA

best rgds,
Chang

Re: Access to HmgForum unread posts

Posted: Thu Apr 05, 2018 9:44 pm
by hmgchang
Dear Mr. Serge Girard,
I use Mr. Marek's saveUrl code :

Code: Select all

FUNCTION Main_Button_SaveUrl_Action()  
  cUrl := "https://bestlife.longrich.co.id/frontend/"
  // cUrl := "http://www.molsystemy.pl/molsystemy17/index.php"
  cUrl := "http://hmgforum.com/viewtopic.php?f=24&t=5255"
  cUrl := InputBox( "Enter Url :", "Save Url", cUrl) && )
  mol_SaveUrl( cUrl)
  RETURN NIL
viewHtml_mol.zip
(3.44 KiB) Downloaded 59 times
Thks Mr. Marek for the code, but if you may modify so i can provide the username & password

Re: Access to HmgForum unread posts

Posted: Thu Apr 05, 2018 9:52 pm
by hmgchang
Dear Mr. Rathina Giri,
Thanks for improving this forum.
Last month i can save my unread posts by pressing the Ctrl-S ( Mozilla) and read it offline
Now.... pressing Ctrl-S to save the page but when offline all i can read is the login page :?: :?: :?:

its a sophisticated master skill to do that... salute...