|   |   |   | ||||
| 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. | 
|    | 
| 
 | |||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. | 
|  | Thread Tools | 
|  12-20-2006, 06:38 PM | #1 | 
| Too lazy to set a custom title 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? 
				__________________ $$$$$ MAKE HUGE MONEY IN CAMS - CLICK HERE $$$$$ | 
|   |           | 
|  12-20-2006, 06:40 PM | #2 | 
| ►SouthOfHeaven 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 | 
|   |           | 
|  12-20-2006, 06:40 PM | #3 | 
| 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 | 
|   |           | 
|  12-20-2006, 06:42 PM | #4 | 
| 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. | 
|   |           | 
|  12-20-2006, 06:48 PM | #5 | 
| Confirmed User 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 | 
|   |           | 
|  12-20-2006, 06:48 PM | #6 | 
| ►SouthOfHeaven 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 Code: <?php $footer = "footer.html"; $file = $_SERVER["PATH_TRANSLATED"]; readfile($file); readfile($footer); ?> 
				__________________ hatisblack at yahoo.com | 
|   |           | 
|  12-20-2006, 06:48 PM | #7 | 
| Too lazy to set a custom title 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? 
				__________________ $$$$$ MAKE HUGE MONEY IN CAMS - CLICK HERE $$$$$ | 
|   |           | 
|  12-20-2006, 06:49 PM | #8 | |
| Too lazy to set a custom title Industry Role:  Join Date: May 2006 Location: NY 
					Posts: 14,800
				 | Quote: 
 thankyou thankyou very much, indeed a true help. p.s. i like the way this has been done using ht.access 
				__________________ $$$$$ MAKE HUGE MONEY IN CAMS - CLICK HERE $$$$$ | |
|   |           | 
|  12-20-2006, 06:49 PM | #9 | |
| Confirmed User Industry Role:  Join Date: Feb 2005 Location: US 
					Posts: 5,326
				 | Quote: 
 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. | |
|   |           | 
|  12-20-2006, 06:49 PM | #10 | 
| ►SouthOfHeaven 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 | 
|   |           | 
|  12-20-2006, 06:50 PM | #11 | 
| Confirmed User Join Date: Jul 2002 
					Posts: 3,869
				 | 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 | 
|   |           | 
|  12-20-2006, 06:51 PM | #12 | 
| ►SouthOfHeaven 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 | 
|   |           | 
|  12-20-2006, 06:55 PM | #13 | |
| 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: 
 
				__________________ Your post count means nothing. | |
|   |           | 
|  12-20-2006, 07:07 PM | #14 | |
| ►SouthOfHeaven Join Date: Jun 2004 Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer 
					Posts: 28,609
				 | Quote: 
 <?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 | |
|   |           | 
|  12-20-2006, 07:09 PM | #15 | |
| Confirmed User Join Date: Apr 2003 Location: Loveland, CO 
					Posts: 5,526
				 | Quote: 
 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. | |
|   |           | 
|  12-20-2006, 08:20 PM | #16 | 
| Confirmed User Join Date: Oct 2003 
					Posts: 3,191
				 | |
|   |           | 
|  12-20-2006, 08:26 PM | #17 | 
| Yes that IS me. Bitch. Industry Role:  Join Date: Nov 2001 
					Posts: 14,149
				 | Smokey always comes up with the coolest shit   | 
|   |           | 
|  12-20-2006, 08:36 PM | #18 | 
| Confirmed User Join Date: Sep 2003 Location: Los Begas 
					Posts: 9,162
				 | pretty fuckin' nifty solution..very useful... chalk another one up for that bear dude  | 
|   |           |