Post Reply 
DateStamp and Alternate Displays
Oct. 26, 2004, 01:21 PM
Post: #1
 
These are the beginnings of an evolving filter that will function as a 'Toggle Original Layout' for several forums that I visit pretty much on a daily basis...

Since I visit them DAILY, anything posted BEFORE yesterday will be hidden until I toggle them into view...

As is, it only functions on the 'front page' of Kye-U's forum and it is bypassed by holding down the Ctrl key while loading the page...
I basically wanted to present it in its early stages in case others have a need for something similar...

Keep in mind that it utilizes $LST(Count) in order for 'yesterday' to function - but even without $LST(Count), it should work okay for hiding everything except today's posts...

Like I said, it's in its very early stages, but wanted to get the idea out there...
Code:
Name = "DateStamp {Prox(Fox|Rocks)}"
Active = TRUE
URL = "$TYPE(htm)"
Limit = 4096
Match = "( <!DOCTYPE*> |)\0"
"$SET(monthnum=$DTM(M))"
"$SET(today=$DTM(D))"
"$SET(yesterday=$GET(today)-1)$TST(yesterday=$LST(Count))$SET(yesterday=$GET(i))"
"$SET(year=$DTM(Y))"
"($SET(month=Oct)$TST(monthnum=10)|$SET(month=Nov)$TST(monthnum=11)|$SET(month=Dec)$TST(monthnum=12))"
Replace = "$STOP()\0"
"$SET(showsite=<span id=prxFlyVar>DateStamp:</span>    $GET(month) $GET(yesterday)/$GET(today), $GET(year)<br>$GET(showsite))"
Code:
Name = "Un-Official Proxomitron Forum:  DateStamp Display [Key=^Ctrl] {Prox(Fox|Rocks)}"
Active = TRUE
URL = "(^$KEYCHK(^C))www.kye-u.com/proxo/forums/"
Limit = 1024
Match = "<td class="row4" align="center">*<td class="row2" nowrap="nowrap">(???)\1$SET(matchmonth=\1) ([#1:31])\2$SET(matchday=\2) (????)\3$SET(matchyear=\3)*<br />*</a></td>"
"("
"(^$TST(matchmonth=$TST(month)))"
"|"
"(^$TST(matchday=($TST(yesterday)|$TST(today))))"
"|"
"(^$TST(matchyear=$TST(year)))"
")"
Add Thank You Quote this message in a reply
Oct. 26, 2004, 07:05 PM
Post: #2
 
Very cool!

I think I'll use it from now on, since I usuall check the forums daily, and I have to manually scroll to view any new posts, so this will certainly help me Eyes Closed Smile
Visit this user's website
Add Thank You Quote this message in a reply
Oct. 26, 2004, 07:11 PM
Post: #3
 
There's a lot of room for improvement, but I did surprise myself in at least getting my little brain child to the playground...
Add Thank You Quote this message in a reply
Oct. 26, 2004, 07:45 PM
Post: #4
 
This is my updated version of your filter for the forums (it removes the white around the updated forum box):

Code:
[Patterns]
Name = "Un-Official Proxomitron Forum:  DateStamp Display [Key=^Ctrl] {Prox(Fox|Rocks)}"
Active = TRUE
URL = "(^$KEYCHK(^C))www.kye-u.com/proxo/forums/"
Limit = 1024
Match = "<tr>\s<td class="row4" align="center">*<td class="row2" nowrap="nowrap">(???)\1$SET(matchmonth=\1) ([#1:31])\2$SET(matchday=\2) (????)\3$SET(matchyear=\3)*<br />*</a></td>\s</tr>"
"("
"(^$TST(matchmonth=$TST(month)))"
"|"
"(^$TST(matchday=($TST(yesterday)|$TST(today))))"
"|"
"(^$TST(matchyear=$TST(year)))"
")"
Visit this user's website
Add Thank You Quote this message in a reply
Oct. 26, 2004, 08:19 PM
Post: #5
 
With those changes, the bottom posting of each "section" shows up regardless of the date of the posting...
Add Thank You Quote this message in a reply
Oct. 26, 2004, 08:30 PM
Post: #6
 
This should work Wink

Code:
[Patterns]
Name = "Un-Official Proxomitron Forum:  DateStamp Display [Key=^Ctrl] {Prox(Fox|Rocks)}"
Active = TRUE
URL = "(^$KEYCHK(^C))(www.|)kye-u.com/proxo/forums/"
Limit = 1024
Match = "<tr>\s<td class="row4" align="center">*<td class="row2" nowrap="nowrap">(???)\1$SET(matchmonth=\1) ([#1:31])\2$SET(matchday=\2) (????)\3$SET(matchyear=\3)*<br />*</a></td>"
"("
"(^$TST(matchmonth=$TST(month)))"
"|"
"(^$TST(matchday=($TST(yesterday)|$TST(today))))"
"|"
"(^$TST(matchyear=$TST(year)))"
")"
Visit this user's website
Add Thank You Quote this message in a reply
Oct. 26, 2004, 08:59 PM
Post: #7
 
Cool... tnx...

I probably won't evolve it into a toggle for a spell...
For me, the main thing was hiding the old posts, but I will evolve it eventually...
Add Thank You Quote this message in a reply
Oct. 26, 2004, 09:02 PM
Post: #8
 
I wrote one for ComputerCops:

Code:
[Patterns]
Name = "ComputerCops: Show Latest Posts [Key=^Ctrl] {Prox(Fox|Rocks)} [Kye-U]"
Active = TRUE
URL = "(^$KEYCHK(^C))(www.|)computercops.biz/modules.php\?name\=Forums*"
Limit = 2048
Match = "<tr>\s<td class\=\"row1\" align\=\"center\" valign\=\"middle\" height\=\"50\">*<span class\=\"gensmall\">(???) (???)\2$SET(matchmonth=\2) (??)\1$SET(matchday=\1), (????)\3$SET(matchyear=\3)*</tr>"
"("
"(^$TST(matchmonth=$TST(month)))"
"|"
"(^$TST(matchday=($TST(yesterday)|$TST(today))))"
"|"
"(^$TST(matchyear=$TST(year)))"
")"
Visit this user's website
Add Thank You Quote this message in a reply
Oct. 26, 2004, 10:23 PM
Post: #9
 
I'm still having some problems with my ComputerCops version - I think another content-killer is effecting my version (I axe a LOT on ComputerCops - the site is WAY too "busy" [IMO])...
Add Thank You Quote this message in a reply
Apr. 24, 2005, 12:37 AM
Post: #10
 
Hello.
I match it with "sidki config set" and want to use it, but will not there be a good method?
And I want to use you as Invision Power Board and phpBB.
Code:
[Patterns]
Name = "DateStamp {Prox(Fox|Rocks)}"
Active = TRUE
URL = "$TYPE(htm)($TST(keyword=*.s_dstmp*))"
Limit = 16
Match = "(^(^<ProxHdrTop>))$STOP()"
"($SET(monthnum=$DTM(M))"
"$SET(today=$DTM(D))"
"$SET(year=$DTM(Y))"
"$SET(yesterday=$GET(today)-1)$TST(yesterday=$LST(Count))$SET(yesterday=$GET(i))"
"($TST(monthnum=1)$SET(month=Jan)|"
"$TST(monthnum=2)$SET(month=Feb)|"
"$TST(monthnum=3)$SET(month=Mar)|"
"$TST(monthnum=4)$SET(month=Apr)|"
"$TST(monthnum=5)$SET(month=May)|"
"$TST(monthnum=6)$SET(month=Jun)|"
"$TST(monthnum=7)$SET(month=Jul)|"
"$TST(monthnum=8)$SET(month=Aug)|"
"$TST(monthnum=9)$SET(month=Sep)|"
"$TST(monthnum=10)$SET(month=Oct)|"
"$TST(monthnum=11)$SET(month=Nov)|"
"$TST(monthnum=12)$SET(month=Dec))"
    ")"

[Patterns]
Name = "Un-Official Proxomitron Forum:  DateStamp Display {Prox(Fox|Rocks)}"
Active = TRUE
URL = "$TYPE(htm)($TST(keyword=*.(s_dstmp|s_unprxf).*))"
Limit = 2536
Match = "(<tr)\7>\s(<td class="row[#1:4]" align="center">*<td class="row[#1:4]" nowrap="nowrap">(???)\1$SET(matchmonth=\1) ([#1:31])\2$SET(matchday=\2) (????)\3$SET(matchyear=\3)*<br />*</a>(<br />By: Guest|)</td>)\4"
"&("
"(^$TST(matchmonth=$TST(month)))"
"|"
"(^$TST(matchday=($TST(yesterday))))"
"|"
"(^$TST(matchyear=$TST(year)))"
")"
"&($SET(#=\4)|\#)"
"&("
"(^$TST(pBoard=*))$TYPE(htm)"
"$SET(dAll=$GET(dAll)"
"<span id="proxBoardI" class="Prox" style="display:$GET(displayI)">&#8593;"
"<a id="proxBoardI" class="Prox" href="javascript:PrxToggle('proxBoard','id','tr',1)""
" title="Toggle Display" target="_self">Board</a></span>"
")"
"|)"
"&((^$TST(hOrigUA=mozilla/4.[1-9](^*opera)*))$SET(6= id=proxBoard)|)"
"&$TST(($GET(pBoard)+1)=$LST(Count))$SET(pBoard=$GET(i))"
"&($TST(displayM=none)$SET(5=inline)|$SET(5=none))"
Replace = "$SET(eBottom=$GET(eBottom)<span id=proxBoard class=ProxBoard$GET(pBoard) style="display:\5;font-size:10px;font-weight:bold;">&#8593;"
"<a id=proxBoard href=javascript:PrxToggle('ProxBoard$GET(pBoard)','cl','tr',1)"
" title="Toggle Display" target=_self>$GET(pBoard)</a></span>)"
"\7 \6 class=ProxBoard$GET(pBoard) style=display:$GET(displayM)>\@"

thanks.
Quote this message in a reply
Apr. 24, 2005, 12:50 AM
Post: #11
 
I'm sorry.
($TST(keyword=*.s_dstmp*))
($TST(keyword=*.(s_dstmp| s_unprxf). *))
Please delete.
Quote this message in a reply
Apr. 24, 2005, 01:53 AM
Post: #12
 
I'm sorry many times.
"(^$TST(matchday=($TST(yesterday)| $TST(today)))) "
Please change it.
I'm tired. very thanks.
Quote this message in a reply
Apr. 24, 2005, 02:04 PM
Post: #13
 
VERY impressive!!! Thanks dude(|tte)...

Another change is that the two 'up arrows' need replaced: "& # 8 5 9 3 ;" (withOUT the spaces and with no quotes)...


Since originally posting this, I have changed the one filter:
Code:
Name = "DateStamp {Prox(Fox|Rocks)}"
Active = TRUE
URL = "$TYPE(htm)"
Limit = 1
Match = "$STOP()"
"$SET(monthnum=$DTM(M))"
"$SET(lastmonthnum=$DTM(M))"
"$SET(today=$DTM(D))"
"$SET(yesterday=$GET(today)-1)$TST(yesterday=$LST(Count))$SET(yesterday=$GET(i))"
    "$SET(oneday=$GET(today)+1)$TST(oneday=$LST(Count))$SET(oneday=$GET(i))"
    "$SET(twoday=$GET(oneday)+1)$TST(twoday=$LST(Count))$SET(twoday=$GET(i))"
    "$SET(threeday=$GET(twoday)+1)$TST(threeday=$LST(Count))$SET(threeday=$GET(i))"
    "$SET(fourday=$GET(threeday)+1)$TST(fourday=$LST(Count))$SET(fourday=$GET(i))"
"$SET(year=$DTM(Y))"
"($TST(monthnum=1)$SET(thismonth=Jan)|$TST(monthnum=2)$SET(thismonth=Feb)|$TST(monthnum=3)$SET(thismonth=Mar)|"
"$TST(monthnum=4)$SET(thismonth=Apr)|$TST(monthnum=5)$SET(thismonth=May)|$TST(monthnum=6)$SET(thismonth=Jun)|"
"$TST(monthnum=7)$SET(thismonth=Jul)|$TST(monthnum=8)$SET(thismonth=Aug)|$TST(monthnum=9)$SET(thismonth=Sep)|"
"$TST(monthnum=10)$SET(thismonth=Oct)|$TST(monthnum=11)$SET(thismonth=Nov)|$TST(monthnum=12)$SET(thismonth=Dec))"
"(|"
"$TST(today=1)"
"$SET(lastmonthnum=$GET(monthnum)-1)$TST(lastmonthnum=$LST(Count))$SET(lastmonthnum=$GET(i))"
"($TST(monthnum=(1|2|4|6|8|9|11))$SET(yesterday=31)|"
"$TST(monthnum=(5|7|10|12))$SET(yesterday=30)|"
"$TST(monthnum=3)$SET(yesterday=28))"
")"
"($TST(lastmonthnum=1)$SET(lastmonth=Jan)|$TST(lastmonthnum=2)$SET(lastmonth=Feb)|$TST(lastmonthnum=3)$SET(lastmonth=Mar)|"
"$TST(lastmonthnum=4)$SET(lastmonth=Apr)|$TST(lastmonthnum=5)$SET(lastmonth=May)|$TST(lastmonthnum=6)$SET(lastmonth=Jun)|"
"$TST(lastmonthnum=7)$SET(lastmonth=Jul)|$TST(lastmonthnum=8)$SET(lastmonth=Aug)|$TST(lastmonthnum=9)$SET(lastmonth=Sep)|"
"$TST(lastmonthnum=10)$SET(lastmonth=Oct)|$TST(lastmonthnum=11)$SET(lastmonth=Nov)|$TST(lastmonthnum=12)$SET(lastmonth=Dec))"
"PrxFail$TST()"


The change was so that "yesterday" is properly 'created' when "today" is the 1st of the month...

Therefore, 'matchmonth' must now become:
Code:
(^$TST(matchmonth=($TST(lastmonth)|$TST(thismonth))))

True, January 1st of 2006, I'll need to make another change, but I'll worry about that on January 1st...

And I honestly probably won't even mess with Leap Year adjustments for properly defining "yesterday" on March 1st...


ps - the "oneday", "twoday", "threeday", "fourday" is bacause one of my credit card on-line payments will not allow a payment to be made PRIOR to four days from the day the on-line payment is being made, so the "fourday" is used to AUTOMATICALLY fill in the payment-to-be-made date as four days from today - Proxo makes my life SOOO easy... Big Teeth
Add Thank You Quote this message in a reply
Apr. 24, 2005, 11:32 PM
Post: #14
 
Hello ProxRocks!
Ohhhh. Thank you! Very Cool!!!
I did'nt think of it to there.
Thank you for ProxRocks, sidki and all of you!
More various filters can seem to use it.
proxo is splendid. Hail
Quote this message in a reply
Post Reply 


Forum Jump: