Kurt
Member since Dec-5-02
6391 posts, 3 feedbacks, 4 points |
Jan-12-05, 08:38 PM (PST) |
|
"Replacez"
|
LAST EDITED ON Apr-22-06 AT 11:01 AM (PST)
Replacez Readme.ReplaceBomb is now Replacez to be used with Tuelz.
Replacez Replacez is a search and replace tuel with a twist. It will locate your search text, but instead of replacing it with just another word or phrase, Replacez will cycle through a list of text strings, replacing each instance of your "search text" with the next line of text you have entered. For Example. Let's take this paragraph:
I took my dog for a walk and we went to the park where there was another dog or two. Whenever my dog sees another dog, he gets very excited. If we did a "regular" search/replace, finding "dog" and replacing it with "puppy" the above sentence would simply insert "puppy" for ever instance of the word "dog". With Replacez, we can add variety. For SEARCH FOR enter: dog For REPLACE WITH enter: puppy mutt canine pooch Replacez will cycle through all "dogs" and replace it with the next line entered into REPLACE WITH, creating this paragraph: I took my puppy for a walk and we went to the park where there was another mutt or two. Whenever my canine sees another pooch, he gets very excited.This is an excellent way to mix things up and add variety to your pages and has a number of benefits, including powerful SEO strategies. New Feature: added 4-22-06...Page by Page functionSequential - Uses the "old" method, and replaces each instance with a new choice. ...Or... Page by page - This mode will change all instances on a single page with the same choice, then open the next page and use the same choice for all replaces on that page, etc.
-Boom boom boom boom.
|
|
Alert | IP |
Printer-friendly page | Edit |
Reply |
Reply With Quote |
|
|
Kurt
Member since Dec-5-02
6391 posts, 3 feedbacks, 4 points |
Jan-31-05, 02:29 AM (PST) |
|
1. "Using Replacez to Insert Tracking Codes"
|
LAST EDITED ON Jan-31-05 AT 02:49 AM (PST) Many website stats programs (and other things) require each page to use a unique tracking code. Replacez is perfect for this.Replacez is perfect for this type of thing. It's a "two stepper". Step One: Find: </body> Replacez: <!--trackingTagID=PAGE-ID-TAG--></BODY> This will insert the tracking tag at the bottom of each page. Don't forget to re-include the </body> tag in the "replace", also. Step Two Find: PAGE-ID-TAG&id= Replacez: PAGE-ID-TAG&id=1 PAGE-ID-TAG&id=2 PAGE-ID-TAG&id=3 PAGE-ID-TAG&id=4 ...etc. Of course, the exact tag will be different, but try to isolate the ID number that needs to change and use Replacez. This will give a different ID for each page. You may be able to use your keywords as ID, depending on your tracking program. This method should take less than 5 minutes to add a unique tracking code to a few thousand pages. Just make sure you have more "numbers" than pages.
-Boom boom boom boom.
|
|
Alert | IP |
Printer-friendly page | Edit |
Reply |
Reply With Quote |
|
|
Kurt
Member since Dec-5-02
6391 posts, 3 feedbacks, 4 points |
Apr-03-05, 07:56 AM (PST) |
|
4. "RE: Using Replacez to Insert Tracking Codes"
|
>Is it possible to get several lines of code replaced at one >time on a selection of webpages within a folder? Graeme, No, you'll need to run something like Tagz first or a couple of "Replacez". Here's a generic "recipe": 1 Find: Start of text string Replace w/Some unique tag: <starttagz> 2 Find: End of text string Replace w/Some unique tag: <endtagz> 3 Run Tagz, using the start/end tags just inserted to insert another <tagzzz> 4 Run Replacez to replace the <tagzzz> with your new info. 5. Remove your start/end tags used in steps 1 and 2. While it seems like a lot of work, the truth is this should only take an extra minute or two and this technique can very useful.
-Boom boom boom boom.
|
|
Alert | IP |
Printer-friendly page | Edit |
Reply |
Reply With Quote |
|
|
Graeme007
Member since Oct-12-03
882 posts, Rate this user |
Apr-03-05, 02:21 PM (PST) |
|
5. "RE: Using Replacez to Insert Tracking Codes"
|
That worked perfectly thanks Kurt. I wanted to replace all the style code on the pages with an external style sheet so I just selected Starting Tag: <style type="text/css"> Ending Tag: </style> Replace with: <link rel="stylesheet" href="/styles.css" type="text/css"> And the whole folder was done. It was just as quick. BUT - probably the most important thing I learned was I need to use my brains a little more and make the most of the Tuelz features that are available if I use my imagination. I should have seen this one:-) Graeme |
|
Alert | IP |
Printer-friendly page | | | | |