What's a script that will..

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • onwebcam
    Fake Nick 1.0
    • Oct 2005
    • 27689

    #1

    What's a script that will..

    We have around 500 names parked on 1 site and want a script to detect the domain a surfer arrives on and display that that name as the text/logo? We would be willing to pay for an actual logo that would change the name as well similar to the geo targeted banners. If you can do the later send me an email to sales (@) namenetwork.com to discuss.
    Last edited by onwebcam; 02-23-2012, 10:19 PM.
    PLEASE WAIT WHILE BIDEN ADMIN UNINSTALLS ITSELF.....
    ██████████████████▒ 99.5% complete.
  • k0nr4d
    Confirmed User
    • Aug 2006
    • 9231

    #2
    You can link all the domains to one place on your server with a single index.php, and just pull the current domain name out of $_SERVER
    Mechanical Bunny Media
    Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web Development

    Comment

    • onwebcam
      Fake Nick 1.0
      • Oct 2005
      • 27689

      #3
      Originally posted by k0nr4d
      You can link all the domains to one place on your server with a single index.php, and just pull the current domain name out of $_SERVER
      They are all parked on the one script/site so all good with "single index.php". IE each appears as it's own site. In my been drinking state I somewhat get "just pull the current domain name out of $_SERVER" I imagine what you are saying is $_SERVER will call the domain? Not a php coder here.. But a master editor What I need is the code that does similar to change the site name text/logo so they "officially" become their own site.
      Last edited by onwebcam; 02-23-2012, 10:44 PM.
      PLEASE WAIT WHILE BIDEN ADMIN UNINSTALLS ITSELF.....
      ██████████████████▒ 99.5% complete.

      Comment

      • k0nr4d
        Confirmed User
        • Aug 2006
        • 9231

        #4
        On that index.php, put
        <?php echo $_SERVER['HTTP_HOST']; ?>

        That will print out the name of the domain you are on.
        You can then do something like:
        <img src='/images/<?php echo $_SERVER['HTTP_HOST']; ?>.jpg'>
        for instance to pull a custom logo for that site, or grab <?php echo $_SERVER['HTTP_HOST']; ?>.css to load a different template, or whatever.

        That's a really simplified version of the idea but you should be able to elaborate from there.
        Mechanical Bunny Media
        Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web Development

        Comment

        • k0nr4d
          Confirmed User
          • Aug 2006
          • 9231

          #5
          <?
          $array = array(
          "www.domain1.com" => "Site Name1",
          "www.domain2.com" => "Site Name2",
          "www.domain3.com" => "Site Name3"
          );
          ?>
          <img src="/logos/<? echo $_SERVER[HTTP_HOST]; ?>.jpg"><br>
          Welcome to <? echo $array[$_SERVER[HTTP_HOST]]; ?>
          Mechanical Bunny Media
          Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web Development

          Comment

          • asdasd
            So Fucking Banned
            • Feb 2005
            • 1225

            #6
            What he said

            Comment

            • onwebcam
              Fake Nick 1.0
              • Oct 2005
              • 27689

              #7
              Originally posted by k0nr4d
              <?
              $array = array(
              "www.domain1.com" => "Site Name1",
              "www.domain2.com" => "Site Name2",
              "www.domain3.com" => "Site Name3"
              );
              ?>
              <img src="/logos/<? echo $_SERVER[HTTP_HOST]; ?>.jpg"><br>
              Welcome to <? echo $array[$_SERVER[HTTP_HOST]]; ?>
              I'll fuck around with it tomorrow or Sat. Send me your paypal info to sales (@) namenetwork.com. Whoever solves my problem first gets some drinking money.
              Last edited by onwebcam; 02-24-2012, 12:29 AM.
              PLEASE WAIT WHILE BIDEN ADMIN UNINSTALLS ITSELF.....
              ██████████████████▒ 99.5% complete.

              Comment

              • k0nr4d
                Confirmed User
                • Aug 2006
                • 9231

                #8
                Don't worry about
                Mechanical Bunny Media
                Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web Development

                Comment

                • woj
                  <&(©¿©)&>
                  • Jul 2002
                  • 47882

                  #9
                  If you still need help with it, hit me up icq: 33375924, or shoot me an email woj at wojfun dot com
                  Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
                  Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
                  Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager

                  Comment

                  Working...