Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 02-24-2012, 12:09 AM   #1
onwebcam
Fake Nick 1.0
 
onwebcam's Avatar
 
Industry Role:
Join Date: Oct 2005
Location: Rent free, your head
Posts: 27,652
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.
__________________
PLEASE WAIT WHILE BIDEN ADMIN UNINSTALLS ITSELF.....
██████████████████▒ 99.5% complete.

Last edited by onwebcam; 02-24-2012 at 12:19 AM..
onwebcam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-24-2012, 12:25 AM   #2
k0nr4d
Confirmed User
 
k0nr4d's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,228
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
k0nr4d is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-24-2012, 12:37 AM   #3
onwebcam
Fake Nick 1.0
 
onwebcam's Avatar
 
Industry Role:
Join Date: Oct 2005
Location: Rent free, your head
Posts: 27,652
Quote:
Originally Posted by k0nr4d View Post
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.
__________________
PLEASE WAIT WHILE BIDEN ADMIN UNINSTALLS ITSELF.....
██████████████████▒ 99.5% complete.

Last edited by onwebcam; 02-24-2012 at 12:44 AM..
onwebcam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-24-2012, 02:13 AM   #4
k0nr4d
Confirmed User
 
k0nr4d's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,228
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.
k0nr4d is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-24-2012, 02:15 AM   #5
k0nr4d
Confirmed User
 
k0nr4d's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,228
<?
$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]]; ?>
k0nr4d is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-24-2012, 02:17 AM   #6
asdasd
So Fucking Banned
 
Industry Role:
Join Date: Feb 2005
Posts: 1,225
What he said
asdasd is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-24-2012, 02:23 AM   #7
onwebcam
Fake Nick 1.0
 
onwebcam's Avatar
 
Industry Role:
Join Date: Oct 2005
Location: Rent free, your head
Posts: 27,652
Quote:
Originally Posted by k0nr4d View Post
<?
$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.
__________________
PLEASE WAIT WHILE BIDEN ADMIN UNINSTALLS ITSELF.....
██████████████████▒ 99.5% complete.

Last edited by onwebcam; 02-24-2012 at 02:29 AM..
onwebcam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-24-2012, 04:27 AM   #8
k0nr4d
Confirmed User
 
k0nr4d's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,228
Don't worry about
k0nr4d is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-24-2012, 07:06 AM   #9
woj
<&(©¿©)&>
 
woj's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
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
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.