Current User: Guest Login
Please consider registering


Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Exclude Directory in Extra Sections

Reply to Post Add a New Topic
UserPost

3:51 pm
February 6, 2011


Paul Weston

Guest

Hi,

I have the following extra section:

———-

ExtraSectionName1="Viewed Images"
ExtraSectionCodeFilter1="200 304"
ExtraSectionCondition1="URL,\.(png|gif|jpe?g)$"
ExtraSectionFirstColumnTitle1="Image"
ExtraSectionFirstColumnValues1="URL,^(.*\/photos\/.*\.(png|gif|jpe?g))$"
ExtraSectionFirstColumnFormat1="<A HREF='http://www.mydomain.co.uk%s&#039; TARGET='_blank'>%s</A>"
ExtraSectionStatTypes1=HBL
ExtraSectionAddSumRow1=1

———-

A typical URL would be:

 /photos/birds/robin/nice-robin-2010_11_26.jpg

I want to avoid listing the thumbnails that are in a thumbs directory, e.g.:

 /photos/birds/robin/thumbs/nice-robin-2010_11_26.jpg

Is this possible?

Thanks in advance,

Paul

4:23 pm
February 6, 2011


Jean-Luc

Admin

posts 1125

Hi,

I would replace your ExtraSectionCondition1  by

ExtraSectionCondition1="URL,(?!\/thumbs\/)"

This excludes any URL containing /thumbs/. All files that are not images are excluded by your ExtraSectionFirstColumnValues1  anyway.

4:37 pm
February 6, 2011


Paul Weston

Guest

Hi Jean-Luc,

Thanks very much for your very quick response. Will give that a try and report back.

Paul

12:27 am
February 22, 2011


Paul Weston

Guest

Hi Jean-Luc,

I'm slow getting back to you, but that worked perfectly. Thanks again for your help.

Paul

1:08 am
March 23, 2011


Paul Weston

Guest

Hello again Jean-Luc,

When I made that last post, all seemed to be working fine, but I've noticed a few URLs with /thumbs/ included in the stats – here are two examples:

/photos/Birds/Wren/thumbs/1DN_3012_2011-03-14_Great-Orme.jpg

/photos/Birds/Long-tailed_Tit/thumbs/1DN_2861_2011-02-17_Moore-Nature-Reserve.jpg

This is the extra section:

———-

ExtraSectionName1="Viewed Images"
ExtraSectionCodeFilter1="200 304"
ExtraSectionCondition1="URL,(?!\/thumbs\/)"
ExtraSectionFirstColumnTitle1="Image"
ExtraSectionFirstColumnValues1="URL,^(.*\/photos\/.*\.(png|gif|jpe?g))$"
ExtraSectionFirstColumnFormat1="<A HREF='http://www.birdimages.co.uk%s&#039; TARGET='_blank'>%s</A>"
ExtraSectionStatTypes1=HBL
ExtraSectionAddSumRow1=1

———-

Can you see why this might happen?

Thanks in advance,

Paul

1:24 pm
March 30, 2011


Paul Weston

Guest

Anyone?

Thanks

3:03 pm
March 30, 2011


Jean-Luc

Admin

posts 1125

Sorry for the delay, but I have to give priority to consultancy customers.

This one should work better :

ExtraSectionCondition1="URL,^(?!.*\/thumbs\/)"

12:42 am
March 31, 2011


Paul Weston

Guest

Jean-Luc said:

Sorry for the delay, but I have to give priority to consultancy customers.


I understand completely!

Thanks very much – will give it a try.

Paul

Reply to Post

Reply to Topic:
Exclude Directory in Extra Sections

Guest Name (Required):

Guest Email (Required):

NOTE: New Posts are subject to administrator approval before being displayed

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
7 + 2
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
15 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 639
Posts: 2710

Membership:

There are 257 Members
There have been 304 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

cssfsu – 55
deepakgupta – 34
albert_newton – 30
cosminpana – 20
DTNMike – 19
ahtshun83 – 17

Recent New Members: raju, todd2taylor, sbdcunha, mansigill1987, ThomasDuh, ThomasKic

Administrators: Jean-Luc (1125 Posts)

Moderators: Jean-Luc (1125 Posts)