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 05-19-2006, 01:31 PM   #1
YoGold
Registered User
 
Join Date: Jul 2005
Posts: 23
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?
YoGold is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2006, 01:49 PM   #2
mortenb
Confirmed User
 
mortenb's Avatar
 
Join Date: Jul 2004
Location: Denmark ICQ: 7880009
Posts: 2,203
do a google search for SSI (server side includes)
mortenb is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2006, 02:23 PM   #3
psili
Confirmed User
 
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
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.
__________________
Your post count means nothing.
psili is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2006, 02:26 PM   #4
Screaming
I can change this!!!!!
 
Join Date: Feb 2004
Posts: 18,972
cheesy but works.
__________________
Screaming is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2006, 02:32 PM   #5
YoGold
Registered User
 
Join Date: Jul 2005
Posts: 23
thanks I will use that.

this is a hard script to find, I figured I would find some simple php file.
YoGold is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2006, 02:42 PM   #6
YoGold
Registered User
 
Join Date: Jul 2005
Posts: 23
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?
YoGold is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2006, 02:42 PM   #7
psili
Confirmed User
 
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
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. ;)
__________________
Your post count means nothing.
psili is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2006, 02:44 PM   #8
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
header blah blah

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

footer blah blah
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2006, 03:49 PM   #9
YoGold
Registered User
 
Join Date: Jul 2005
Posts: 23
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 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2006, 03:50 PM   #10
YoGold
Registered User
 
Join Date: Jul 2005
Posts: 23
Quote:
Originally Posted by Fris
header blah blah

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

footer blah blah
Will this work in php, or html pages?
YoGold is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2006, 05:26 PM   #11
YoGold
Registered User
 
Join Date: Jul 2005
Posts: 23
I guess I will have to figure out how to refresh each page to update the changes.
YoGold 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.