Hide pop on home page (mechbunny)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AnimeFevers
    ♫ ♪ ♫ ♪ ▄ █ ▄ █ ▄ ▄ █ ▄ █
    • Apr 2009
    • 3566

    #1

    Hide pop on home page (mechbunny)

    Wanting to pop something everywhere except the home page, pop will be added to the footer.

    Anyone know what code I could use to do this?

    I don't wanna bother mechbunny atm as they're pretty busy with their new script version.

    $15 paxum for the help, beer monies.

    Edit: my script version is a few years old as it has too man customization to upgrade.
    tg - @LJFreeza
    email - animefevers(AT)hotmail(DOT)co(DOT)uk
  • Colmike9
    (>^_^)b
    • Dec 2011
    • 7230

    #2
    <?php
    $homepage = "/";
    $currentpage = $_SERVER['REQUEST_URI'];
    if($homepage!=$currentpage) {
    include('popup.php');
    }
    ?>
    Join the BEST cam affiliate program on the internet!
    I've referred over $1.7mil in spending this past year, you should join in.
    I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years..

    Comment

    • AnimeFevers
      ♫ ♪ ♫ ♪ ▄ █ ▄ █ ▄ ▄ █ ▄ █
      • Apr 2009
      • 3566

      #3
      Originally posted by Colmike7
      <?php
      $homepage = "/";
      $currentpage = $_SERVER['REQUEST_URI'];
      if($homepage!=$currentpage) {
      include('popup.php');
      }
      ?>
      pop code I'm using will be <script src="popup.js"></script> how would I pop this using your code?
      tg - @LJFreeza
      email - animefevers(AT)hotmail(DOT)co(DOT)uk

      Comment

      • plaster
        So Fucking Banned
        • Apr 2015
        • 2295

        #4
        Just put it on the video template.

        Comment

        • Colmike9
          (>^_^)b
          • Dec 2011
          • 7230

          #5
          Originally posted by AnimeFevers
          pop code I'm using will be <script src="popup.js"></script> how would I pop this using your code?
          Good question, I suck at js.. :/

          Coders: What if my php echoed the JS like echo'<script src="popup.js"></script>';, would that work?..
          Join the BEST cam affiliate program on the internet!
          I've referred over $1.7mil in spending this past year, you should join in.
          I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years..

          Comment

          • AnimeFevers
            ♫ ♪ ♫ ♪ ▄ █ ▄ █ ▄ ▄ █ ▄ █
            • Apr 2009
            • 3566

            #6
            Originally posted by plaster
            Just put it on the video template.
            My script is a little different, there are many more pages than just index and videos, I used to do that.
            tg - @LJFreeza
            email - animefevers(AT)hotmail(DOT)co(DOT)uk

            Comment

            • Colmike9
              (>^_^)b
              • Dec 2011
              • 7230

              #7
              Originally posted by plaster
              Just put it on the video template.
              But what about other non-video pages?


              I'm sure someone that knows MB will have a better answer than me.
              Join the BEST cam affiliate program on the internet!
              I've referred over $1.7mil in spending this past year, you should join in.
              I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years..

              Comment

              • blackmonsters
                Making PHP work
                • Nov 2002
                • 20964

                #8
                <?php if (!checkNav('index')) { ?>

                <script src="popup.js"></script>

                <? } ?>


                See sig for my hourly rate; minimum 1 hour.

                Free Open Source Live Aggregated Cams Script (FOSLACS)

                Comment

                • AnimeFevers
                  ♫ ♪ ♫ ♪ ▄ █ ▄ █ ▄ ▄ █ ▄ █
                  • Apr 2009
                  • 3566

                  #9
                  Originally posted by blackmonsters
                  <?php if (!checkNav('index')) { ?>

                  <script src="popup.js"></script>

                  <? } ?>


                  See sig for my hourly rate; minimum 1 hour.

                  didn't work still pops on the home page.
                  tg - @LJFreeza
                  email - animefevers(AT)hotmail(DOT)co(DOT)uk

                  Comment

                  • blackmonsters
                    Making PHP work
                    • Nov 2002
                    • 20964

                    #10
                    Originally posted by AnimeFevers
                    didn't work still pops on the home page.
                    which version of mechbunny?
                    Free Open Source Live Aggregated Cams Script (FOSLACS)

                    Comment

                    • blackmonsters
                      Making PHP work
                      • Nov 2002
                      • 20964

                      #11
                      Originally posted by AnimeFevers
                      didn't work still pops on the home page.

                      Here you go :


                      <? if ($thisController == 'index' && !$_GET['mode'] && !$_GET['page']) { } else { ?>

                      <script src="popup.js"></script>

                      <? } ?>
                      Free Open Source Live Aggregated Cams Script (FOSLACS)

                      Comment

                      • AnimeFevers
                        ♫ ♪ ♫ ♪ ▄ █ ▄ █ ▄ ▄ █ ▄ █
                        • Apr 2009
                        • 3566

                        #12
                        Originally posted by blackmonsters
                        Here you go :


                        <? if ($thisController == 'index' && !$_GET['mode'] && !$_GET['page']) { } else { ?>

                        <script src="popup.js"></script>

                        <? } ?>
                        Still pops on the home page, the script is a pretty old version, couple years maybe.
                        tg - @LJFreeza
                        email - animefevers(AT)hotmail(DOT)co(DOT)uk

                        Comment

                        • Klen
                          • Aug 2006
                          • 32235

                          #13
                          Originally posted by AnimeFevers
                          pop code I'm using will be <script src="popup.js"></script> how would I pop this using your code?
                          Mike code should do the job, you should add this to popup.php
                          Code:
                          <?php
                          echo'
                           <script src="popup.js"></script>';
                          ?>

                          Comment

                          • AnimeFevers
                            ♫ ♪ ♫ ♪ ▄ █ ▄ █ ▄ ▄ █ ▄ █
                            • Apr 2009
                            • 3566

                            #14
                            Originally posted by KlenTelaris
                            Mike code should do the job, you should add this to popup.php
                            Code:
                            <?php
                            echo'
                             <script src="popup.js"></script>';
                            ?>
                            Not sure what you mean tho, I don't have any popup.php file, my pop script is in a .js and I activate it using this code - <script src="popup.js"></script>

                            I think BlackMonsters has the right idea but it wont work on my script version, I'm sure there is a way tho, I remember hiding banners from certain pages ages ago.
                            tg - @LJFreeza
                            email - animefevers(AT)hotmail(DOT)co(DOT)uk

                            Comment

                            • Colmike9
                              (>^_^)b
                              • Dec 2011
                              • 7230

                              #15
                              <?php
                              $homepage = "/";
                              $currentpage = $_SERVER['REQUEST_URI'];
                              if($homepage!=$currentpage) {
                              echo'
                              <script src="popup.js"></script>';
                              }
                              ?>


                              Try this, then. If it doesn't work, do a test and see if something other than / is the output for $currentpage then change $homepage = "/"; to the homepage value. That way you don't need another php file.
                              Join the BEST cam affiliate program on the internet!
                              I've referred over $1.7mil in spending this past year, you should join in.
                              I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years..

                              Comment

                              • flashfire
                                ICQ 1 6 7 8 5 3 4 9 2
                                • Feb 2003
                                • 13098

                                #16
                                an actual business thread on gfy!?!

                                Comment

                                • AnimeFevers
                                  ♫ ♪ ♫ ♪ ▄ █ ▄ █ ▄ ▄ █ ▄ █
                                  • Apr 2009
                                  • 3566

                                  #17
                                  Originally posted by Colmike7
                                  <?php
                                  $homepage = "/";
                                  $currentpage = $_SERVER['REQUEST_URI'];
                                  if($homepage!=$currentpage) {
                                  echo'
                                  <script src="popup.js"></script>';
                                  }
                                  ?>


                                  Try this, then. If it doesn't work, do a test and see if something other than / is the output for $currentpage then change $homepage = "/"; to the homepage value. That way you don't need another php file.
                                  oh sheet it worked, good job man, what's your paxum?
                                  tg - @LJFreeza
                                  email - animefevers(AT)hotmail(DOT)co(DOT)uk

                                  Comment

                                  • flashfire
                                    ICQ 1 6 7 8 5 3 4 9 2
                                    • Feb 2003
                                    • 13098

                                    #18
                                    nice...good to see webmasters helping each other

                                    Comment

                                    • Colmike9
                                      (>^_^)b
                                      • Dec 2011
                                      • 7230

                                      #19
                                      Originally posted by AnimeFevers
                                      oh sheet it worked, good job man, what's your paxum?
                                      I don't have Paxum. Don't worry about it, though, I'm just waking up and bored.

                                      Glad it works!
                                      Join the BEST cam affiliate program on the internet!
                                      I've referred over $1.7mil in spending this past year, you should join in.
                                      I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years..

                                      Comment

                                      • Colmike9
                                        (>^_^)b
                                        • Dec 2011
                                        • 7230

                                        #20
                                        Originally posted by flashfire
                                        nice...good to see webmasters helping each other
                                        I'm getting Deja Vu from the good ol days.
                                        Join the BEST cam affiliate program on the internet!
                                        I've referred over $1.7mil in spending this past year, you should join in.
                                        I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years..

                                        Comment

                                        • AnimeFevers
                                          ♫ ♪ ♫ ♪ ▄ █ ▄ █ ▄ ▄ █ ▄ █
                                          • Apr 2009
                                          • 3566

                                          #21
                                          Originally posted by Colmike7
                                          I don't have Paxum. Don't worry about it, though, I'm just waking up and bored.

                                          Glad it works!
                                          Cheers buddy, good guy right here
                                          tg - @LJFreeza
                                          email - animefevers(AT)hotmail(DOT)co(DOT)uk

                                          Comment

                                          • Colmike9
                                            (>^_^)b
                                            • Dec 2011
                                            • 7230

                                            #22
                                            Originally posted by AnimeFevers
                                            Cheers buddy, good guy right here
                                            Any time you need help, let me know.
                                            Join the BEST cam affiliate program on the internet!
                                            I've referred over $1.7mil in spending this past year, you should join in.
                                            I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years..

                                            Comment

                                            • Coup
                                              🚨 PBBC International 🚨
                                              • Apr 2010
                                              • 9931

                                              #23
                                              10 PRINT "Hello World!"
                                              20 GOTO 10

                                              Comment

                                              • Colmike9
                                                (>^_^)b
                                                • Dec 2011
                                                • 7230

                                                #24
                                                Originally posted by Coup
                                                10 PRINT "Hello World!"
                                                20 GOTO 10
                                                5 X = 1
                                                10 PRINT "I miss programming with line numbers"
                                                20 X = X + 1
                                                30 If X = 1000 THEN GOTO 100
                                                40 GOTO 10
                                                100 PRINT "I'm over it"
                                                110 PRINT ""
                                                Join the BEST cam affiliate program on the internet!
                                                I've referred over $1.7mil in spending this past year, you should join in.
                                                I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years..

                                                Comment

                                                Working...