Post Reply 
Galleries of images
Oct. 13, 2008, 03:59 PM
Post: #1
Cool Galleries of images
These are my filters for galleries of images. It works in two differents ways:
If "See only images" is disabled, it will work only if you push ALT key while loading the page.
If "See only images" is enabled, it will always work unless you push ALT key while loading.

Code:
[Patterns]
Name = "See only images {ln}081010"
Active = FALSE
URL = "$TYPE(htm)"
Limit = 50
Match = "<start>"
Replace = "$SET(OnlyImages=1)"
          "$STOP()"

Name = "Galleries1: <a+img> Link to image to inline (Key:Alt to toggle) {ln}081011"
Active = TRUE
URL = "$TYPE(htm)"
Bounds = "<a\s*> <im(g|age)*>"
Limit = 512
Match = "($NEST(<a,*href=$AV((*.(jp(e|)g|gif|png)*)\2)*,>)"
        ")*"
        "($NEST(<im(g|age),*\ssrc=$AV(\3)*,>)"
        ")"
        "((^$TST(OnlyImages=1))$KEYCHK(^A)|$TST(OnlyImages=1)(^$KEYCHK(^A)))"
Replace = "<img src=\2 border=1>"
          "<span class=prox2 style=display:none;><a href=\3><font color=pink>[thumb]</font></a></span>"
          "<!-- This filter matches links malformed, don't modify -->"

Name = "Galleries2: <img inline> Convert to link (Key:Alt to toggle) {ln}081010"
Active = TRUE
URL = "($TYPE(htm)|$TYPE(js))"
Bounds = "<img\s*>"
Limit = 512
Match = "$NEST(<im(g|age),*\ssrc=$AV(\3)*,>)"
        "((^$TST(OnlyImages=1))$KEYCHK(^A)|$TST(OnlyImages=1)(^$KEYCHK(^A)))"
Replace = "<span class=prox2 style=display:none;><center><a href=\3><font color=pink>[Img.inline]</font></a></center></span>"

Name = "Galleries3: Removing tables and links (Key:Alt to toggle) {ln}081013b"
Active = TRUE
URL = "$TYPE(htm)"
Limit = 1600
Match = "("
        "(< (td|table|div)*>$SET(3=[table]))|"
        "($NEST(< a,*href=$AV(\2)*,</a>))(^$TST(\2=(*.(jpe|jpg|gif|png|mpg|mpeg|wmv|avi))))$SET(3=[Link])"
        ")"
        "((^$TST(OnlyImages=1))$KEYCHK(^A)|$TST(OnlyImages=1)(^$KEYCHK(^A)))"
Replace = "<span class=prox2 style=display:none;><font color=pink>\3</font></span>"

Edit: i removed all the $TST(V_PostBody=1) for not needing "html zones filters"
Edit2: There was an error in galleries 3, please update
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
Galleries of images - lnminente - Oct. 13, 2008 03:59 PM
RE: Galleries of images - lnminente - Oct. 13, 2008, 06:10 PM

Forum Jump: