Join the community today
Become a Member

posting replies error

Discussion in 'Forum Feedback & Suggestions' started by dooma, Jan 17, 2018.

  1. dooma

    dooma Member

    274
    23
    18
    Oct 15, 2016
    Cairo
    Ratings:
    +33
    Local Time:
    5:26 AM
    Hello

    I think there's an error with posting replies. Every time my replay was duplicated 2/3 times with Safari on ipad and Chrome on Laptop&PC.

    Thanks
     
  2. eva2000

    eva2000 Administrator Staff Member

    33,667
    7,454
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,459
    Local Time:
    1:26 PM
    Nginx 1.13.x
    MariaDB 5.5
    Yeah it's a problem with one of Xenforo widgets's conditional code for Google Adsense, it's interfering with the ad that shows every 3rd post :(

    Probably need to remove the conditional which hides ads for Premium users for that ad every 3rd post. So means Premium users will see that ad for now.
     
  3. eva2000

    eva2000 Administrator Staff Member

    33,667
    7,454
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,459
    Local Time:
    1:26 PM
    Nginx 1.13.x
    MariaDB 5.5
    Testing 3rd post of this thread

    Confirmed issue is with xenforo conditional which shows adsense ads on 3rd post of forum. If i set it to show on 5th or 7th or 9th, it's always that post that hangs for replying.

    In Xenforo in template ad_message_below i have the following
    Code (Text):
    <xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 2 AND !{xen:helper ismemberof, $visitor, 5}">
    <div style="padding-top:10px;width:90%;contain: layout style paint;">
    <style>
    .cmres1 { width: 320px; height: 50px; }
    @media(min-width: 500px) { .cmres1 { width: 468px; height: 60px; } }
    @media(min-width: 800px) { .cmres1 { width: 728px; height: 90px; } }
    </style>
    <!-- cmres2 -->
    <ins class="adsbygoogle cmres2"
         style="display:block"
         data-ad-client="ca-pub-6669518204467592"
         data-ad-slot="4024536743"
         data-ad-format="auto"></ins>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script>
    </div>
    </xen:if>
     
    Last edited: Jan 17, 2018
  4. RoldanLT

    RoldanLT Well-Known Member

    4,157
    1,007
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,421
    Local Time:
    11:26 AM
    1.11
    10.2
    I have fixed this on my board, I disable it from showing when it's the last post of the thread.
     
  5. eva2000

    eva2000 Administrator Staff Member

    33,667
    7,454
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,459
    Local Time:
    1:26 PM
    Nginx 1.13.x
    MariaDB 5.5
    which conditional for that - tried a few and all seem to still result in the hang
     
  6. RoldanLT

    RoldanLT Well-Known Member

    4,157
    1,007
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,421
    Local Time:
    11:26 AM
    1.11
    10.2
    I show ads after 4th post so my conditional has this:
    Code:
    count({$posts}) > 4
     
  7. eva2000

    eva2000 Administrator Staff Member

    33,667
    7,454
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,459
    Local Time:
    1:26 PM
    Nginx 1.13.x
    MariaDB 5.5
    ah that was it, seems this works - thanks @RoldanLT (y)

    Code (Text):
    <xen:if is="!{xen:helper ismemberof, $visitor, 5}">
    <xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 2 AND !{$message.conversation_id} AND {$thread.reply_count} > 2">
    <div style="padding-top:10px;width:90%;contain: layout style paint;">
    <style>
    .cmres1 { width: 320px; height: 50px; }
    @media(min-width: 500px) { .cmres1 { width: 468px; height: 60px; } }
    @media(min-width: 800px) { .cmres1 { width: 728px; height: 90px; } }
    </style>
    <!-- cmres2 -->
    <ins class="adsbygoogle cmres2"
         style="display:block"
         data-ad-client="ca-pub-6669518204467592"
         data-ad-slot="4024536743"
         data-ad-format="auto"></ins>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script>
    </div>
    </xen:if>
    </xen:if>
     
  8. dooma

    dooma Member

    274
    23
    18
    Oct 15, 2016
    Cairo
    Ratings:
    +33
    Local Time:
    5:26 AM
    Why @eva2000 didn't convert the forums to XF2 till now ?
     
  9. dooma

    dooma Member

    274
    23
    18
    Oct 15, 2016
    Cairo
    Ratings:
    +33
    Local Time:
    5:26 AM
    Btw, I'm using woltlab and it is amazing software.
     
  10. eva2000

    eva2000 Administrator Staff Member

    33,667
    7,454
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,459
    Local Time:
    1:26 PM
    Nginx 1.13.x
    MariaDB 5.5
    waiting 6+ months fo XF addon devs to catch up and iron out bugs :D
     
    • Like Like x 1
  11. RoldanLT

    RoldanLT Well-Known Member

    4,157
    1,007
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,421
    Local Time:
    11:26 AM
    1.11
    10.2
    Will:
    Still work on 2nd,3rd,4th pages?
     
  12. eva2000

    eva2000 Administrator Staff Member

    33,667
    7,454
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,459
    Local Time:
    1:26 PM
    Nginx 1.13.x
    MariaDB 5.5
..