Quick Nav:  Online Store   |   Login | Register

PageBlaster Rules! Share your rules here!!

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Page 2 of 2<< < 12
AuthorMessages
Edvard Pitka
<50 Posts
Posts:21


05/29/2008 10:07 AM  

I modified title rule as it was not taking in consideration possible new line in the title and additional attributes in span element

search for:

(?s)<title>.*?</title>(.*?)<span\s+id="Title".*?>(.*?)</span>

replace with:

<title>$2</title>$1 

 

Edvard Pitka
<50 Posts
Posts:21


05/29/2008 10:16 AM  

Darn it, I tried three times to preview and it shows code but when I save it removes everything. How do you post code here?

llong
<100 Posts
Posts:96


05/29/2008 10:22 AM  

Put spaces after the less than character. ie:

<  p>

this would be a paragraph

<  /p>

John Mitchell
Posts:3492


05/29/2008 10:23 AM  

Wrap it with < code>< /code> (without spaces in the tag)
It works better if you do it from the Quick Reply.

You can also just make sure there is a space after any <

John Mitchell
Posts:3492


05/29/2008 10:25 AM  

Another way to make sure that it is not copied wrong if someone else wants to use it is to attach a file with a .txt extension that has your code.

Edvard Pitka
<50 Posts
Posts:21


05/29/2008 12:41 PM  

Here we go, two rules for the title


Attachment: 1529452883171.txt

DavidWSnow
<250Posts
Posts:213


05/29/2008 1:25 PM  

At www.AgingSafey.com I have about 40 portals (such as comfortcare.agingsafely.com)  and most of them use PageBlaster rules for the Title and Description as well as xhtml cleanup and other functions.  I thought that I would try John's < code> .... < /code>  method of entering rules here just to test it.

I tried  different ways using < code> and Active Forum eat some of the rule each time - Yuk

The ways that I tried were:

  1. Staying in the normal mode of the editor and putting the < code>< /code> then instering the Search For and Replace with rules inside. This producded a line line for each rule wich included < p> tags etc.
  2. Switching to Source Mode when inserting the < code etc. When you get out of source mode the stuff you created is invisable. After you submit it it becomes visible but some <'s are missing!

Maybe John can explain how one should use the < code> elements in Active Forum.  It sure would be nice to see the rules inthe context of how they were used without having them in attached text files, which currently seems the only reliable way.

Regards,

/DaveS

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Page 2 of 2<< < 12

Forums >Snapsis Product Support >PageBlaster > PageBlaster Rules! Share your rules here!!



ActiveForums 3.7
Powered by: Snapsis Software