Quick Nav:  Online Store   |   Login | Register
PrevPrev--NextNext
REGEX snippet for Active Forums pages using PB
Last Post 11 Aug 2007 10:15 AM by John Mitchell. 1 Replies.
Please Register to participate.
Sort: Print topic: Printer Friendly
AuthorMessages
eoghan o'neill
New Member
Posts:52


Send PM:Send Private Message

--
11 Aug 2007 01:33 AM

In this previous thread Mariette raises the point that, when running PB, Active Forum statistics are not updated when the thread is viewèd by an unauthenticated user. At the end of the thread`she presents a REGEX snippet to add to the PB config file that works for her particular set up. I tried this on my DNN set up but it did not work, which I now see is because she seems to have friencly URLS turned off hence the URLS of her site's AF forum entries are constructed as follows:

http://www.domainname.com/Default.aspx?tabid=53&view=topic&postid=25141&forumid=46

Her regex snippet uses 'view=topic' (highlighted in bold in the above URL) to filter out such pages of topics from PageBlaster. Her solution was:

 < PATH exclude From="All" pattern="view=topic" / >

However on my and many other sites using AF (snapsis.com included?) Friendly URLs are switcehd on and the topic pages have a URL that looks like this:

http://www.domainname.com/tabid/601/view/topic/forumid/9/postid/4334/Default.aspx

To filter out topic pages on such sites the regex needs to filter out pages that have 'view/topic/' in the URL (I think the 2 forward slashes should be included in the filter so that AF pages with list of topics are not 'hit' by the REGEX). A complete novice to Regex (like me) would cook up something like this:

 < PATH exclude From="All" pattern="view/topic/" / >

This - of course - does not work.

John, have you any ideas on how this could be done and actually work?! You did one on a previous thread say that you saw the prepping of REGEX snippets as akin to crossword puzzles for you...

This would be very useful for the many out there running DNN with PB and AF.

Eoghano

John Mitchell
Veteran Member
Posts:4350

Avatar

Administrator
Send PM:Send Private Message

--
11 Aug 2007 10:15 AM
One or the other should work depending on if the PageBlaster module is listed before or after the UrlRewrite module in the HttpModules section of the web.config.

The First one listed is the Last one to be used, so if PageBlaster is listed first then it will see the Url with the normal querystring view=topic since the Url will already have been rewritten.

I wouldn't exclude all urls with view=topic though. That seems like it will exclude a lot more pages then just the ones with statistics on it.

Maybe you can narrow in mor specifically on the url that has tabid with the forums but does not contain other querystring parameters.
Please Register to participate.

Active Forums 4.1
     
      
Powered by: Snapsis Software