I need a PHP rotating text ad.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TheSenator
    Too lazy to set a custom title
    • Feb 2003
    • 13340

    #1

    I need a PHP rotating text ad.

    I need one that is similar to AVN ads or Black Label ads. I just need it for my private network.

    PHP is what I want but will settle for a nice javascript.

    I prefer a free one or if I have to pay it better be a good one.
    ISeekGirls.com since 2005
  • Fat Panda
    Porn is Dead. Move along.
    • Aug 2006
    • 13296

    #2
    a script like this would be very usefull to me too...

    Comment

    • TheSenator
      Too lazy to set a custom title
      • Feb 2003
      • 13340

      #3
      bump bump
      ISeekGirls.com since 2005

      Comment

      • mortenb
        Confirmed User
        • Jul 2004
        • 2203

        #4
        very simple way of doing it

        1. put the ad codes in an array
        2. shuffle the array (use the php function shuffle)
        3. echo out the first entry in the array

        Comment

        • TheSenator
          Too lazy to set a custom title
          • Feb 2003
          • 13340

          #5
          Originally posted by mortenb
          very simple way of doing it

          1. put the ad codes in an array
          2. shuffle the array (use the php function shuffle)
          3. echo out the first entry in the array
          I just want a plug play.
          ISeekGirls.com since 2005

          Comment

          • just a punk
            So fuckin' bored
            • Jun 2003
            • 32393

            #6
            PHP Code:
            <?php
            $ads = array('<a href="http://www.cnn.com/">CNN</a>', '<a href="http://www.ibm.com/">IBM</a>', '<a href="http://www.microsoft.com/">Microsoft</a>');
            shuffle($ads);
            echo $ads[0];
            ?>
            just 3 lines of code
            Obey the Cowgod

            Comment

            • TheSenator
              Too lazy to set a custom title
              • Feb 2003
              • 13340

              #7
              Originally posted by cyberxxx
              PHP Code:
              <?php
              $ads = array('<a href="http://www.cnn.com/">CNN</a>', '<a href="http://www.ibm.com/">IBM</a>', '<a href="http://www.microsoft.com/">Microsoft</a>');
              shuffle($ads);
              echo $ads[0];
              ?>
              just 3 lines of code

              How can I make it look like this?
              http://pages.etology.com/imp2/35743.php


              I want to be able to rotate multiple ads at the same time.
              ISeekGirls.com since 2005

              Comment

              • just a punk
                So fuckin' bored
                • Jun 2003
                • 32393

                #8
                Originally posted by TheSenator
                How can I make it look like this?
                http://pages.etology.com/imp2/35743.php


                I want to be able to rotate multiple ads at the same time.
                PHP Code:
                <table>
                <tr>
                <?php
                $ads = array('<a href="http://www.cnn.com/">CNN</a>', '<a href="http://www.ibm.com/">IBM</a>', '<a href="http://www.microsoft.com/">Microsoft</a>',  '<a href="http://www.fhgstore.com/">FHG Store</a>',  '<a href="http://www.thesponsorfeeds.com/">The Sponsor Feeds</a>',  '<a href="http://www.real-bucks.com/">Real-Bucks</a>');
                shuffle($ads);
                for ($i = 0; $i < 5; $i++) { echo '<td>'.$ads[$i].'</td>'; }
                ?> 
                </tr>
                </table>
                Obey the Cowgod

                Comment

                • Jace
                  FBOP Class Of 2013
                  • Jan 2004
                  • 35562

                  #9
                  www.openads.org

                  Comment

                  • Mike Semen
                    Confirmed User
                    • Dec 2001
                    • 2924

                    #10
                    openads.org?
                    ICQ 1454 81 522 |

                    Comment

                    • MarcWomack
                      Confirmed User
                      • May 2002
                      • 529

                      #11
                      www.madisonavenue.com - It's free, web-based ad rotation solution. We support Single TextAds (just one-liners) and Cluster TextAds (ad headline in bold, ad descrip below not in bold).

                      System is very powerful but easy to setup. You can use it to run any types of campaigns you want: affiliate, retail (ones you sell), internal/trade, and OPTIONALLY you can have us sell the traffic for you.

                      Hit me up and I'll run you through the system.
                      Regards,
                      MarcWomack.com
                      Internet Advertising & Outsourcing Consultant

                      Comment

                      • pip
                        So Fucking Banned
                        • Nov 2005
                        • 468

                        #12
                        Originally posted by ConsumptionJunction
                        www.madisonavenue.com - It's free, web-based ad rotation solution. We support Single TextAds (just one-liners) and Cluster TextAds (ad headline in bold, ad descrip below not in bold).

                        System is very powerful but easy to setup. You can use it to run any types of campaigns you want: affiliate, retail (ones you sell), internal/trade, and OPTIONALLY you can have us sell the traffic for you.

                        Hit me up and I'll run you through the system.
                        You take a % don't you?

                        He wants something for his private network, so all the revenue goes to him

                        Comment

                        • just a punk
                          So fuckin' bored
                          • Jun 2003
                          • 32393

                          #13
                          Originally posted by pip
                          You take a % don't you?

                          He wants something for his private network, so all the revenue goes to him
                          So the code I gave him above does
                          Obey the Cowgod

                          Comment

                          • Jace
                            FBOP Class Of 2013
                            • Jan 2004
                            • 35562

                            #14
                            Originally posted by Mike Semen
                            openads.org?
                            yes, previously phpadsnew, the best ad system available, for free or paid

                            it does everything from displaying simple text ads to search engine targeted page results

                            Comment

                            • Fat Panda
                              Porn is Dead. Move along.
                              • Aug 2006
                              • 13296

                              #15
                              i am going to try openads...bye

                              Comment

                              • stickyfingerz
                                Doin fine
                                • Oct 2005
                                • 24984

                                #16
                                Originally posted by ConsumptionJunction
                                www.madisonavenue.com - It's free, web-based ad rotation solution. We support Single TextAds (just one-liners) and Cluster TextAds (ad headline in bold, ad descrip below not in bold).

                                System is very powerful but easy to setup. You can use it to run any types of campaigns you want: affiliate, retail (ones you sell), internal/trade, and OPTIONALLY you can have us sell the traffic for you.

                                Hit me up and I'll run you through the system.
                                I got signed up and never got an email back with confirmation etc...

                                Comment

                                • MarcWomack
                                  Confirmed User
                                  • May 2002
                                  • 529

                                  #17
                                  Hmm, when did you sign up? It's Monday here (in Manila) so if you signed up over the weekend my guys might not have gotten to it yet.
                                  Regards,
                                  MarcWomack.com
                                  Internet Advertising & Outsourcing Consultant

                                  Comment

                                  • MarcWomack
                                    Confirmed User
                                    • May 2002
                                    • 529

                                    #18
                                    Originally posted by pip
                                    You take a % don't you?

                                    He wants something for his private network, so all the revenue goes to him
                                    NO!!!!!!!!!!!! You can use the system as an ad rotation solution for FREE! It's even better than free as www.MadisonAvenue.com is a hosted solution so you don't have to devote any server hardware OR any bandwidth to serve your ads!

                                    IF you choose to have us sell any of your ads for you we take a cut. But that's IF. You don't have to. We'll be happy having another Publisher using the system and giving us feedback on how to improve it.
                                    Regards,
                                    MarcWomack.com
                                    Internet Advertising & Outsourcing Consultant

                                    Comment

                                    • MarcWomack
                                      Confirmed User
                                      • May 2002
                                      • 529

                                      #19
                                      Originally posted by stickyfingerz
                                      I got signed up and never got an email back with confirmation etc...
                                      Just approved your account, user/pass is in your inbox!
                                      Regards,
                                      MarcWomack.com
                                      Internet Advertising & Outsourcing Consultant

                                      Comment

                                      • stickyfingerz
                                        Doin fine
                                        • Oct 2005
                                        • 24984

                                        #20
                                        Originally posted by ConsumptionJunction
                                        Just approved your account, user/pass is in your inbox!
                                        All good nice talkin to you Marc. Thanks

                                        Comment

                                        • comeplay
                                          Confirmed User
                                          • Nov 2004
                                          • 1435

                                          #21
                                          This works great for what I need I have a quick question though, How would you format it in a way to have two next to each other and 5 different rows?

                                          I was thinking for ($i = 0; $i < 5; $i++) { echo ''.$ads[$i].'&nbsp;'.$ads[$i].'<br>'; }

                                          and that formats it how I want BUT the two are the same besides each other. How could I make that same layout but all 10 different links from the array?

                                          Originally posted by cyberxxx
                                          PHP Code:
                                          <table>
                                          <tr>
                                          <?php
                                          $ads = array('<a href="http://www.cnn.com/">CNN</a>', '<a href="http://www.ibm.com/">IBM</a>', '<a href="http://www.microsoft.com/">Microsoft</a>',  '<a href="http://www.fhgstore.com/">FHG Store</a>',  '<a href="http://www.thesponsorfeeds.com/">The Sponsor Feeds</a>',  '<a href="http://www.real-bucks.com/">Real-Bucks</a>');
                                          shuffle($ads);
                                          for ($i = 0; $i < 5; $i++) { echo '<td>'.$ads[$i].'</td>'; }
                                          ?> 
                                          </tr>
                                          </table>
                                          Top virtual hosts for under 10$? www.hostmylife.com | icq 50663030

                                          Comment

                                          • Turboface
                                            Back in Black
                                            • Mar 2002
                                            • 9976

                                            #22


                                            If you want to talk, hit me up on ICQ:143702021
                                            Search Engine Optimization Services for Adult Sites

                                            Comment

                                            • webboy21
                                              Confirmed User
                                              • Nov 2004
                                              • 573

                                              #23
                                              the array one would work...but if you want it easily maintained you could use a tool that uses a database.....then all 10 could be different by random selection from the database......

                                              I could make this of course ;)
                                              Available for: CSS | XHTML | PHP | MySQL | Webdesign

                                              Comment

                                              • The Judge
                                                Confirmed User
                                                • Jan 2006
                                                • 1647

                                                #24
                                                some nice ideas in here

                                                Comment

                                                Working...