Summary of the invention
In view of this, the object of the present invention is to provide a kind of implementation method of the BBS based on the web browsing event, the user's information releasing and the corresponding web page are combined.
For achieving the above object, the invention provides a kind of implementation method of the BBS based on the web browsing event, this method may further comprise the steps:
A. BBS system client self is set to the recipient of browsing event in all browser windows of current existence, and the recipient who opens the incident of closing window in the current operation system;
B. when the user browsed current browsing pages, the BBS system client obtained the World Wide Web web characteristic of current browsing pages according to the browsing event notice of the browser window transmission at current browsing pages place;
C. the BBS system client obtains the review information of current browsing pages according to the web characteristic that gets access to, and is presented in the current browsing pages according to the result that user's needs will get access to.
Wherein, the system client of BBS described in the steps A method that is set to the recipient of browsing event comprises:
A1. the BBS system client is determined the automation interface of all browser windows of current existence;
A2. the BBS system client obtains the tie point of browsing event in all browser windows according to described automation interface, and will self add in incident recipient's tabulation of described browsing event tie point.
Wherein, the system client of BBS described in the steps A is set to open the recipient's of the incident of closing window method and is:
The BBS system client obtains the tie point of opening the incident of closing window in the current operation system, and will self add in described incident recipient's tabulation of opening the incident tie point that closes window.
Wherein, the described method of obtaining the web characteristic of current browsing pages of step B comprises:
When B1. the user browses current browsing pages, the browser window at current browsing pages place sends the browsing event notice that carries this page web characteristic to the BBS system client, the BBS system client obtains the web characteristic of current browsing pages according to the browsing event notice that receives.
Wherein, before the described step B1, this method further comprises:
Judge whether the user opens new browser window, if, then send and open the event notice that closes window to the BBS system client, after the BBS system client is determined the automation interface of described new browser window, obtain the browsing event tie point of described new browser window, and will self add in incident recipient's tabulation of described browsing event tie point; Otherwise, execution in step B1.
Wherein, the described method of obtaining the review information of current browsing pages of step C comprises:
C11. the BBS system client is submitted to data processing server with the web characteristic of current browsing pages, the review information of this page of acquisition request;
C12. data processing server is an index with the web characteristic that receives, self searching corresponding review information, and judge whether to find review information, if find, then the review information that finds is returned to the BBS system client as lookup result, and finish originally to obtain the flow process of review information, otherwise, execution in step C13;
C13. data processing server sends to database with the web characteristic that receives, database is an index with described web characteristic, self searching corresponding review information, and judge whether to find review information, if find, then with the review information that finds as lookup result, return to the BBS system client by data processing server, otherwise, return the lookup result that does not have review information to the BBS system client by data processing server.
Wherein, the method that is presented in the current browsing pages of the described result that will get access to of step C comprises:
C21. the BBS system client makes one's options according to the lookup result prompting user who receives, if the user selects to check review information, execution in step C22 then, if the user selects the information of making comments, execution in step C23 then, if the user selects cancellation, then the prompting of sending of BBS system client disappears, and finishes this display result flow process;
C22. the review information with current browsing pages is shown to the user, and judges whether the user makes comments, if, execution in step C23 then; Otherwise, finish this display result flow process;
C23. the review information that the user is delivered is submitted to data processing server, and data processing server sends to database for storage with review information, and event memory is returned to the BBS system client.
Wherein, the described web characteristic with current browsing pages of the step C11 method of submitting to data processing server is:
The BBS system client sends the solicited message message that carries current browsing pages web characteristic to data processing server.
Wherein, the described review information that the user is delivered of step C23 is submitted to the method for data processing server and is:
The BBS system client sends the message that releases news carry the review information that the user delivers to data processing server.
Wherein, when searching review information described in step C12 and the step C13, this method further comprises: search the positional information that shows each review information present position in current browsing pages;
When described in step C12 and the step C13 review information that finds being returned to the BBS system client as lookup result, this method further comprises: the review information corresponding position information that finds is returned to the BBS system client.
Wherein, the method that the described review information with current browsing pages of step C22 is shown to the user is: the BBS system client is presented at the review information that receives on the correspondence position of current browsing pages according to the positional information that receives;
When the described review information that the user is delivered of step C23 was submitted to data processing server, this method further comprised: the review information corresponding position information that the user delivers is submitted to data processing server;
When the described data processing server of step C23 sent to database with review information, this method further comprised: the review information corresponding position information is sent to database.
Wherein, after the described step C, this method further comprises:
D. judge whether the user browses the new web page, if then return and carry out described step B; Otherwise, finish the flow process of this BBS implementation method.
Wherein, whether the described user of judgement browses the method for the new web page and is:
Judge the whether new unified resource location URL of input or whether refresh original web page or whether open new browser window and import URL in original browser window of user.
Wherein, before the described steps A, this method further comprises:
A01. start the BBS system client, submit to authentication server with using the user's of described BBS system client identity information, authentication server will verify that the result returns to the BBS system client after according to the identity information that receives this user being finished authentication;
A02. the BBS system client judges whether by authentication according to the checking result that receives, if, execution in step A then; Otherwise, finish the flow process of this BBS implementation method;
After the described step D, this method further comprises:
Judge whether to close the BBS system client, if then BBS system client notice authentication server is nullified this and is landed, otherwise, return execution in step D.
Wherein, described identity information comprises at least: Subscriber Number and password, and then the described method that subscriber identity information is submitted to authentication server of steps A 01 is: the BBS system client sends the login message that carries Subscriber Number and password to authentication server;
Described notice authentication server is nullified this method of landing: the BBS system client sends the logout message that carries Subscriber Number to authentication server.
Use the present invention, the user's information releasing and the corresponding web page can be combined.Particularly, the present invention has following advantage:
Among the present invention the BBS system client after startup, from data processing server or database, obtain the review information of user to current browsing pages, and when the user need check, the review information that gets access to is shown in the current browsing pages, has realized comment that the user delivered and combining by the comment webpage.
2. the present invention is when the user makes comments, not only submit the particular content of comment to data processing server, and submit to every to comment on pairing positional information, and when the user need check, the review information of current browsing pages is presented on separately the correspondence position, improves the user and check the intuitive and the convenience of review information.
Embodiment
For making purpose of the present invention, technical scheme clearer, below with reference to the accompanying drawing embodiment that develops simultaneously, the present invention is described in further detail.
The present invention is a kind of implementation method of the BBS based on the web browsing event, its basic thought is: after the BBS system client is caught all browser windows, obtain the web characteristic of current browsing pages, web characteristic according to current browsing pages, mutual by self and data processing server, obtain the review information of user, and show according to user's needs to current browsing pages.
Among the present invention, BBS is meant and allows the user to make comments at current browsing pages and the comment that the user delivered can be shown in current browsing pages; Current browsing pages is meant that the user browses the web page of behavior.As shown in Figure 1, BBS of the present invention system mainly comprises BBS system client, data processing server and database.Wherein, the BBS system client both can combine with the client of instantaneous communication system, can be used as again one independently client exist, web characteristic, the request msg processing server of being responsible for obtaining current browsing pages provides review information and the review information that gets access to need be shown according to the user; Data processing server is responsible for preserving part review information and every residing positions of review information such as review information of checking the webpage that frequency is higher such as the user, and from self or database, extract required review information according to the request of BBS system client, return to the BBS system client; Database is responsible for preserving whole review information and the residing position of review information, and under the request of data processing server, returns corresponding review information and positional information.In addition, in BBS of the present invention system, the BBS system client can be realized being connected with data processing server by Internet net or wireless network.
Various piece in the BBS of the present invention system employed message when mutual comprises following four parts:
1. communications packets opening flag position (Stx): show the beginning of message, promptly the part after this Stx flag bit is the particular content of this message;
2. message header: the information such as type, length that comprises this message;
3. message body: the particular content that comprises this message;
4. communications packets end mark position (Etx): show the end of message, promptly any numeral after this Etx flag bit or character all do not belong to this message, and the numerical value of Etx flag bit is different from the numerical value of Stx flag bit.
In the message that adopts above-mentioned form, message header is further by forming with the lower part:
1. length (Length): show the length of this message, adopt the short shaping numerical table of no symbol of 2 bytes to show;
2. version information (Version): show the major version number of this message institute use agreement, take 1 byte;
3. command word (Command ID): show the specific instructions of this message, adopt the short shaping numerical table of no symbol of 2 bytes to show;
4. sequence number (Sequence No): show the sequence number of this message in all message, adopt the short shaping numerical table of no symbol of 2 bytes to show;
5. reserved field (Reserved Field): the field of reservation, so that expansion.
In addition, message body of the present invention mainly comprises four types: login message body, logout message body, message body and solicited message message body release news.Wherein the particular content of various message bodies is:
1. land (Login): adopt such as the command word of CMD LOGIN form and such as the command number of 0x01.This message body comprises number (ID) and two parts of authentication password (Key), and ID takies 4 bytes, the number of expression BBS system client user identity; Key takies 32 bytes, and the pairing password of expression ID is so that carry out authentication to the user.
2. nullify (Logout): adopt such as the command word of CMD_LOGOUT form and such as the command number of 0x02.This message body includes only part of ID, and the ID in its meaning and the login message body is identical.
3. (IssueMsg) releases news: adopt such as the command word of CMD_SENDMSG form and such as the command number of 0x03, this message body comprises ID, message positional information, message format information, message-length (MsgLen) and message content five parts such as (Msg).Wherein, the implication of ID is identical in ID and the login message body; MsgLen takies 2 bytes, shows the length of Msg part; The byte number that Msg takies is determined according to its particular content; The message positional information accounts for 4 bytes, and message format information accounts for 2 bytes.
4. solicited message (RequestMsg): adopt such as the command word of CMD_RECVMSG form and such as the command number of 0x04.This message body comprises ID, MsgLen and three parts of Msg.Wherein, the implication of ID is identical in ID and the login message body; MsgLen shows the length of Msg part, comprises the employed keyword of request review information among the Msg, for example: unified resource location (URL) information of webpage.
Among the present invention, each message is named according to message body wherein, for example: adopt the login message body to be configured for asking the user is carried out the login message of authentication, adopt the logout message body to be configured for asking to nullify the logout message that this lands, the employing message body that releases news is configured for submitting to the message that releases news of information that the user makes comments, and adopts solicited message message body to be configured for the solicited message message of the review information of the current browsing page of acquisition request.
Below, independently exist for example with the BBS system client, the implementation method of BBS among the present invention is described.
As shown in Figure 2, the method that BBS is realized in the present embodiment may further comprise the steps:
Step 201. starts the BBS system client, and the requests verification server carries out authentication, after authentication server is finished checking, will verify that the result returns to the BBS system client.
In this step, after the BBS system client starts, at first send the login message of the identity information that carries the user who uses this client to authentication server, the requests verification server carries out authentication to this user; Then, authentication server parses the identity information of user side from the login message that receives, i.e. Subscriber Number and authentication password, and, this user is carried out authentication according to self record; After finishing checking, authentication server returns to the BBS system client with checking result successful or failure.In addition, the authentication server in the present embodiment can adopt the authentication server that has existed in the network, for example: the employed authentication server of JICQ.
Step 202. BBS system client judges whether by authentication according to the checking result who receives, if then execution in step 103; Otherwise, finish the flow process of this BBS implementation method.
In this step, the checking result who returns according to authentication server is successfully or fails, and determines that whether this user is by authentication.
Step 203. BBS system client carries out the static state seizure to all browser windows of current existence, and current operation system is carried out motion capture.
Particularly, the described static method of catching of this step comprises:
203a. the BBS system client, determines that the user works as the automation interface of all browser windows of front opening by obtaining the ShellWindows assembly.
The ShellWindows assembly is a kind of assembly in the Shell programmed environment that provides of Windows system, its role is to: the information of all windows that will be opened in current Windows system offers application program.Therefore the BBS system client is determined the automation interface of the browser window that all are opened by obtaining this ShellWindows assembly in this step.
203b. the BBS system client according to the automation interface of determining, obtains the tie point of browsing event in all browser windows, and will self add in incident recipient's tabulation of the tie point that is obtained.
For each browser window, all there is multiple incident, for example: browsing event etc., and all there is the tie point that can supply this incident recipient to articulate in any incident, and when incident takes place, all can notify the recipient in the tabulation that is on this incident tie point.Therefore in this step the BBS system client at first according to determined automation interface among the step 203a, get access to the tie point of browsing event, then self is added in incident recipient's tabulation of the tie point that is obtained, when then after this browsing event occurring, the BBS system client can both be known.
So far, finished the static state of browser window has been caught.
The method of motion capture described in this step is:
The BBS system client utilizes the ShellWindows assembly among the step 203a, obtains the tie point of opening the incident of closing window in the current operation system, and will self add in incident recipient's tabulation of the tie point that is obtained.
So far, finished motion capture to current operation system.
Step 204. is obtained the web characteristic of current browsing pages.
Web characteristic described in this step is the URL of current browsing pages or the title of this page etc., the effect of this web characteristic is: be convenient to that data processing server provides the user review information at this page according to the web characteristic of this page in the subsequent step.As shown in Figure 3, be example with the URL of the page as the web characteristic, the method for obtaining current browsing pages web characteristic in this step comprises:
204a~204b. judges whether the user opens new browser window, if, then producing and open the incident of closing window, the BBS system client receives opens the event notice that closes window, and determines the automation interface of new browser window; Otherwise, execution in step 204d.
Since the user both can be in original browser window browsing page, can come browsing page by opening new browser window again, so judge among the step 204a whether the user opens new browser window, so that the operation of definite subsequent step.
Because through after the motion capture of step 203, the BBS system client has become one of recipient who opens the incident of closing window, therefore when the user opens new browser window, produce the incident of closing window of opening in the current operation system, and open the event notice that closes window to the transmission of BBS system client; Then, the BBS system client utilizes the ShellWindows assembly among the step 203a, the automation interface of definite browser window of newly opening.
Step 204c. BBS system client carries out static state to new browser window and catches.
In this step, the BBS system client is according to the automation interface of the new browser window of determining, obtain the browsing event tie point of new browser window, and will self add in incident recipient's tabulation of this tie point, so that know the browsing event that produces in the new browser window.
During the step 204d. user browsing web page, send the browsing event notice to the BBS system client, the BBS system client obtains the URL information of current browsing pages according to the browsing event notice that receives.
In this step, when user's browsing web page, produce browsing event in the browser window at this web page place, and send the browsing event notice that carries current browsing pages URL information to all recipients of this window browsing event tie point.Because after static the seizure, the BBS system client is one of recipient of browsing event, therefore, the BBS system client can receive the browsing event notice.Then, the BBS system client parses the URL information of current browsing pages from the browsing event notice that receives, so that determine the web characteristic of this page.
So far, finished obtaining of current browsing pages URL information.
Step 205. BBS system client is according to the web characteristic that gets access to, and is mutual with data processing server, obtains the review information of current browsing pages, and shows according to user's needs.
As shown in Figure 4, the review information with current browsing pages comprises according to the method that user's request shows:
Step 205a~205b. BBS system client is submitted to data processing server with the web characteristic of current browsing pages, the review information of this page of acquisition request; Data processing server is searched review information according to the request that receives, and lookup result is returned to the BBS system client.
The BBS system client at first sends the solicited message message that carries current browsing pages web characteristic to data processing server, and the request msg processing server provides the review information of this page; Then, data processing server parses the web characteristic of current browsing pages from the request that receives, and be index with this web characteristic, search at self, if find corresponding review information, then with the review information that finds and the positional information that shows every review information present position in current browsing pages as lookup result, return to the BBS system client; If can not find, then the web characteristic that receives is sent to database, review information by the database lookup correspondence, if database finds corresponding review information, then with the review information that finds and the positional information that shows every review information present position in current browsing pages as lookup result, return to the BBS system client by data processing server, if database can not find, then return the lookup result that does not have review information to the BBS system client by data processing server.
Step 205c~205d. judges whether there is review information in the current browsing pages according to the lookup result that receives, if, execution in step 205e then; Otherwise BBS system client prompting user does not have review information, and finishes the flow process of this demonstration review information.
If the BBS system client receives the lookup result that comprises review information and positional information thereof, then carry out subsequent step; If receive the lookup result that does not have review information, then inform in the current browsing pages of user not have review information.When not having review information, the BBS system client is pointed out the user by eject the mode of display frame below screen.
Step 205e~205f. BBS system client makes one's options according to the lookup result prompting user who receives, if the user selects to see subsides, then execution in step 205g; If the user selects to post, then execution in step 205i; If the user selects cancellation, then the prompting of sending of BBS system client disappears, and finishes this demonstration review information flow process.
After the BBS system client receives lookup result,, notify the user to select according to the needs of self by such as the mode that below screen, ejects hint image.Present embodiment offers three kinds of selections of user: see subsides, promptly check the review information in the current browsing pages; Post, promptly the content of current browsing pages is made comments; Cancellation is not promptly checked the review information in the current browsing pages, and is not made comments at the content in this page yet.
Step 205g~205h. is shown to the user with the review information of current browsing pages, and judges whether the user makes comments, if, execution in step 205i then; Otherwise, finish this demonstration review information flow process.
Select to see under the situation of subsides that the BBS system client is presented at the review information in the current browsing pages on the correspondence position of this page according to the positional information that receives among the step 205g the user.
Step 205i~205j. submits to data processing server with review information and corresponding position information that the user delivers, data processing server sends to database for storage with review information and corresponding position information again, and event memory is returned to the BBS system client.
When the user made comments at current browsing pages, the BBS system client was submitted to data processing server by the transmission message that releases news with review information and corresponding position information thereof; Data processing server parses review information and corresponding position information thereof again from the message that releases news that receives, submit to database; Database returns to the BBS system client again by data processing server with event memory successful or failure.
So far, finished the flow process that shows review information.
Step 206. judges whether the user browses the new web page, if then return execution in step 204; Otherwise, execution in step 207.
In this step,, judge that then the user browses the new web page if the user imports new URL, refreshes original web page or open new browser window and import URL in original window; Otherwise, judge that the user does not browse the new web page.
Step 207~208. judge whether to close the BBS system client, if then BBS system client notice authentication server is nullified this and landed; Otherwise, return execution in step 206.
Close the user under the situation of BBS client, this client carries the logout message of Subscriber Number by transmission, and the notice authentication server is nullified this and landed.
So far, finished the implementation method of BBS in the present embodiment.
More than be the embodiment of BBS system client when independently existing, in the above-mentioned flow process, for same user, the BBS system client can use different Subscriber Numbers and corresponding password with instant communication instrument client terminal; And in BBS system client and embodiment that the instantaneous communication system client combines, for same user, the BBS system client uses identical Subscriber Number and corresponding password with the instantaneous communication system client.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being made, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.