Go back to previous page
Forum URL: http://www.dombom.com/cgi-bin/dcforum/dcboard.cgi
Forum Name: Tuelz
Topic ID: 11
#0, Replacez
Posted by Kurt on Jan-12-05 at 08:38 PM
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 function

Sequential - 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.




#1, Using Replacez to Insert Tracking Codes
Posted by Kurt on Jan-31-05 at 02:29 AM
In response to message #0
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.


#2, RE: Using Replacez to Insert Tracking Codes
Posted by teleam on Mar-28-05 at 04:30 AM
In response to message #1
Can this be used to correct a mistake made with my pages?

What I want to do is:

Find:<center><h2>Sponsors:</h2></center>

Replacez:<b>Sponsors:</b>

Tom


#3, RE: Using Replacez to Insert Tracking Codes
Posted by Graeme007 on Apr-03-05 at 07:46 AM
In response to message #2
Is it possible to get several lines of code replaced at one time on a selection of webpages within a folder?

I can only seem to manage replacing one line at a time.


#4, RE: Using Replacez to Insert Tracking Codes
Posted by Kurt on Apr-03-05 at 07:56 AM
In response to message #3
>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.


#5, RE: Using Replacez to Insert Tracking Codes
Posted by Graeme007 on Apr-03-05 at 02:21 PM
In response to message #4
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:-)


#6, RE: Using Replacez to Insert Tracking Codes
Posted by blogmeister1 on Aug-11-05 at 10:56 AM
In response to message #5
I'm using Replacez for a pretty large job and I keep getting the following message when I try:

"Invalid field format at Values : Field too long"

I think it has something to do with the urls I'm trying to insert, but I thought there might be a quicker way to fix this problem than going through all of my data to delete the long paths.


Any suggestions?


#7, RE: Using Replacez to Insert Tracking Codes
Posted by Kurt on Aug-11-05 at 03:33 PM
In response to message #6
Del,

Exit tuelz.exe, restart and repeat the error, then send the tuelz.log file to Kirill at supportATgammacenter.com . Thanks.


#8, RE: Using Replacez to Insert Tracking Codes
Posted by macrox on Sep-23-05 at 11:10 AM
In response to message #7
I too get that error.

I assumed it was some kind of limit on the number of characters that replacez allowed you to replace. The boxes only allow a fxed number of lines or charactyers or whatever.

It would be nice if you could remove the limit or increase it a lot because what I have to do now is remove lines little by little until it lets me do the replacing.

Cut my list of items in half for example.

That's extra work and forces me to run more replace missions with smaller lists of replace items.

For example if I have a folder of 1,500 links I want to replace it will only let me do around 400 links or so.

I don't like limits :'>


#9, RE: Using Replacez to Insert Tracking Codes
Posted by Graeme007 on Oct-02-06 at 08:53 PM
In response to message #8
Is it possible to get Replacez to replace a word with a blank space?

I know I can do it in notetab after I have manipulated the text but I would like to do it all at once in Replacez although it seems to need something in the Replace with: area


#10, RE: Using Replacez to Insert Tracking Codes
Posted by Kurt on Oct-02-06 at 08:55 PM
In response to message #9
>Is it possible to get Replacez to replace a word with a
>blank space?
>
>I know I can do it in notetab after I have manipulated the
>text but I would like to do it all at once in Replacez
>although it seems to need something in the Replace with:
>area

Graeme...

Sorry, no. But Super Listz will remove words like you want.

I'll add that feature to Replacez if I remember.



#11, RE: Using Replacez to Insert Tracking Codes
Posted by Graeme007 on Oct-02-06 at 09:08 PM
In response to message #10
Thanks Kurt - when would you like a reminder?

So Linez can replace a word with a blank? I must try that.


#12, RE: Using Replacez to Insert Tracking Codes
Posted by Kurt on Oct-02-06 at 09:12 PM
In response to message #11
>Thanks Kurt - when would you like a reminder?

Please send the reminder as soon as I'm ready.

>So Linez can replace a word with a blank? I must try that.

I did say (Super) Listz, but Linez will also work.


#13, Replacez with 2800+ Keywords
Posted by sgtaw on Dec-17-06 at 05:25 PM
In response to message #0
Hi Kurt,

I am using Replacez on 1500 pages. Each page has 5 places for the same replacement.

I am using replacez with 2800 replacements.

When I click replace, it keeps giving me a page not found and nothing happens.

When i reduce the number replaces to about 700 then eveything is ok.

Is there a limit of replacements that Replacez can use?

More so, what am I missing?

Thanks,

Ed


#14, RE: Replacez with 2800+ Keywords
Posted by Kurt on Dec-17-06 at 05:27 PM
In response to message #13
>Hi Kurt,
>
>I am using Replacez on 1500 pages. Each page has 5 places
>for the same replacement.
>
>I am using replacez with 2800 replacements.
>
>When I click replace, it keeps giving me a page not found
>and nothing happens.
>
>When i reduce the number replaces to about 700 then
>eveything is ok.
>
>Is there a limit of replacements that Replacez can use?
>
>More so, what am I missing?
>

Hi Ed,

Are you sure nothing happens? The error is usually only the browser error, while the changes have actually taken place.



#15, RE: Replacez with 2800+ Keywords
Posted by sgtaw on Dec-17-06 at 08:57 PM
In response to message #14
Hi Kurt,

I was doing some testing, and figured out what happened.

There is was a hidden character in my file that looks like a square. How it got in there I don't know.

BUT what was killing me was that I couldn't see it in a text file!

It was ONLY seen when I pasted the kw list into replacez and scrolled through the list.

Once I remove that character, everything worked.

Thanks!

Ed


#16, Funny Character showing up in web pages
Posted by sgtaw on Dec-17-06 at 08:57 PM
In response to message #0
Hi All,

I have been running replacez and this is what happened.

In my replacements I have the character '-' without quotes (dash).

When I look at the web page it shows up as '–' without quotes.

Here's the twist.

In the html code it shows up fine! Also, when I paste the source could into a now document and save the document, the webpage now looks fine!

Any clues?

This seems to be happening with all the special characters.

Thanks,

Ed