GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   I need some code that places the site url on the page... (https://gfy.com/showthread.php?t=534577)

Jace 10-31-2005 09:57 AM

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

NickPapageorgio 10-31-2005 09:58 AM

Do an include there. ;)

NickPapageorgio 10-31-2005 09:58 AM

I think the page has to be .shtml for includes and your server has to have SSI turned on also...I think...

Jace 10-31-2005 09:59 AM

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?

NickPapageorgio 10-31-2005 10:02 AM

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...

Jace 10-31-2005 10:03 AM

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

NickPapageorgio 10-31-2005 10:05 AM

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.

The Truth Hurts 10-31-2005 10:06 AM

Code:

<SCRIPT language="JavaScript">
<!--
loc=location.href;
document.write(loc)
//-->
</SCRIPT>


Jace 10-31-2005 10:07 AM

<SCRIPT language="JavaScript">
<!--
loc=location.href;
document.write(loc)
//-->
</SCRIPT>


PERFECT!

Jace 10-31-2005 10:08 AM

shit, that last one won't allow it in the title bar

fuzebox 10-31-2005 10:11 AM

<? print $_SERVER[SERVER_NAME]; ?>

Jace 10-31-2005 10:14 AM

Quote:

Originally Posted by fuzebox
<? print $_SERVER[SERVER_NAME]; ?>

there we go, that is perfect

grumpy 10-31-2005 10:14 AM

<SCRIPT language="JavaScript">
<!--
loc=location.href;
document.write(loc)
window.document.title=loc;
//-->
</SCRIPT>

that should do it.

fuzebox 10-31-2005 10:26 AM

Quote:

Originally Posted by Jace
there we go, that is perfect

Cheers :thumbsup


All times are GMT -7. The time now is 11:35 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123