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 12-20-2006, 06:38 PM   #1
scottybuzz
Too lazy to set a custom title
 
scottybuzz's Avatar
 
Industry Role:
Join Date: May 2006
Location: NY
Posts: 14,800
I want to add the same picture to everyone of my pages on html, is there a tool?

Say I want to add a link or picture at the bottom of each of my html pages but dont want to manually do it for each one, is there a tool that can go through them all automatically and add it please?
scottybuzz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2006, 06:40 PM   #2
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
yup that can be done.
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2006, 06:40 PM   #3
DjSap
Confirmed User
 
Join Date: Jul 2002
Posts: 3,869
run a full dir find and replace, replacing </body> with <img tag here></body>
__________________
Blog Themes, TGP Design, Writing Services, Grunt Work
ICQ: 66871495
DjSap is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2006, 06:42 PM   #4
psili
Confirmed User
 
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
You have an HTML editor with a nice search and replace function plus a bunch of pages all with the same markup where you want the replace to happen? If so, just do a search on the place where you want the picture to be and replace it with the text you searched for plus the new image markup in place.

Otherwise, there's other options, I'm sure, but the above's just what initially came to mind.
__________________
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 12-20-2006, 06:48 PM   #5
HighSociety
Confirmed User
 
HighSociety's Avatar
 
Join Date: Jun 2005
Posts: 1,786
good question, thanks for the info
__________________
http://www.highsociety.com
http://www.playgirl.com
http://www.cheri.com


Jonathan "JC" Maldini
ICQ: 223 643
HighSociety is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2006, 06:48 PM   #6
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
save this as htaccess

Code:
AddHandler headered .htm 
AddHandler headered .html 
Action headered http://yoursite.com/wrap/wrap.php
then save this as wrap.php

Code:
<?php 
$footer = "footer.html"; 
$file = $_SERVER["PATH_TRANSLATED"]; 
readfile($file); 
readfile($footer); 
?>
then place whatever html you want added to every html file in a file called footer.html
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2006, 06:48 PM   #7
scottybuzz
Too lazy to set a custom title
 
scottybuzz's Avatar
 
Industry Role:
Join Date: May 2006
Location: NY
Posts: 14,800
ive got about 3 hundred pages.

how do i "run a full dir " please?
scottybuzz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2006, 06:49 PM   #8
scottybuzz
Too lazy to set a custom title
 
scottybuzz's Avatar
 
Industry Role:
Join Date: May 2006
Location: NY
Posts: 14,800
Quote:
Originally Posted by SmokeyTheBear View Post
save this as htaccess

Code:
AddHandler headered .htm 
AddHandler headered .html 
Action headered http://yoursite.com/wrap/wrap.php
then save this as wrap.php

Code:
<?php 
$footer = "footer.html"; 
$file = $_SERVER["PATH_TRANSLATED"]; 
readfile($file); 
readfile($footer); 
?>
then place whatever html you want added to every html file in a file called footer.html


thankyou thankyou very much, indeed a true help.
p.s. i like the way this has been done using ht.access
scottybuzz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2006, 06:49 PM   #9
Dvae
Confirmed User
 
Dvae's Avatar
 
Industry Role:
Join Date: Feb 2005
Location: US
Posts: 5,326
Quote:
Originally Posted by scottybuzz View Post
Say I want to add a link or picture at the bottom of each of my html pages but dont want to manually do it for each one, is there a tool that can go through them all automatically and add it please?

Why not use SSI?
__________________
.
.

Arguing with a troll is a lot like wrestling in the mud with a pig, after a couple of hours you realize the pig likes it.
Dvae is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2006, 06:49 PM   #10
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
ps the above doesnt actually alter the files it just adds whatever is in footer.html onto the end of every file.. but would work the same way..
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2006, 06:50 PM   #11
DjSap
Confirmed User
 
Join Date: Jul 2002
Posts: 3,869
Quote:
Originally Posted by scottybuzz View Post
ive got about 3 hundred pages.

how do i "run a full dir " please?
use dreamweaver of watever you have, when choosing find and replace you have the option of running it in a whole directory, so you choose the directory where your html files are.
__________________
Blog Themes, TGP Design, Writing Services, Grunt Work
ICQ: 66871495
DjSap is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2006, 06:51 PM   #12
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
also you will want to place the htaccess in every top directory you want the changes to take place
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2006, 06:55 PM   #13
psili
Confirmed User
 
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
That's a pretty trick solution. I dig how you hack stuff together. I'm just curious, does [somepage].html with "footer.html" inserted into the bottom of it now have an "</html>" tag followed by more html markup?

Yea, yea, yea, I know it really doesn't matter in the end, but was just curious. On a side note, since you're the fire bear, can you get rid of the snow in colorado for me?

Quote:
Originally Posted by SmokeyTheBear View Post
save this as htaccess

Code:
AddHandler headered .htm 
AddHandler headered .html 
Action headered http://yoursite.com/wrap/wrap.php
then save this as wrap.php

Code:
<?php 
$footer = "footer.html"; 
$file = $_SERVER["PATH_TRANSLATED"]; 
readfile($file); 
readfile($footer); 
?>
then place whatever html you want added to every html file in a file called footer.html
__________________
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 12-20-2006, 07:07 PM   #14
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
Quote:
Originally Posted by psili View Post
That's a pretty trick solution. I dig how you hack stuff together. I'm just curious, does [somepage].html with "footer.html" inserted into the bottom of it now have an "</html>" tag followed by more html markup?

Yea, yea, yea, I know it really doesn't matter in the end, but was just curious. On a side note, since you're the fire bear, can you get rid of the snow in colorado for me?
yes it would but you could do this i think

<?php
$footer = "footer.html";
$file = $_SERVER["PATH_TRANSLATED"];
$rep = file_get_contents($file);
$rep = str_replace("</html","",$rep);
echo $rep;
readfile($footer);
?>
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2006, 07:09 PM   #15
psili
Confirmed User
 
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
Quote:
Originally Posted by SmokeyTheBear View Post
yes it would but you could do this i think

<?php
$footer = "footer.html";
$file = $_SERVER["PATH_TRANSLATED"];
$rep = file_get_contents($file);
$rep = str_replace("</html","",$rep);
echo $rep;
readfile($footer);
?>
Whuddabout the snow man!
Whuddabout the snow!

BTW - how do you get so much time to hack around with shit? I need free time for that.
__________________
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 12-20-2006, 08:20 PM   #16
latinasojourn
Confirmed User
 
Join Date: Oct 2003
Posts: 3,191
http://www.ksware.com/mu.html
latinasojourn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2006, 08:26 PM   #17
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
Smokey always comes up with the coolest shit
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2006, 08:36 PM   #18
OzMan
Confirmed User
 
OzMan's Avatar
 
Join Date: Sep 2003
Location: Los Begas
Posts: 9,162
pretty fuckin' nifty solution..very useful...

chalk another one up for that bear dude
OzMan 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.