![]() |
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?
|
yup that can be done.
|
run a full dir find and replace, replacing </body> with <img tag here></body>
|
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. |
good question, thanks for the info
|
save this as htaccess
Code:
AddHandler headered .htm Code:
<?php |
ive got about 3 hundred pages.
how do i "run a full dir " please? |
Quote:
thankyou thankyou very much, indeed a true help. p.s. i like the way this has been done using ht.access |
Quote:
Why not use SSI? |
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..
|
Quote:
|
also you will want to place the htaccess in every top directory you want the changes to take place
|
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:
|
Quote:
<?php $footer = "footer.html"; $file = $_SERVER["PATH_TRANSLATED"]; $rep = file_get_contents($file); $rep = str_replace("</html","",$rep); echo $rep; readfile($footer); ?> |
Quote:
Whuddabout the snow! BTW - how do you get so much time to hack around with shit? I need free time for that. :) |
|
Smokey always comes up with the coolest shit :thumbsup
|
pretty fuckin' nifty solution..very useful...
chalk another one up for that bear dude :thumbsup |
All times are GMT -7. The time now is 04:19 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123