Summary of the invention
In view of this, the invention provides a kind of information interactive method and system, solved the problem that can not realize carrying out between blog polymeric type website and the source blog instant information interaction in the prior art.
For realizing above-mentioned purpose, the present invention provides following technical scheme:
A kind of information interactive method comprises:
The comment of obtaining that the reception sources blog is sent is asked, and carries the sign of active blog articles in the described request;
Sign according to the said source blog articles in the described request; Inquire about service code preset in the blog articles of said source; Said preset service code is that the source blog is when linking to the blog polymeric network with subscribing to really simple syndication (RSS); The server of blog polymeric network is subscribed to the corresponding service code of each article in preset and the source blog according to RSS, and said service code is corresponding one by one with the source blog articles;
The web page interlinkage that the said service code of foundation obtains said source blog articles;
In said blog polymeric network, inquire about and the corresponding review information of said source blog articles according to said web page interlinkage, and generate the comment file;
Said comment file is back in the blog of said source according to said web page interlinkage, and is shown in the webpage corresponding with said source blog articles.
Preferable, said web page interlinkage of obtaining said source blog articles according to said service code comprises: obtain the web page interlinkage after the encryption.
Preferable, the said web page interlinkage of said foundation is inquired about before the review information corresponding with said source blog articles in said blog polymeric network, comprises, said encryption back web page interlinkage is deciphered.
Preferable, the said web page interlinkage of said foundation is inquired about before the review information corresponding with said source blog articles in said blog polymeric network, also comprises, checks whether said review information exists with expired, if existence and not out of date then generates the comment file.
Preferable, said comment file is sent in the corresponding webpage of said source blog articles and shows with the Flash form.
Preferable, also comprise:
The return information that the bloger who receives said source blog articles imports on the said comment file that shows with the Flash form, and generate new comment file and be back in the corresponding webpage of source blog articles.
A kind of information interaction system comprises:
Receiving element is used for the comment request of obtaining that the reception sources blog is sent, and carries the sign of active blog articles in the described request;
Query unit; Be used for after receiving described request; According to the sign of the said source blog articles in the described request, the preset service code in the query source blog articles, said preset service code is that the source blog is when being connected to the blog polymeric network with the RSS subscription chain; The server of blog polymeric network is subscribed to the corresponding service code of each article in preset and the source blog according to RSS, and said service code is corresponding one by one with the source blog articles;
Acquiring unit, the web page interlinkage that the said service code of foundation obtains said source blog articles;
File generating unit is inquired about in said blog polymeric network and the corresponding review information of said source blog articles according to said web page interlinkage, and generates the comment file;
Transmitting element is back to said comment file in the blog of said source according to said web page interlinkage, and is shown in the webpage corresponding with said source blog articles.
Preferable, also comprise in the said system:
Updating block is used to receive the return information that the bloger of said source blog articles imports on the said comment file that shows with the Flash form, and generates new comment file and be back in the corresponding webpage of source blog articles.
Can know via above-mentioned technical scheme; Compared with prior art; The present invention openly provides a kind of information interactive method and system, through the comment request corresponding with the source blog articles in the blog polymeric network of obtaining of reception sources blog transmission, inquires about and read the service code in the blog articles of source; And obtain the website links that shows this article according to this service code; Utilize the website links get access to again, the requester network user is to this article in the blog polymeric network, and the comment that will inquire feeds back to the blog that original contents is provided; Be shown in the Flash form in the webpage of source blog articles; Make the bloger need not login these blog polymeric type websites and just can see other people comment, realize the information interaction between blog polymerization site and the source blog, increased interactive between blog polymeric type website and the source blog for own article.
In addition; The bloger of source blog can deliver return information on the comment file that shows with the Flash form; Through utilizing the shared object technology of Flash, the return information that the bloger of blog polymeric network reception sources blog articles is imported on the comment file that shows with the Flash form, and generate new comment file and be sent in the corresponding webpage of source blog articles; Realized that the instant messages between blog polymerization site and the source blog is interactive, reduced the information interaction cost between the website.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
A kind of information interactive method provided by the present invention utilizes the bloger of source blog that the aggregated content (RSS, Really Simple Syndication) of oneself is subscribed to; With blog polymeric type web site url, make blog polymeric type website can collect the article in the blog of bloger source, and from blog polymeric type website, obtain the comment corresponding accordingly with the source blog articles; For realizing the information interaction between blog polymeric type website and the source blog; The embodiment of the invention discloses a kind of information interactive method, at first, through the comment request corresponding in the blog polymeric network of obtaining of reception sources blog transmission with the source blog articles; Inquiry is also read the service code in the blog articles of source; And obtain the website links that shows this article according to this service code, and utilizing the website links that gets access to again, the requester network user is to this article in the blog polymeric network; And the comment that will inquire feeds back to the blog that original contents is provided; Be shown in the Flash form in the webpage of source blog articles, make the bloger need not login these blog polymeric type websites and just can see other people comment, realize the information interaction between blog polymerization site and the source blog for own article.In the embodiment of following discloses of the present invention, the blog polymeric network is called for short in blog polymeric type website.
See also accompanying drawing 1, be the disclosed a kind of information interactive method flow chart of first embodiment of the invention, mainly may further comprise the steps:
Step S11, the comment of obtaining that the server reception sources blog of blog polymeric network is sent is asked, and in this request, carries the sign of active blog articles.
Because the bloger is connected to the RSS subscription chain of source blog in the blog polymeric network; After the bloger of source blog logins the source blog; For obtain the comment that the source blog articles obtains in the blog polymeric network; When the bloger clicked the article in the blog of source, the source blog had promptly been sent to the blog polymeric network simultaneously and has been obtained the comment request, in this request, carries the sign of active blog articles.And the relevant treatment of this request of being directed against, to obtain comment corresponding in the blog polymeric network with the source blog articles.Realize the information interaction between blog polymeric network and the source blog.
Step S12, according to the sign of the source blog articles of carrying in the request of obtaining comment that receives among the step S11, preset service code in the source blog articles of clicking by the server lookup bloger of blog polymeric network.
In step S12; Preset service code is that the source blog is when being connected to the blog polymeric network with the RSS subscription chain; The server of blog polymeric network is subscribed to the corresponding service code of each article in preset and the source blog according to RSS, sets up linking between blog polymeric network and the source blog articles with this.When execution in step S11 receives the request of obtaining comment, by the above-mentioned preset corresponding service code of clicking with the bloger of source blog articles of the server lookup of blog polymeric network.This service code and source blog articles are one to one; Promptly at the article that shows on the blog polymeric network that reception sources blog RSS subscribes on this source blog; And when showing the source blog articles; In the program of the source of calling of blog polymeric network blog articles, add preset service code, for the information interaction between blog polymeric network and the source blog is set up necessary mutual foundation.
Step S13, the server of blog polymeric network obtain the web page interlinkage of this source blog articles according to the service code that inquires among the step S12.
In step S13, according to the service code that inquires, what obtain is the link of the webpage that on the blog of source, shown of this source blog articles by the server of blog polymeric network, and what promptly obtain is the network address in the source of the source blog articles that shows on the blog polymeric network.Obtain the web page interlinkage in this blog articles source, source; Even if when the same title or the article of identical content in different blogs, occurring; Also can be directed against and the web page interlinkage one to one of source blog articles, confirm to carry out the source blog of information interaction and the corresponding relation between the blog polymeric network.
Step S14, by the server of blog polymeric network according to the web page interlinkage that gets access among the step S13, inquiry and the corresponding review information of above-mentioned source blog articles in the blog polymeric network, and file is commented in generation.
In step S14; According to the web page interlinkage that gets access to behind the execution in step S13; Inquiry to the comment of the article that shows in this web page interlinkage, and is carried out conversion process by the comment that the server of blog polymeric network will inquire in the blog polymeric network, generate the comment file.Promptly generate a swf file.So-called swf file is the abbreviation of (shock wave flash), is meant a kind of animation file form of supporting vector and dot chart.The swf file that here generates will be kept at and source blog articles web page interlinkage one to one in the blog polymeric network, the md5 value of file this web page interlinkage by name.Because the md5 value of web page interlinkage all is unique, and has the effect of encryption, so names with the md5 value of this web page interlinkage and can guarantee that the swf file can arbitrarily do not distorted by illegal operation person.In addition, the form of comment file also can be the combination in any of files such as the text document that can transmit or picture.But the form of commenting on file in an embodiment of the present invention is not limited in this.
It should be noted that in the webpage that obtains connects, comprise the web page interlinkage after the web page interlinkage that not have to encrypt and the encryption.After the web page interlinkage after getting access to encryption; The web page interlinkage of the encryption that at first will be received by the server of blog polymeric type website is deciphered; And then according to the web page interlinkage after the deciphering, inquiry to the comment of the article that shows in this web page interlinkage, and is carried out conversion process by the comment that the server of blog polymeric network will inquire in the blog polymeric network; Generate the comment file, promptly generate a swf file.
Step S15 is back to the comment file that generates among the step S14 in the blog of source according to above-mentioned web page interlinkage by the server of blog polymeric network, and will comment on file and be shown in the webpage corresponding with this source blog articles.
In step S15, the comment file that the web page interlinkage of originating according to the source blog articles will generate is back in the blog of source, and this this comment file is shown in the webpage corresponding with this source blog articles.Realize the information interaction between blog polymerization site and the source blog, increased interactive between blog polymeric type website and the source blog.Wherein, owing to the comment file that feeds back to the source blog to the source blog articles is a swf file, then the comment file shows with the Flash form in the corresponding webpage of source blog articles.See also accompanying drawing 2, be the comment file Flash sketch map of a kind of information interactive method feedback of the present invention, but comment file of the present invention is not limited in this with the structure that the Flash form shows.
From accompanying drawing 2, can find out; The user of blog polymeric network utilizes the number of the account on the blog polymeric network that the source blog articles is commented on; And can be presented on the corresponding webpage of source blog articles through method of the present invention; Main cause is because with carrying out the comment file that conversion process generates in the blog polymeric network, the swf file that promptly generates adopts the Flash form to show.
Generally speaking; The network user's in each website log-on message is to use Cookie to preserve; And Cookie can receive the restriction of website domain name; If adopt Cookie to preserve the user login information in the blog polymeric network, then can't the associative operation that login user is carried out in the blog polymeric network be presented in other websites.Therefore the present invention's shared object technology of having adopted Flash is kept at the user's of blog polymeric network log-on message in the blog polymeric network; Not only can set up the review information of explicit user in the source blog link with the blog polymeric network; And can be in user capture when other set up the article in the blog website link with the blog polymeric network, needn't login once more also and can operate.
In addition, because the comment file of feedback, promptly the swf file adopts the Flash form on the corresponding webpage of source blog articles, to show, can not receive the influence of the CSS (CSS, Cascading Style Sheet) of website, can guarantee to comment on the correct demonstration of content.
It should be noted that on the basis of above-mentioned disclosed method of the present invention, also comprise; The web page interlinkage of in according to step S13, obtaining; And in the blog polymeric network before the inquiry review information corresponding with above-mentioned source blog articles, whether the review information that is inquired by the server of blog polymeric network exists with expired, as if existence and not out of date; Carry out conversion process again and generate the comment file, promptly generate a swf file.If the review information that inquires exists expired or has not existed; Then inquire about again by the server in the blog polymeric network; And will inquire eligible; Promptly existence and not out of date review information are handled again, generate new comment file, promptly generate new swf file and preservation.
In the disclosed information interactive method of the invention described above; Realized in the blog polymeric network, showing the article of source blog; And with feeding back in the blog of source to the comment of this source blog articles in the blog polymeric network; Promptly realize the information interaction between blog polymeric network and the source blog, increased interactive between blog polymeric type website and the source blog.See also accompanying drawing 3, be the flow chart of the disclosed a kind of information interactive method of second embodiment of the invention, on the basis of the disclosed information interactive method of the invention described above, also comprise step S16.
Step S16, the return information of on the comment file that shows with the Flash form, importing by the bloger of the server reception sources blog articles of blog polymeric network, and generate new comment file and be back in the corresponding webpage of source blog articles.
Performed step S15 in the disclosed information interactive method of the invention described above shows the review information of feeding back with the Flash form, and has adopted the shared object technology of Flash to know by accompanying drawing 2 and the present invention; In the review information that shows with the Flash form, allow the bloger that review information is replied; Execution in step S16 receives bloger's return information by the server in the blog polymeric network, and verifies whether bloger's log-on message is correct; Behind the correct judgment; Return information is preserved in the database of blog polymeric network, transferred the user's who preserves in the blog polymeric network log-on message again by Flash, and user's review information; Regenerate new comment file, promptly generate a new swf file and be back in the corresponding webpage of source blog articles.Equally; When the bloger carries out refresh operation; New comment to this source blog articles in the polymerization blog net also can regenerate a new comment file; Promptly generate a new swf file and feed back in the corresponding webpage of source blog articles, not only realized the synchronous renewal of commenting between source blog and the blog polymeric network.Be the synchronous renewal of information interaction, but also reduced the information interaction cost between the website.
Above-mentionedly specified the processing method that the present invention is used for the network information; Can adopt the system of various ways to realize for method of the present invention; Therefore; On the basis of a kind of information interactive method disclosed by the invention, a kind of information interaction system is also disclosed, see also accompanying drawing 4 and be the system block diagram of the disclosed a kind of information interaction of first embodiment of the invention.Specifically comprise: receiving element 41, query unit 42, acquiring unit 43, file generating unit 44 and transmitting element 45.
Receiving element 41 is used for the comment request of obtaining that the reception sources blog is sent, and carries the sign of active blog articles in this request.
Because the bloger is connected to the RSS subscription chain of source blog in the blog polymeric network; After the bloger of source blog logins the source blog; When the bloger clicks the article in the blog of source, promptly sent a request of obtaining comment to the blog polymeric network simultaneously, carry the sign of active blog articles in this request.The comment of obtaining by the server reception sources blog of blog polymeric network is sent is asked, to obtain comment corresponding with the source blog articles in the blog polymeric network.Realize the information interaction between blog polymeric network and the source blog.
Query unit 42 is used for after receiving element 41 receives the request of obtaining comment, according to the sign of the said source blog articles in this request, the service code in the query source blog articles.Service code in the query source blog articles.
Service code in the blog articles of source is preset, and is to subscribe to the corresponding service code of each article in preset and the source blog by the server of blog polymeric network according to RSS, and this service code and source blog articles are one to one.The above-mentioned preset corresponding service code of clicking with the bloger of source blog articles of query unit 42 inquiry is for the information interaction between source blog and the blog polymeric network is set up foundation.
Acquiring unit 43, the web page interlinkage that the service code that inquires according to query unit 42 obtains this source blog articles.
After query unit 42 inquires the service code corresponding with the source blog articles of bloger's click; Acquiring unit 43 is according to the service code that inquires; What obtain is the link of the webpage that on the blog of source, shown of this source blog articles, and what promptly obtain is the network address in the source of the source blog articles that shows on the blog polymeric network.Obtain the web page interlinkage in this blog articles source, source; Even if when the same title or the article of identical content in different blogs, occurring; Also can be directed against and the web page interlinkage one to one of source blog articles, confirm to carry out the source blog of information interaction and the corresponding relation between the blog polymeric network.
File generating unit 44 is inquired about in the blog polymeric network and the corresponding review information of above-mentioned source blog articles according to the web page interlinkage that acquiring unit 43 gets access to, and generates the comment file.
In the web page interlinkage that gets access to according to acquiring unit 43; Inquiry is directed against the comment of the article that shows in this web page interlinkage in the blog polymeric network; And carry out conversion process by the comment that file generating unit 44 will inquire, and generate the comment file, promptly generate a swf file.The swf file that here generates will be kept at and source blog articles web page interlinkage one to one in the blog polymeric network, the md5 value of file this web page interlinkage by name.Because the md5 value of web page interlinkage all is unique, and has the effect of encryption, so names with the md5 value of this web page interlinkage and can guarantee that the swf file can arbitrarily do not distorted by illegal operation person.In addition, the form of comment file also can be the combination in any of files such as the text document that can transmit or picture.But the form of commenting on file in an embodiment of the present invention is not limited in this.
Transmitting element 45, the comment file that file generating unit 44 is generated is back in the blog of source according to above-mentioned web page interlinkage, and is shown in the webpage corresponding with this source blog articles.
Because the web page interlinkage that transmitting element 45 obtains according to above-mentioned acquiring unit 43, the comment file that file generating unit 44 is generated feeds back in the blog of source, and this comment file is shown in the webpage corresponding with this source blog articles.Realize the information interaction between blog polymerization site and the source blog, increased interactive between blog polymeric type website and the source blog.Wherein, owing to the comment file that feeds back to the source blog to the source blog articles is a swf file, then the comment file shows with the Flash form in the corresponding webpage of source blog articles.Adopt the Flash form to show that the comment content that makes feedback can not receive the influence of website CSS CSS, can guarantee to comment on the correct demonstration of content.Realize the information interaction between blog polymerization site and the source blog, increased interactive between blog polymeric type website and the source blog
See also accompanying drawing 5, be the system block diagram of the disclosed a kind of information interaction of second embodiment of the invention.In the basis of the system of the above-mentioned disclosed a kind of information interaction of the present invention, comprise in the file generating unit 44: query unit 441, detecting unit 442 and generation unit 443.
Query unit 441 is inquired about in the blog polymeric network and the corresponding review information of above-mentioned source blog articles according to the web page interlinkage that acquiring unit 43 gets access to.
Whether detecting unit 442 is used to examine the review information that side query unit 441 inquires and exists with expired, if exist and not out of date, then gets into generation unit 443; If do not exist or out of date, then return query unit 441 and inquire about qualified review information again.
Generation unit 443 generates the comment corresponding with the source blog articles with qualified review information.
The review information that in detecting unit 442, query unit 441 is inquired detects; Make qualified review information can carry out generation unit 443; And qualified review information is carried out conversion processing by generation unit 443, and generate the comment file, promptly generate the swf file.So that transmit when between blog polymeric network and source blog, carrying out information interaction.
In addition; In the system of the disclosed information interaction of the invention described above; Realized in the blog polymeric network, showing the article of source blog; And, promptly realized the information interaction between blog polymeric network and the source blog with feeding back in the blog of source to the comment of this source blog articles in the blog polymeric network, increased interactive between blog polymeric type website and the source blog.On the basis of the system of the disclosed information interaction of the invention described above, also comprise in the system of information interaction of the present invention: updating block 46.See also accompanying drawing 6, be the system block diagram of the disclosed a kind of information interaction of third embodiment of the invention.
Updating block 46, the return information that the bloger who is used for the reception sources blog articles imports on the comment file that shows with the Flash form, and generate new comment file and be back in the corresponding webpage of source blog articles.
Owing in system disclosed by the invention, adopted the shared object technology of Flash; In the review information that shows with the Flash form, allow the bloger that review information is replied, receive bloger's return information, and verify whether bloger's log-on message is correct by updating block 46; Behind the correct judgment; Return information is preserved in the database of blog polymeric network, transferred the user's who preserves in the blog polymeric network log-on message again by Flash, and user's review information; Regenerate new comment file, promptly generate a new swf file and be back in the corresponding webpage of source blog articles.Equally; When the bloger carries out refresh operation; New comment to this source blog articles in the polymerization blog net also can regenerate a new comment file; Promptly generate a new swf file and feed back in the corresponding webpage of source blog articles, not only realized the synchronous renewal of commenting between source blog and the blog polymeric network.Be the synchronous renewal of information interaction, but also reduced the information interaction cost between the website.
It should be noted that to see also accompanying drawing 7, be the system block diagram of the disclosed a kind of information interaction of fourth embodiment of the invention, between acquiring unit 43 and file generating unit 44, also comprise a decryption unit 47.
Decryption unit 47, be used for to acquiring unit 43 obtain to the encryption web page interlinkage of source blog articles decipher.
Owing to possibly have the situation of encryption in the web page interlinkage of the source blog articles that acquiring unit 43 gets access to; So between acquiring unit 43 and file generating unit 44, add a decryption unit 47; Web page interlinkage to encrypting is deciphered, and then carries out file generating unit 44.
In the system implementation example of a kind of information interaction disclosed by the invention, on the basis of accompanying drawing 4, added form after the correlation unit like accompanying drawing 5, the new system that accompanying drawing 6 and accompanying drawing 7 are shown, but the present invention is not limited to this.Wherein, at accompanying drawing 5, also can add the correlation unit in each new system between accompanying drawing 6 and the accompanying drawing 7 each other, the function basically identical of the unit of each interpolation repeats no more here.
Each embodiment adopts the mode of going forward one by one to describe in this specification, and what each embodiment stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.For the disclosed device of embodiment, because it is corresponding with the embodiment disclosed method, so description is fairly simple, relevant part is partly explained referring to method and is got final product.
The method of describing in conjunction with embodiment disclosed herein or the step of algorithm can be directly with the software modules of hardware, processor execution, and perhaps the combination of the two is implemented.Software module can place the storage medium of any other form known in random asccess memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or the technical field.
To the above-mentioned explanation of the disclosed embodiments, make this area professional and technical personnel can realize or use the present invention.Multiple modification to these embodiment will be conspicuous concerning those skilled in the art, and defined General Principle can realize under the situation that does not break away from the spirit or scope of the present invention in other embodiments among this paper.Therefore, the present invention will can not be restricted to these embodiment shown in this paper, but will meet and principle disclosed herein and features of novelty the wideest corresponding to scope.