i need some basic html/php help here....

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MrIzzz
    If u touch it, I will cum
    • Sep 2003
    • 22923

    #1

    i need some basic html/php help here....

    i wanna put a banner across all of my sites, but i do not want to have to manually place it in each site and have to change it manually each time i change the banner.

    is there a basic html solution to this? an include? some .php?

    someone have a minute to help me out with this


    WHO WANTS TO PLAY GRAB-ASS?
  • candyflip
    Carpe Visio
    • Jul 2002
    • 43074

    #2
    You can use an ad server like phpAdsNew. That might be overkill for one banner, but it's an option.

    http://www.phpadsnew.com

    Spend you some brain.
    Email Me

    Comment

    • newbreed
      Confirmed User
      • Nov 2003
      • 9898

      #3
      If your current pages are in .php already, design your header and call it "header.php". Then include "header.php" in you pages .php code at the top.

      This will make each pace with the 'include' in it pull the header.php file and include it.

      This is a simple explanation, hit me up for more details if you need them!

      Bill

      Loryn ‎(3:16 PM):
      I love it, just as long as we keep the bedroom door closed from all ears then we can have throw down hard core sex that makes us money haha
      fuck it we can have sex on money never did that before

      Comment

      • BradM
        Confirmed User
        • Dec 2003
        • 3397

        #4
        PHP Code:
         <? include("file.php"); ?>
        Make a file called file.php (or whatever you want for a naming convention) and put the code there ytou want

        include that code on every page you want the banner

        Comment

        • MrIzzz
          If u touch it, I will cum
          • Sep 2003
          • 22923

          #5
          hmmmmmmmm

          i'm working with just html pages.

          is there some sort of global include i could use? maybe


          WHO WANTS TO PLAY GRAB-ASS?

          Comment

          • AgentCash
            Confirmed User
            • Feb 2002
            • 720

            #6
            PHP Code:
            <?
            header("Location: http://yourlink.com");
            ?>
            upload file to http://www.yourdomain.com/sponsor.php

            upload banner to http://www.yourdomain.com/banner.gif

            Link sites with
            PHP Code:
            <a href="http://www.yourdomain.com/sponsor.php"><img src="http://www.yourdomain.com/banner.gif" border=0></a> 
            
            when it comes time to change, upload different banner of same name and edit the php file.

            Comment

            • BradM
              Confirmed User
              • Dec 2003
              • 3397

              #7
              if your host enabled it you may be able to use SSI.

              <!-- #include file="included.html" -->

              Comment

              • newbreed
                Confirmed User
                • Nov 2003
                • 9898

                #8
                Originally posted by MrIzzz
                hmmmmmmmm

                i'm working with just html pages.

                is there some sort of global include i could use? maybe
                If you are using an editor like Dreamweaver you could do a 'find and replace', for example, find the table code you have in place now, copy it into the F&R dialogue, change the code in "replace with" and choose the folder with all of your pages in it. That would fix all the pages in that folder to the new code set.

                Loryn ‎(3:16 PM):
                I love it, just as long as we keep the bedroom door closed from all ears then we can have throw down hard core sex that makes us money haha
                fuck it we can have sex on money never did that before

                Comment

                • BradM
                  Confirmed User
                  • Dec 2003
                  • 3397

                  #9
                  Originally posted by newbreed
                  If you are using an editor like Dreamweaver you could do a 'find and replace', for example, find the table code you have in place now, copy it into the F&R dialogue, change the code in "replace with" and choose the folder with all of your pages in it. That would fix all the pages in that folder to the new code set.
                  Yeah. See you WILL need to put the code on all your pages manually in some way shape or form... so above is good

                  Comment

                  • Tom_PMs
                    Confirmed User
                    • Jun 2004
                    • 2049

                    #10
                    If you want to do it from multiple subfolders though and use SSI, then you should use include=virtual instead of include=file I believe. That way, you could keep the code with the banner in your root folder.

                    You could get your host to setup a global alias to a folder as well, but I think the SSI include=virtual is easiest.

                    This is all presuming you dont wanna enable parsing of html files for php code, lol.

                    You've read it, you can't unread it.

                    Comment

                    • MrIzzz
                      If u touch it, I will cum
                      • Sep 2003
                      • 22923

                      #11
                      another question...



                      some one mentioned to me using iframe across all the sites.

                      your opinions on this?


                      WHO WANTS TO PLAY GRAB-ASS?

                      Comment

                      • Nbritte
                        Confirmed User
                        • Sep 2001
                        • 689

                        #12
                        Install the apache module mod_layout
                        use and htaccess file to turn it on.
                        create a page with the header and footer information
                        to change the banners over the entire site you just edit the header/footer file

                        SexyCityCash gets in Bed with PornoDan

                        Comment

                        • Tom_PMs
                          Confirmed User
                          • Jun 2004
                          • 2049

                          #13
                          I dont care for frames at all personally.

                          I once made a little script that I call from htaccess that parses all html files requested, and if it finds a certain sponsor code, it replaces it, THEN serves it to the browser.

                          But I wouldnt use something like that permanently as it would be alot of work for apache sorta, lol.

                          I needed to swap too many links when the sponsor tanked. The ultimate motivation to work

                          You've read it, you can't unread it.

                          Comment

                          Working...