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 a script (https://gfy.com/showthread.php?t=611768)

YoGold 05-19-2006 01:31 PM

I need a script
 
I have 100 html pages that I would like to be able to update a small section on each page twice a month. But I dont want to go to each page and update them individual.

Is there a script that will allow me to changes small parts of each page with one submition?

mortenb 05-19-2006 01:49 PM

do a google search for SSI (server side includes)

psili 05-19-2006 02:23 PM

put this in the places on the pages you want to include the update:

Code:

<script language="JavaScript" src="/location/of/file.js"></script>
now create a javascript file with what you want in it.

file.js =
Code:

function writeStuff()
{
  str = "Hello. Hello. Hello";
  return str;
}
document.write.(writeStuff());

Note: Very, very cheesy solution, there.

Screaming 05-19-2006 02:26 PM

cheesy but works.

YoGold 05-19-2006 02:32 PM

thanks I will use that.

this is a hard script to find, I figured I would find some simple php file.

YoGold 05-19-2006 02:42 PM

Quote:

Originally Posted by psili

Code:

<script language="JavaScript" src="/location/of/file.js"></script>

if a surfer has javascript turned off will this not show up on the page?

psili 05-19-2006 02:42 PM

Quote:

Originally Posted by YoGold
if a surfer has javascript turned off will this not show up on the page?

exactly.

You can either keep all your HTML pages and do the Server Side Includes mentioned above, or turn all those pages to PHP and do something that way.

edit: The solution I posted is, perhaps, the cheesiest possible. ;)

fris 05-19-2006 02:44 PM

header blah blah

<!--#include virtual="/updates.html" -->

footer blah blah

YoGold 05-19-2006 03:49 PM

Quote:

Originally Posted by Fris
header blah blah

<!--#include virtual="/updates.html" -->

footer blah blah

So this will work? I just set up an update.html page and call it from this?

YoGold 05-19-2006 03:50 PM

Quote:

Originally Posted by Fris
header blah blah

<!--#include virtual="/updates.html" -->

footer blah blah

Will this work in php, or html pages?

YoGold 05-19-2006 05:26 PM

I guess I will have to figure out how to refresh each page to update the changes.


All times are GMT -7. The time now is 10:18 PM.

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