• Resolved Danishsard

    (@danishsard)


    Good morning, how to insert so that the advertisement was inserted automatically in the middle of the post (middle) were automatically added in the middle of writing a post based on its paragraphs?

    In other plugins there is something like this, here I can’t find it.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Spacetime

    (@spacetime)

    Thread Starter Danishsard

    (@danishsard)

    Hello, it’s worth adding something like this from the selection list – because it is very often used.

    I added these 0.5 after the paragraph – it still displays wrong. Unless I don’t understand something in this manual – because it’s not my language.

    The advertisement is also added twice, I don’t know why the same one between two paragraphs

    • This reply was modified 1 year, 9 months ago by Danishsard.
    Plugin Author Spacetime

    (@spacetime)

    Thread Starter Danishsard

    (@danishsard)

    Hello, this error code when I click on the page. I only add 1 block because it is on locahost.

    There I choose only insert after the paragraph – 0.5 and it is displayed completely where I want and always double.

    If I choose to insert after 1 paragraph, it’s fine. But when these values are broken to 0.X, that’s a problem.

    I don’t know if it’s this information or something else?

    d Inserter              2.7.25
    
    INSTALLED:               2023-02-21 18:47:25 (0000-00-05 20:55:45, 5 days ago)
    GENERATED (WP time):     2023-02-27 15:43:12
    GENERATED (Server time): 2023-02-27 14:43:12
    PLUGIN CODE PROCESSING:  339.68 ms
    PLUGIN HOOKS PROCESSING: 0.06 ms
    BLOCK CODE PROCESSING:   0.00 ms
    TOTAL PROCESSING TIME:   339.74 ms
    SETTINGS:                2.7.25
    SETTINGS SIZE:           9029
    SETTINGS TIMESTAMP:      2023-02-27 15:42:26
    SETTINGS EXTRACT:        2.7.25-96
    EXTRACT TIMESTAMP:       2023-02-27 15:42:26
    EXTRACT SOURCE:          SAVED SETTINGS
    USER:                    LOGGED-IN ADMINISTRATOR
    USERNAME:                Acb
    USER ROLES:              administrator
    MIN.USER FOR EXCEPTIONS: administrator
    PAGE TYPE:               POST
    PUBLISHED:               2023-02-20 19:19:28
    ID:                      15 (get_the_ID: 15, get_queried_object: 15)
    POST TYPE:               post
    AUTHOR:                  testy (Testy)
    CATEGORIES:              Bez kategorii (bez-kategorii)
    PARENT CATEGORIES:       
    PRIMARY CATEGORY:        bez-kategorii
    TAGS:                    
    TAXONOMIES:              category:bez-kategorii
    PARENT TAXONOMIES:       
    AMP PAGE:                NO
    URL:                     /wp/google-schromecast-4-nowoczesny-odtwarzacz-multimedialny-opinia-i-test/
    REFERRER:                localhost (https://localhost/wp/google-schromecast-4-nowoczesny-odtwarzacz-multimedialny-opinia-i-test/)
    VIEWPORT 1:              Monitor          min width 980 px
    VIEWPORT 2:              Tablet           min width 768 px
    VIEWPORT 3:              Telefon          min width 0 px
    SERVER-SIDE DETECTION:   NOT USED
    CLIENT-SIDE DETECTION:   NOT USED
    DISABLE CACHING:         NOT USED
    STICKY WIDGETS:          NOT USED
    BLOCK CLASS NAME:        code-block
    INLINE STYLES:           ENABLED
    DYNAMIC BLOCKS:          Client-side insert
    STICKY WIDGET MODE:      CSS
    PARAGRAPH COUNTING:      Standard
    NO PAR. COUNTING INSIDE: blockquote, figure, li
    OUTPUT BUFFERING:        Disabled
    AD LABEL:                Og?oszenia
    AD LABEL HTML CODE:      <div class="code-block-label">Og?oszenia</div>
    MAIN CONTENT:            
    PLUGIN PRIORITY:         99999
    TAB SETUP DELAY:         100
    ADMIN DISABLE CACHING:   ENABLED
    DON'T USE jQuery CODE:   NOT SET
    WAIT FOR JQUERY:         DISABLED
    jQuery LOADED:           YES
    PLAIN JS CODE:           YES
    JAVASCRIPT CODE:         Inline
    DO NOT CACHE CONSTANTS:  DONOTCACHEPAGE DONOTCACHEOBJECT DONOTCACHEDB 
    VIRTUAL ADS.TXT:         NOT USED
    HEADER:                  DISABLED
    FOOTER:                  DISABLED
    AD BLOCKING DETECTION:   DISABLED
    DISABLED BY SHORTCODE:   NO
    USER AGENT:              Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
    LANGUAGE:                pl-PL,pl;q=0.9,en-US;q=0.8,en;q=0.7
    
    BLOCK SETTINGS           Po Pa Hp Cp Ap Sp AM Aj Fe 404 Wi Sh PHP
     1 Blok 1                o  .  .  .  .  .  .  o  .  .   x  .  .   [After paragraph][Default][paragraph_number: 0,5]
    
    TOTAL BLOCKS
    CONTENT HOOK:            1
    
    BLOCKS FOR THIS PAGE TYPE
    CONTENT HOOK:            1
    
    DISABLED BLOCKS:         
    
    TIME  EVENT
    ======================================
       0  INITIALIZATION START
     236  AFTER REQUIRE: 236.97 ms
       0  LOAD SETTINGS START
       0  LOAD OPTIONS START
       0  LOAD OPTIONS END
      19  LOAD SETTINGS END
       0  AFTER LOAD SETTINGS: 258.11 ms
       0  AFTER LOAD GLOBALS: 258.26 ms
       0  INITIALIZATION END: 258.94 ms
    
      62  TRANSLATION FILE:     D:\PROGRAMY ZAINSTALOWANE\XAMPP\htdocs\WP/wp-content/languages/plugins/ad-inserter-pl_PL.mo
       0  USING FILE:           D:\PROGRAMY ZAINSTALOWANE\XAMPP\htdocs\WP\wp-content\plugins\ad-inserter/languages/ad-inserter-pl_PL.mo
      11  PLUGINS LOADED START
       0  PLUGINS LOADED END: 0.03 ms
    
       0  PLUGINS LOADED INSTALL DST START
      58  PLUGINS LOADED INSTALL DST END: 58.49 ms
    
     601  INIT HOOK START
       5  INIT HOOK END: 5.01 ms
    
     230  FILE NOT FOUND:       D:\PROGRAMY ZAINSTALOWANE\XAMPP\htdocs\WP\wp-content\plugins\ad-inserter\includes\dst\languages/dst-pl_PL.mo
      42  WP LOADED HOOK START
       0  WP LOADED HOOK END: 0.01 ms
    
      47  WP HOOK START
       0  WP HOOK END: 0.23 ms
    
     598  HEAD HOOK START
       0  LOADING JS CODE: ai-errors-head
       0  HEAD HOOK END: 1.17 ms
    
     253  CONTENT HOOK START [1, IN THE LOOP]
       0  <p>Google Chromecast 4 to nowoczesny odtwarzacz multimedialn ... zenia – jest niezb?dny internet WiFi w domu. Dzi?ki</p>*n  [281 words]
       0  INDIVIDUAL EXCEPTIONS []
       0  BLOCK 1 AFTER PARAGRAPHS 0,5 of 6 available
       0  ---------------------------------
       0  BLOCK 1 INSERTION POSITIONS: 3, 5 of 6
       1  BLOCK 1 INSERTED
       0  BLOCK 1 INSERTED
       0  CONTENT HOOK END: 3.77 ms
    
      69  FOOTER HOOK TO END BUFFERING START
       0  FOOTER HOOK TO END BUFFERING END: 0.01 ms
    
       9  FOOTER HOOK START
       2  LOADING JS CODE: ai-errors-footer
       0  LOADING JS CODE: ai-base64
       0  LOADING JS CODE: ai-cookie-data
       0  LOADING JS CODE: ai-cookie
       0  LOADING JS CODE: ai-insert-data
       0  LOADING JS CODE: ai-insert
       0  LOADING JS CODE: ai-rotation-data
       0  LOADING JS CODE: ai-rotation
       0  LOADING JS CODE: ai-mobile-detect
       1  LOADING JS CODE: ai-lists-data
       0  LOADING JS CODE: ai-lists
       1  LOADING JS CODE: ai-errors
       1  FOOTER HOOK END: 12.11 ms
    
    
    INSERTION SUMMARY
    ======================================
    BLOCK  1 INSERTED 
    BLOCK  1 INSERTED [2]
    
    
    SERVER_ADDR:             ::1
    HTTP_CF_CONNECTING_IP:   
    HTTP_CLIENT_IP:          
    HTTP_INCAP_CLIENT_IP:    
    HTTP_X_FORWARDED_FOR:    
    HTTP_X_FORWARDED:        
    HTTP_X_CLUSTER_CLIENT_IP:
    HTTP_FORWARDED_FOR:      
    HTTP_FORWARDED:          
    REMOTE_ADDR:             ::1
    
    AI_NO_PHP_PROCESSING:    NO
    DISALLOW_FILE_EDIT:      NO
    DISALLOW_FILE_MODS:      NO
    DISALLOW_UNFILTERED_HTML:NO
    AI_NO_ADSENSE_API:       NO
    
    W3TC_DYNAMIC_SECURITY:   NO
    
    MULTISITE:               NO
    OPTIONS DATABASE TABLE:  wp_options
    site_url:                https://localhost/wp
    home_url:                https://localhost/wp
    ABSPATH:                 D:\PROGRAMY ZAINSTALOWANE\XAMPP\htdocs\WP/
    WP_CONTENT_DIR:          D:\PROGRAMY ZAINSTALOWANE\XAMPP\htdocs\WP/wp-content
    
    PHP:                     8.1.5
    mbstring:                LOADED
    Default charset:         UTF-8
    Memory Limit:            512M
    Upload Max Filesize:     40M
    Post Max Size:           40M
    Max Execution Time:      120
    Max Input Vars:          1000
    Display Errors:          1
    cURL:                    ENABLED
    fsockopen:               ENABLED
    DOMDocument:             YES
    
    
    Wordpress:               6.1.1
    Current Theme:           Kadence 1.1.32
    
    A INSTALLED PLUGINS
    ======================================
    * Ad Inserter 2.7.25
      AdRedux - Insert Ads & Codes 1.2.4
      AdSense Integration WP QUADS 2.0.68
      All in One SEO 4.3.1.1
      All In One WP Security 5.1.5
    * Contextual Related Posts 3.3.3
      LiteSpeed Cache 5.3.3
      Quick Adsense 2.8.7
      Wp-Insert 2.5.1
    Plugin Author Spacetime

    (@spacetime)

    It seems you configured insertion after a random paragraph and after paragraph 5:
    paragraph_number: 0,5

    To insert in the middle of the paragraphs you need to set?Paragraph number?to?0.5:
    https://adinserter.pro/documentation/paragraph-settings

    Thread Starter Danishsard

    (@danishsard)

    Hello, @spacetime

    I do this – reset plugin settings. In window 1 of the relation, I put characters, for example XAXAXAXAXAX – as a display test.

    Then in (various) check the option insert after the paragraph and in the box next to enter the value 0.5

    Then it shows me 2x the same units. So, in the “Display” options, I select the MAX option – in the window I enter 1.

    Then this ad appears once – but quite randomly, once this time in another paragraph of the page.

    Is it something else? I can not understand.

    Wait – I think I confused , (comma) with a period, and that’s the reason. Habit.

    Thank you very much for your help. You are doing a wonderful job for people!

    Thank you very much for your help!

    • This reply was modified 1 year, 9 months ago by Danishsard.
    • This reply was modified 1 year, 9 months ago by Danishsard.
    • This reply was modified 1 year, 9 months ago by Danishsard.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to set ads in the middle of the article?’ is closed to new replies.