adsense below navbar multiplying ??

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • steven s
    Senior Member
    • Jul 2004
    • 3722
    • 3.8.x

    adsense below navbar multiplying ??

    I have had one banner ad in the ad template below the navbar for years.
    Now I've noticed 3 identical scripts.
    I'll go back and edit the template. OK for a little while.
    Then back to 3 banner ads.

    I haven't added a plugin in years!
    vB3.8.7p3

    add
    I reverted the template and noticed the vB advertising function was also selected. ??
    Don't know if it's been that way all the time.

    I'll let vB populate the templates and see what happens.

    - - - Updated - - -

    Problem is back and my pub id is not MINE.
    It's the PUB ID in my members area on vB.
    Did something change either here or on adsense?

    - - - Updated - - -

    More
    A plugin named LOITER?
    Is this vBulletin?
    It shares the pub id found in my members are in vB but not my google pub id number.

    Code:
    require_once(DIR . '/includes/adminfunctions_template.php');
    
    $template_un = '<vb:if condition="!is_member_of($bbuserinfo, 6,7,5,11)">
    <center><script type="text/javascript"><!--
    google_ad_client = "ca-pub-xxx";
    google_ad_slot = "xx";
    google_ad_width = 728;
    google_ad_height = 90;
    //-->
    </script>
    <script type="text/javascript"
    src="https://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script><br /><script type="text/javascript"><!--
    google_ad_client = "ca-pub-xxx";
    google_ad_slot = "xxx";
    google_ad_width = 728;
    google_ad_height = 90;
    //-->
    </script>
    <script type="text/javascript"
    src="https://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script></br ><script type="text/javascript"><!--
    google_ad_client = "ca-pub-xxxx";
    google_ad_slot = "xxx";
    google_ad_width = 728;
    google_ad_height = 90;
    //-->
    </script>
    <script type="text/javascript"
    src="https://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script></center>
    </vb:if>';
    $template = compile_template($template_un);
    $vbulletin->db->query_write("update " . TABLE_PREFIX . "template set template_un='" . $template_un . "' WHERE title='ad_navbar_below'");
    
    $vbulletin->db->query_write("update " . TABLE_PREFIX . "template set template='" . addslashes($template) . "' WHERE title='ad_navbar_below'");
    
    $vbulletin->db->query_write("update" . TABLE_PREFIX . " template set dateline = " . TIMENOW . " WHERE title='ad_navbar_below'");
    print_rebuild_style(-1, 'ad_navbar_below', 0, 0, 0, 0);
    build_style_datastore();
    This all began 11/13/2013 and looking at my adsense report, that's when income went to zero.
    Also see my includes/init.php file was either edited or replaced on 11/13.
    Last edited by steven s; Sat 17 Nov '12, 11:12am.
    ...steven
    www.318ti.org (vB3.8) | www.nccbmwcca.org (vB4.2)
    bmwcca.org/forum | m135i.net
    "I tried to clean this up but this thread is beyond redemption." - Steve Machol
  • oldz442
    Senior Member
    • Apr 2012
    • 318

    #2
    Perhaps someone hacked your vb and installed their own Adsense ID?
    ΜΟΛΩΝ ΛΑΒΕ

    Comment

    • steven s
      Senior Member
      • Jul 2004
      • 3722
      • 3.8.x

      #3
      Just compared the init.php from vB pl3 patch and my current one.
      The pub ids are different!
      The downloaded pub id is mine.
      I've overwritten the PL3 patch.

      - - - Updated - - -

      And now suddenly my pub id is MINE in vB's member area.
      Very odd.

      It was
      $vbulletin->adsense_pub_id = 'pub-8761986403507850';
      $vbulletin->adsense_host_id = 'pub-2606800903002383';
      which isn't mine. I'm glad I save the file.
      ...steven
      www.318ti.org (vB3.8) | www.nccbmwcca.org (vB4.2)
      bmwcca.org/forum | m135i.net
      "I tried to clean this up but this thread is beyond redemption." - Steve Machol

      Comment

      • oldz442
        Senior Member
        • Apr 2012
        • 318

        #4
        Yep. No smell right. If vB is doing that, I am not impressed.
        ΜΟΛΩΝ ΛΑΒΕ

        Comment

        • BirdOPrey5
          Senior Member
          • Jul 2008
          • 9613
          • 5.6.3

          #5
          It's obviously not vBulletin (us) doing that- it sounds like he was hacked.

          I would immediately change ALL passwords including your vbulletin.com Member's Area password, your Google password, the password of ALL Admin accounts on your forum, the forum database password (you will need to update config.php with the new value), and any FTP/Cpanel passwords you may have.

          Also uninstall ANY plugins you don't recognize, re-install any products you do have to be safe- make sure everything is up to date.

          If your Member's Area is showing the correct publisher ID download a fresh set of VB files and re-upload them overwriting the old files.

          Comment

          • steven s
            Senior Member
            • Jul 2004
            • 3722
            • 3.8.x

            #6
            Originally posted by Joe D.
            It's obviously not vBulletin (us) doing that- it sounds like he was hacked.
            Never said it was BUT the odd pub id WAS in my member's area.
            The init.php was edited on 11/13/2012 and a plugin named loiter installed somehow.
            The download date at the bottom of the file was the date I downloaded the patch.

            I've changed my root and database passwords.
            Wrote to Google adsense with that pub id since it wasn't mine.
            I set the plugin to inactive just incase it is a vBulletin file.
            Oddly enough 3 days later my site went down and came back up.

            After downloaded a fresh p3 update, my pub id is now correct in my member area.
            ...steven
            www.318ti.org (vB3.8) | www.nccbmwcca.org (vB4.2)
            bmwcca.org/forum | m135i.net
            "I tried to clean this up but this thread is beyond redemption." - Steve Machol

            Comment

            • man1c
              Senior Member
              • Apr 2005
              • 134
              • 3.8.x

              #7
              A google of that publisher ID shows this page - http://pastebin.com/jfMSWLAW

              Some sort of hack?

              Comment

              • steven s
                Senior Member
                • Jul 2004
                • 3722
                • 3.8.x

                #8
                Originally posted by man1c
                A google of that publisher ID shows this page - http://pastebin.com/jfMSWLAW

                Some sort of hack?
                Thanks.
                I'll have my host have a look.
                I'm sure I'm not the only one.
                But it's still odd that pub id was in my members area on vB.
                Maybe it's a browser issue that is why I saw it?
                I KNOW WHAT I SAW. Too bad I didn't take a screen shot.
                ...steven
                www.318ti.org (vB3.8) | www.nccbmwcca.org (vB4.2)
                bmwcca.org/forum | m135i.net
                "I tried to clean this up but this thread is beyond redemption." - Steve Machol

                Comment

                • oldz442
                  Senior Member
                  • Apr 2012
                  • 318

                  #9
                  If not mentioned already... make sure to include your domain(s) and/or IP(s) in your Adsense acct in the 'Authorized sites' textarea box. That will allow ONLY those in that list to display ads. That is one way for scammers to not make $$$ off your site and/or get you banned (which is easily done with Adsense).
                  ΜΟΛΩΝ ΛΑΒΕ

                  Comment

                  • steven s
                    Senior Member
                    • Jul 2004
                    • 3722
                    • 3.8.x

                    #10
                    Originally posted by oldz442
                    If not mentioned already... make sure to include your domain(s) and/or IP(s) in your Adsense acct in the 'Authorized sites' textarea box. That will allow ONLY those in that list to display ads. That is one way for scammers to not make $$$ off your site and/or get you banned (which is easily done with Adsense).
                    I sent adsense my domain and the offending pub id.
                    I'm asking my host to look at any file edited on 11/13/2012.
                    It's a dedicated server.
                    My logs only go back 24 hours.
                    ...steven
                    www.318ti.org (vB3.8) | www.nccbmwcca.org (vB4.2)
                    bmwcca.org/forum | m135i.net
                    "I tried to clean this up but this thread is beyond redemption." - Steve Machol

                    Comment

                    • oldz442
                      Senior Member
                      • Apr 2012
                      • 318

                      #11
                      You need to add authorized sites yourself though in the acct settings.
                      Attached Files
                      ΜΟΛΩΝ ΛΑΒΕ

                      Comment

                      • steven s
                        Senior Member
                        • Jul 2004
                        • 3722
                        • 3.8.x

                        #12
                        I check those on a regular basis.

                        - - - Updated - - -

                        Ah crap!
                        Despite deleting the offending plugin something is writing to the ad_navbar_below.
                        I suspect is being triggered as a cron job.

                        I still see the script in the plugin file in datastore.

                        - - - Updated - - -

                        I may have cleaned it up.
                        For now.

                        I deleted the row in the datastore table that was titled pluginlist and inserted the pluginlist row from a backup.
                        There was an instruction in there to update the ad_below_navbar during the hourly cleanup.
                        Also removed the text from the ad_below_navbar template table.

                        php is being updated on my server.
                        Last edited by steven s; Sat 17 Nov '12, 1:56pm.
                        ...steven
                        www.318ti.org (vB3.8) | www.nccbmwcca.org (vB4.2)
                        bmwcca.org/forum | m135i.net
                        "I tried to clean this up but this thread is beyond redemption." - Steve Machol

                        Comment

                        • jerit2012
                          Member
                          • May 2012
                          • 50

                          #13
                          I have almost same issue. But my pb ID in forum and member area are same till now.




                          Please help............

                          Comment

                          • BirdOPrey5
                            Senior Member
                            • Jul 2008
                            • 9613
                            • 5.6.3

                            #14
                            You are being helped in your own thread. In the future always start your own thread, you do not need to ask for help in multiple threads. Thanks.

                            Comment

                            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                            Working...