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 10-31-2005, 09:57 AM   #1
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
I need some code that places the site url on the page...

I am creating a parked page for my shit...just a generic page that has all the search shit and all that...similar to godaddy's parked page

anyway, i need a piece of code that will place the www.domain.com on the page wherever I place the code, including the title

so, it is dynamic, wherever I place the code the url of the site will show up
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-31-2005, 09:58 AM   #2
NickPapageorgio
Confirmed User
 
Join Date: Apr 2004
Location: NC
Posts: 8,323
Do an include there. ;)
__________________
NickPapageorgio is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-31-2005, 09:58 AM   #3
NickPapageorgio
Confirmed User
 
Join Date: Apr 2004
Location: NC
Posts: 8,323
I think the page has to be .shtml for includes and your server has to have SSI turned on also...I think...
__________________
NickPapageorgio is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-31-2005, 09:59 AM   #4
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
Quote:
Originally Posted by NickPapageorgio
I think the page has to be .shtml for includes and your server has to have SSI turned on also...I think...
I have includes all over my .php pages

but what type of include, how would it look?
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-31-2005, 10:02 AM   #5
NickPapageorgio
Confirmed User
 
Join Date: Apr 2004
Location: NC
Posts: 8,323
I think it would be something like
Code:
<!--#include file="thisfile.txt" -->
Then use a regular text file to update the actual code.

Like if you had the text file in a folder called "misc" the code whereever you want to include it would look like
Code:
<!--#include file="/misc/thisfile.txt" -->
You'd drop that code in wherever you wanted that to show up...
__________________

Last edited by NickPapageorgio; 10-31-2005 at 10:04 AM..
NickPapageorgio is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-31-2005, 10:03 AM   #6
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
Quote:
Originally Posted by NickPapageorgio
I think it would be something like
Code:
<!--#include file="thisfile.txt" -->
The use a regular text file to update the actual code.
so, if I have 100,000 parked pages, this code will dynamically place the url of whatever page is loaded in the place i put that code?

doesn't seem right
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-31-2005, 10:05 AM   #7
NickPapageorgio
Confirmed User
 
Join Date: Apr 2004
Location: NC
Posts: 8,323
Quote:
Originally Posted by Jace
so, if I have 100,000 parked pages, this code will dynamically place the url of whatever page is loaded in the place i put that code?

doesn't seem right
Oh, you mean it's going to be changing with the actual URL of the page where it resides...I got ya.

I thought you meant you wanted the same URL to appear on 100's of pages...my bad man.
__________________
NickPapageorgio is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-31-2005, 10:06 AM   #8
The Truth Hurts
Zph7YXfjMhg
 
The Truth Hurts's Avatar
 
Industry Role:
Join Date: Nov 2002
Location: In Your Skull
Posts: 15,304
Code:
<SCRIPT language="JavaScript">
<!--
loc=location.href;
document.write(loc)
//-->
</SCRIPT>
The Truth Hurts is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-31-2005, 10:07 AM   #9
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
<SCRIPT language="JavaScript">
<!--
loc=location.href;
document.write(loc)
//-->
</SCRIPT>


PERFECT!
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-31-2005, 10:08 AM   #10
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
shit, that last one won't allow it in the title bar
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-31-2005, 10:11 AM   #11
fuzebox
making it rain
 
fuzebox's Avatar
 
Industry Role:
Join Date: Oct 2003
Location: seattle
Posts: 22,114
<? print $_SERVER[SERVER_NAME]; ?>
fuzebox is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-31-2005, 10:14 AM   #12
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
Quote:
Originally Posted by fuzebox
<? print $_SERVER[SERVER_NAME]; ?>
there we go, that is perfect
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-31-2005, 10:14 AM   #13
grumpy
Too lazy to set a custom title
 
grumpy's Avatar
 
Join Date: Jan 2002
Location: Holland
Posts: 9,870
<SCRIPT language="JavaScript">
<!--
loc=location.href;
document.write(loc)
window.document.title=loc;
//-->
</SCRIPT>

that should do it.
__________________
Don't let greediness blur your vision | You gotta let some shit slide
icq - 441-456-888
grumpy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-31-2005, 10:26 AM   #14
fuzebox
making it rain
 
fuzebox's Avatar
 
Industry Role:
Join Date: Oct 2003
Location: seattle
Posts: 22,114
Quote:
Originally Posted by Jace
there we go, that is perfect
Cheers
fuzebox 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.