CN106095945B - Third-party content display front end, server and method - Google Patents

Third-party content display front end, server and method Download PDF

Info

Publication number
CN106095945B
CN106095945B CN201610417469.4A CN201610417469A CN106095945B CN 106095945 B CN106095945 B CN 106095945B CN 201610417469 A CN201610417469 A CN 201610417469A CN 106095945 B CN106095945 B CN 106095945B
Authority
CN
China
Prior art keywords
content
party
displayed
party content
rendering
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610417469.4A
Other languages
Chinese (zh)
Other versions
CN106095945A (en
Inventor
杜伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201610417469.4A priority Critical patent/CN106095945B/en
Publication of CN106095945A publication Critical patent/CN106095945A/en
Application granted granted Critical
Publication of CN106095945B publication Critical patent/CN106095945B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a third-party content display front end, a server and a method. The front end comprises a display module used for displaying third-party content; the server request module is used for making a third-party content list to be displayed according to the content mark of the display module and submitting the third-party content list to a request server side; and the server response module is used for receiving the third-party content sent by the server side. The server comprises a front-end request module used for receiving a third-party content list which is sent by a front end and needs to be displayed; a content library for storing content provided by a third party; and the front-end response module is used for sending the third-party content to be displayed to the front end. The method comprises the steps of (1) acquiring content provided by a third party and storing the content as a content library; (2) acquiring a third-party content list required to be displayed by a front end; (3) and for each piece of third-party content needing to be displayed in the list, acquiring corresponding content data in a content library. The invention has the advantages of logic integration and convenient maintenance.

Description

Third-party content display front end, server and method
Technical Field
The invention belongs to the technical field of internet, and particularly relates to a third-party content display method and system.
Background
At present, a development mode of a web page display server at a front end is independent development according to content and scenes, such as advertisement content and scenes, which need to be displayed. When the displayed content is more or uncertain, the logic of each displayed content is independently developed and is inserted into other webpage contents, so that the webpage logic becomes complicated, and the maintenance cost of the website is greatly increased.
Disclosure of Invention
The invention provides a third-party content display front end, a server and a method aiming at overcoming the defects or the improvement requirements in the prior art, and aims to provide a system and a method for processing the third-party content display in a centralized manner, which integrate independent display logic, thereby reducing the difficulty of webpage development and facilitating website maintenance, and therefore, the technical problems of complex webpage logic and high website maintenance cost under the condition of more third-party contents in the prior art are solved.
To achieve the above object, according to an aspect of the present invention, there is provided a third-party content presentation front end, including:
the display module is used for displaying the third-party content data according to the content marks;
the display module can record display information written by the markup language and specify a position and a space for displaying the third-party content.
The server request module is used for making a third-party content list to be displayed according to the content mark of the display module and submitting the third-party content list to a request server side;
and the server response module is used for receiving the third-party content data sent by the server side.
Preferably, the third-party content presentation front-end further comprises:
and the control module is used for converting the third-party content data sent by the response module into a corresponding style according to the style type.
Preferably, the third-party content shows a front end, and the style types of the third-party content show a front end include pictures, flash, and flash inline.
According to another aspect of the present invention, there is provided a third-party content presentation server, including:
the front-end request module is used for receiving a third-party content list which is sent by the front end and needs to be displayed;
the content library is used for storing content data provided by a third party;
the content data comprises third-party display materials and rendering logic of third-party extension;
and the front-end response module is used for sending the third-party content data to be displayed to the front end.
Preferably, the front-end response module of the third-party content display server is configured to obtain, in the content library, corresponding content provided by the third party according to the third-party content list provided by the front-end request module, and send third-party content data to be displayed to the front end.
Preferably, the front-end response module of the third-party content presentation server is configured to send third-party content to be presented to the front end when the content in the content library is updated.
According to another aspect of the present invention, there is provided a third-party content display method including the steps of:
(1) acquiring content data provided by a third party and storing the content data as a content library;
(2) acquiring a third-party content list required to be displayed by a front end;
(3) for each piece of third-party content needing to be displayed in the list obtained in the step (2), obtaining corresponding content data needing to be displayed in the content library obtained in the step (1);
preferably, the display method includes the steps of:
(4) and (4) deleting the corresponding item in the third-party content list to be displayed when the content data acquired in the step (3) is empty data.
Preferably, in the display method, the third-party content list to be displayed in step (2) is obtained by a request from the front end to the server or by active push from the server to the front end.
Preferably, in the display method, the content in step (1) includes materials such as pictures, flash inline and the like, and the rendering of third-party extension;
and (3) when the data stored in the content library needs to be rendered, rendering the content data needing to be displayed as rendered data preferably according to a rendering logic expanded by a third party. Generally, compared with the prior art, the above technical solution conceived by the present invention can achieve the following beneficial effects due to the integration of the independent third-party content presentation logic:
the third-party content display logic and the service logic of the website are independent and not influenced, the influence on the website performance such as loading speed is small, and the maintenance and the expansion are easy.
Drawings
FIG. 1 is a schematic structural diagram of a third-party content display front-end and a server according to the present invention;
FIG. 2 is a flow chart of a third-party content presentation method provided by the present invention;
fig. 3 is a flowchart illustrating a third-party content displaying method according to embodiment 3 of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. In addition, the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
The third-party content display front-end provided by the invention, as shown in fig. 1, includes:
the display module is used for displaying the third-party content data according to the content marks;
the display module can record display information written by the markup language and specify a position and a space for displaying the third-party content.
The server request module is used for making a third-party content list to be displayed according to the content mark of the display module and submitting the third-party content list to a request server side;
the server response module is used for receiving third-party content data sent by the server side;
and the control module is used for converting the third-party content data sent by the response module into a corresponding style according to the style type.
The style types comprise forms of pictures, flash inline and the like. And displaying the third-party content sent by the response module in the display module according to the style type.
As shown in fig. 1, the third-party content display server provided by the present invention includes:
the front-end request module is used for receiving a third-party content list which is sent by the front end and needs to be displayed;
the content library is used for storing content data provided by a third party;
the content data includes third party presentation material and third party extended rendering logic
And the front-end response module is used for sending the third-party content data to be displayed to the front end.
The front-end response module is preferably used for acquiring corresponding content data provided by a third party in a content library according to a third party content list provided by the front-end request module and sending the third party content data to be displayed to the front end; preferably also for sending third party content data to be presented to the head-end when the content library content is updated.
The third-party content display method provided by the invention, as shown in fig. 2, comprises the following steps:
(1) acquiring content data provided by a third party and storing the content data as a content library;
the content comprises materials such as pictures, flash inline and the like and rendering logic expanded by a third party.
(2) Acquiring a third-party content list required to be displayed by a front end;
the third-party content to be displayed can be acquired by the request of the front end to the server or actively pushed and acquired by the server to the front end.
(3) For each piece of third-party content needing to be displayed in the list obtained in the step (2), obtaining corresponding content data needing to be displayed in the content library obtained in the step (1);
when the data stored in the content library needs to be rendered, the content data to be displayed is rendered data, and rendering is preferably performed according to a rendering logic extended by a third party.
(4) And (4) deleting the corresponding item in the third-party content list to be displayed when the content data acquired in the step (3) is empty data.
The following are examples:
example 1
A third party content presentation front end for a third party advertisement presentation front end, comprising:
the display module is used for displaying the third-party content data according to the content marks;
the display module is written by html language and displays the advertisement content at the designated position according to the designated size through the browser.
The server request module is used for making a third-party content list to be displayed according to the content mark of the display module and submitting the third-party content list to a request server side;
the method comprises the steps of calling a flashlayer through an advertisement data request interface written by a script language, and requesting third-party advertisement data from a server. The script language is embedded in the html markup language, and preferably adopts javascript.
The server response module is used for receiving the third-party content sent by the server side;
the system comprises a flashlayer for rendering and a script language embedded with html, wherein the script language is preferably javascript.
The rendering adopts the following method:
A. traversing the rendering logic of the third-party extension, if one of the rendering logics is satisfied, executing the rendering logic and ending, otherwise, performing default rendering;
B. and (3) default rendering: when the content is a picture material, performing picture default rendering; when the content is a flash material, performing flash default rendering; and when the content is flash inline material, performing flash inline default rendering.
And the control module is used for converting the third-party content sent by the response module into a corresponding style according to the style type.
The style types comprise forms of pictures, flash inline and the like. And displaying the third-party content sent by the response module in the display module according to the style type. The control module is preferably written by css, and the third-party content sent by the control response module is pictures, flash inline or other corresponding styles.
Example 2
A third party content presentation server for a third party advertisement presentation server, comprising:
the front-end request module is used for receiving a third-party advertisement list which is sent by the front end and needs to be displayed;
a content library for storing content provided by a third party; the third-party provided content includes advertisement material and third-party extended rendering logic.
And the front-end response module is used for sending the third-party advertisement content to be displayed to the front end. The front-end response module can send the third-party advertisement to be displayed to the front end according to the request of the front-end request module, and can also actively send the content of the third-party advertisement to the front end when the content library is updated.
Example 3
A third-party content display method, which is a third-party advertisement content display method, as shown in fig. 3, and includes the following steps:
(1) acquiring content data provided by a third party and storing the content data as a content library;
the content package data comprises the forms of pictures, flash inline and the like.
(2) Acquiring a third-party content list required to be displayed by a front end;
the third-party content data to be displayed can be acquired by a request of the front end to the server or by the server actively pushing the front end.
The front-end page is written by html, and for declarative advertisement loading, advertisement data can be configured in the html in advance, for example:
<div data-sign=”1000”></div>
and div is a block element in the html, and the data-sign is an attribute of the div and represents an advertisement number needing to be loaded.
If declarative ad loading is not required, this step is ignored.
And forming the third-party content list by all the advertisement number sets in the front-end page.
(3) For each piece of third-party content data needing to be displayed in the list obtained in the step (2), obtaining corresponding content data needing to be displayed in the content library obtained in the step (1);
and after the page is loaded, automatically loading the css file and the flash file by the javascript.
The Javascript passes the third party content listing to the flashlayer, which requests the listing's third party advertising data from the server. And after the flash player requests the server to finish responding, transmitting a response result to the javascript.
When the data stored in the content library needs to be rendered, the content data needing to be displayed is rendered data. After the Javascript obtains the third-party advertisement data, rendering each piece of data according to the following steps:
A. traversing the rendering logic of the third-party extension, if one of the rendering logics is satisfied, executing the rendering logic and ending, otherwise, performing default rendering; the third party extended rendering logic is stored in a server content repository.
B. And (3) default rendering: when the content data is a picture material, performing picture default rendering; when the content data is a flash material, performing flash default rendering; and when the content data is flash inline material, performing flash inline default rendering.
(4) And (4) deleting the corresponding item in the third-party content list to be displayed when the data acquired in the step (3) is empty data.
After all the third-party advertisement data are rendered by the javascript, if the request of the advertisement data is initiated by the javascript, the javascript destroys the advertisement nodes without data, for example:
<div data-sign=”1000”></div>
the advertisement number is: 1000 ads have no data, javascript will delete div.
It will be understood by those skilled in the art that the foregoing is only a preferred embodiment of the present invention, and is not intended to limit the invention, and that any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (6)

1. A third-party content display system is characterized by comprising a third-party content display front end and a third-party content display server;
the third-party content presentation front-end comprises:
the display module is used for recording display information compiled by the html markup language, wherein the display information comprises advertisement numbers to be loaded and specifies a position and a space for displaying third-party content; displaying third-party content data according to the content marks, and displaying webpage advertisement content at a specified position according to a specified size through a browser;
the server request module is used for making a third-party content list to be displayed, namely collecting all advertisement numbers to form the third-party content list according to the content marks of the display module and submitting the third-party content list to a request server side;
the server response module is used for receiving third-party content data sent by the server side; when the content data needs to be rendered, the following method is adopted: A. traversing the rendering logic of the third-party extension, if one of the rendering logics is satisfied, executing the rendering logic and ending, otherwise, performing default rendering; B. and (3) default rendering: when the content is a picture material, performing picture default rendering; when the content is a flash material, performing flash default rendering; when the content is flash inline material, performing flash inline default rendering;
the control module is used for converting the third-party content data sent by the response module into a corresponding style according to the style type;
the third-party content presentation server includes:
the front-end request module is used for receiving a third-party content list which is sent by the front end and needs to be displayed;
the content library is used for storing content data provided by a third party, and comprises advertisement materials and rendering logic of third party extension;
the content data comprises third-party display materials and rendering logic of third-party extension;
and the front-end response module is used for sending the third-party content data to be displayed to the front end.
2. The system of claim 1, wherein the front-end response module is configured to obtain corresponding content data provided by a third party from the content library according to the third-party content list provided by the front-end request module, and send the third-party content data to be displayed to the front end.
3. The system of claim 2, wherein the front-end response module is configured to send the third-party content data to be displayed to the front-end when the content in the content library is updated.
4. A third-party content display method, comprising the steps of:
(1) acquiring content data provided by a third party and storing the content data as a content library;
(2) according to a third-party content list needing to be displayed by content marking, namely, collecting all advertisement numbers to form the third-party content list;
(3) for each piece of third-party content needing to be displayed in the list obtained in the step (2), obtaining corresponding content data needing to be displayed in the content library in the step (1), displaying the third-party content data according to the content mark, and displaying webpage advertisement content at a specified position according to a specified size through a browser;
when the content data needs to be rendered, the following method is adopted: A. traversing the rendering logic of the third-party extension, if one of the rendering logics is satisfied, executing the rendering logic and ending, otherwise, performing default rendering; B. and (3) default rendering: when the content is a picture material, performing picture default rendering; when the content is a flash material, performing flash default rendering; and when the content is flash inline material, performing flash inline default rendering.
5. The method of claim 4, comprising the steps of:
(4) and (4) deleting the corresponding item in the third-party content list to be displayed when the content data acquired in the step (3) is empty data.
6. The method as claimed in claim 5, wherein the list of the third-party contents to be displayed in step (2) is requested by the front-end to the server or actively pushed by the server to the front-end.
CN201610417469.4A 2016-06-15 2016-06-15 Third-party content display front end, server and method Active CN106095945B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610417469.4A CN106095945B (en) 2016-06-15 2016-06-15 Third-party content display front end, server and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610417469.4A CN106095945B (en) 2016-06-15 2016-06-15 Third-party content display front end, server and method

Publications (2)

Publication Number Publication Date
CN106095945A CN106095945A (en) 2016-11-09
CN106095945B true CN106095945B (en) 2020-01-03

Family

ID=57845540

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610417469.4A Active CN106095945B (en) 2016-06-15 2016-06-15 Third-party content display front end, server and method

Country Status (1)

Country Link
CN (1) CN106095945B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030078976A1 (en) * 2001-10-18 2003-04-24 Gordon Andrew Scott Method and apparatus for facilitating romance and/or sexual relations
CN101098344A (en) * 2007-07-23 2008-01-02 王文钢 Video advertisement exhibiting method
CN102404617A (en) * 2011-12-05 2012-04-04 深圳市同洲视讯传媒有限公司 Method and system for realizing video advertisement and unified session resource management system
CN103200206B (en) * 2012-01-06 2016-10-26 腾讯科技(深圳)有限公司 A kind of method of display advertisement and client
CN105446996A (en) * 2014-07-16 2016-03-30 阿里巴巴集团控股有限公司 Page display method and page display system

Also Published As

Publication number Publication date
CN106095945A (en) 2016-11-09

Similar Documents

Publication Publication Date Title
US20230237062A1 (en) Gathering and contributing content across diverse sources
CN109863527B (en) Method and system for server-side rendering of rendered local content
KR101824222B1 (en) Fast rendering of websites containing dynamic content and stale content
US9224151B2 (en) Presenting advertisements based on web-page interaction
US9060007B2 (en) System and methods for facilitating the synchronization of data
US20130326333A1 (en) Mobile Content Management System
US11212244B1 (en) Rendering messages having an in-message application
CN104391725A (en) Page display method and page display device
CN111143725A (en) Page generation method and device and electronic equipment
US20110161847A1 (en) System and method for integrating and publishing pages of content
US20160134694A1 (en) Content delivery network based network latency reduction apparatus, methods and systems
CN103336794B (en) For providing the corresponding method and apparatus that information is presented in target pages
KR101638423B1 (en) Method for how to create and distribute articles online through banner-type article auto-generation
US10152731B1 (en) Scalable native in-stream advertising for mobile applications and websites
US9733819B2 (en) Smooth scrolling of a structured document presented in a graphical user interface with bounded memory consumption
US10606935B2 (en) Transforming a website for dynamic web content management
US8874687B2 (en) System and method for dynamically modifying content based on user expectations
KR102128996B1 (en) Systems and methods for prefetching content items
CN107590288B (en) Method and device for extracting webpage image-text blocks
CN107330087B (en) Page file generation method and device
CN106095945B (en) Third-party content display front end, server and method
CN106293671B (en) Method and device for generating component template
US20140250370A1 (en) Systems And Methods For Delivering Platform-Independent Web Content
US20130311274A1 (en) Method and system for editing a web page
CN110309455B (en) Method, device and equipment for displaying OLE vector diagram

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20161109

Assignee: Hubei Special Automobile Network Technology Co.,Ltd.

Assignor: WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd.

Contract record no.: X2023980034618

Denomination of invention: A third-party content display front-end, server, and method

Granted publication date: 20200103

License type: Common License

Record date: 20230413

EE01 Entry into force of recordation of patent licensing contract