HTML gurus, need some help plz

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DarkJedi
    No Refunds Issued.
    • Feb 2001
    • 28301

    #1

    HTML gurus, need some help plz

    Here's the deal:

    I got a website with a lot of pages - 100+
    Now what i want to do is be able to easily controll the banner spots on these pages.

    What can I do in order not to manually change all the pages each time I need to change the banner ? I need it to be done automatically with a change of 1 file.

    I need some PHP code for that ? How exactly is it done ?
  • SGS
    Confirmed User
    • Dec 2002
    • 5176

    #2
    Take a look at this: http://sourceforge.net/projects/phpadsnew/

    We used it for ages with no problems.
    See sig...

    Comment

    • Rorschach
      So Fucking Banned
      • Aug 2002
      • 5579

      #3
      PHP Code:
      <?php include('path/to/bannerhtml'); ?>
      Make a plain text file with just the html for your ad and include it on every page with the above code. You'll need to enable parsing html pages for php includes in your .htaccess.

      Comment

      • DarkJedi
        No Refunds Issued.
        • Feb 2001
        • 28301

        #4
        Originally posted by Rorschach
        PHP Code:
        <?php include('path/to/bannerhtml'); ?>
        Make a plain text file with just the html for your ad and include it on every page with the above code. You'll need to enable parsing html pages for php includes in your .htaccess.
        yeah, thats it.
        thanks.

        Comment

        • KraZ
          Confirmed User
          • Oct 2003
          • 2636

          #5
          You could use a regular SSI include:

          <!--#include file="file.html" -->
          Selling MedicalPorn,com and a dozen other gyno & doctor domains here:
          http://www.gofuckyourself.com/showthread.php?t=871984

          Comment

          • DarkJedi
            No Refunds Issued.
            • Feb 2001
            • 28301

            #6
            Originally posted by KraZ
            You could use a regular SSI include:

            <!--#include file="file.html" -->
            yeah thats pretty easy too.

            Comment

            • Paul Waters
              Confirmed User
              • Mar 2003
              • 4402

              #7
              Name the banner file banner.jpg and code that in every page.

              When you want to change the banner rename the old file something else, and rename the new banner file, banner.jpg

              KISS!



              Paul

              Comment

              • DarkJedi
                No Refunds Issued.
                • Feb 2001
                • 28301

                #8
                Originally posted by Paul Waters
                Name the banner file banner.jpg and code that in every page.

                When you want to change the banner rename the old file something else, and rename the new banner file, banner.jpg

                KISS!





                weed much ?

                Comment

                • Weppel
                  Confirmed User
                  • Aug 2003
                  • 2190

                  #9
                  Originally posted by Paul Waters
                  Name the banner file banner.jpg and code that in every page.

                  When you want to change the banner rename the old file something else, and rename the new banner file, banner.jpg

                  KISS!

                  And you wouldn't bother to change the link?

                  Comment

                  • Jer
                    God is Brazilian
                    • Feb 2001
                    • 10601

                    #10
                    Originally posted by Paul Waters
                    Name the banner file banner.jpg and code that in every page.

                    When you want to change the banner rename the old file something else, and rename the new banner file, banner.jpg

                    KISS!

                    STONED

                    Comment

                    • CyberTraffic
                      Confirmed User
                      • Feb 2004
                      • 2187

                      #11
                      Originally posted by DarkJedi
                      Here's the deal:

                      I got a website with a lot of pages - 100+
                      Now what i want to do is be able to easily controll the banner spots on these pages.

                      What can I do in order not to manually change all the pages each time I need to change the banner ? I need it to be done automatically with a change of 1 file.

                      I need some PHP code for that ? How exactly is it done ?
                      Interesting.

                      Comment

                      • DarkJedi
                        No Refunds Issued.
                        • Feb 2001
                        • 28301

                        #12
                        Originally posted by CyberTraffic
                        Interesting.

                        POSTBOT

                        Comment

                        • nastyking
                          • Nov 2002
                          • 2174

                          #13
                          phpadnews

                          or

                          Name the banner file banner.jpg and code that in every page.

                          When you want to change the banner rename the old file something else, and rename the new banner file, banner.jpg


                          Comment

                          • Rorschach
                            So Fucking Banned
                            • Aug 2002
                            • 5579

                            #14
                            banner.jpg:

                            Comment

                            Working...