Access to HmgForum unread posts

Moderator: Rathinagiri

User avatar
hmgchang
Posts: 273
Joined: Tue Aug 13, 2013 4:46 am
Location: Indonesia

Access to HmgForum unread posts

Post 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 4015 times
my code is :
Main.zip
(1.03 KiB) Downloaded 202 times
Just Hmg It !
User avatar
hmgchang
Posts: 273
Joined: Tue Aug 13, 2013 4:46 am
Location: Indonesia

Re: Access to HmgForum unread posts

Post by hmgchang »

Dear All,
Screenshot_2018-02-27-10-41-11.png
Screenshot_2018-02-27-10-41-11.png (285.75 KiB) Viewed 3956 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
Just Hmg It !
User avatar
serge_girard
Posts: 3158
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: Access to HmgForum unread posts

Post 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
There's nothing you can do that can't be done...
User avatar
hmgchang
Posts: 273
Joined: Tue Aug 13, 2013 4:46 am
Location: Indonesia

Re: Access to HmgForum unread posts

Post by hmgchang »

now even worse :

this is what you see :
whatyousee.JPG
whatyousee.JPG (158.43 KiB) Viewed 3769 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 3769 times

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

TIA

best rgds
Chang
Just Hmg It !
User avatar
serge_girard
Posts: 3158
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: Access to HmgForum unread posts

Post by serge_girard »

Chang,

Please send your PRG as well!

Serge
There's nothing you can do that can't be done...
User avatar
mol
Posts: 3718
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Access to HmgForum unread posts

Post 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.
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Access to HmgForum unread posts

Post 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.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
hmgchang
Posts: 273
Joined: Tue Aug 13, 2013 4:46 am
Location: Indonesia

Re: Access to HmgForum unread posts

Post 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
Just Hmg It !
User avatar
hmgchang
Posts: 273
Joined: Tue Aug 13, 2013 4:46 am
Location: Indonesia

Re: Access to HmgForum unread posts

Post 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 172 times
Thks Mr. Marek for the code, but if you may modify so i can provide the username & password
Just Hmg It !
User avatar
hmgchang
Posts: 273
Joined: Tue Aug 13, 2013 4:46 am
Location: Indonesia

Re: Access to HmgForum unread posts

Post 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...
Just Hmg It !
Post Reply