Post Reply 
Sites that use DISQUS
Feb. 26, 2013, 05:20 PM
Post: #9
RE: Sites that use DISQUS
(Feb. 26, 2013 02:19 PM)ProxRocks Wrote:  what does that "tricky bit" do?

After processing, a list contains Hashed Items, Non-Hashed Items, and Excluded Items: http://local.ptron/.pinfo/lists/Exceptions-U .
Excluded items begin with a ~. Excluded Items are checked after a match has been found. The Proxomitron quits looking for matches after a match is found.

Variables are set when $SET() is found. (^) never matches.

So

Code:
$SET(sAdKey=$GET(sAdKey)disqus.)(^)

creates sAdKey or adds "disqus." to sAdKey and then fails allowing the Proxomitron to continue looking for matches.

If a match is found before "$SET(sAdKey=$GET(sAdKey)disqus.)(^)" is found,
the Excluded Item

Code:
~$SET(sAdKey=$GET(sAdKey)disqus.)(^)

creates sAdKey or adds "disqus." to sAdKey and then fails allowing the Proxomitron to continue looking for Exclusions.

So the tricky bit is an attempt to always have "disqus" in sAdkey without having to add it to AdKeys-S.

HTH
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
Sites that use DISQUS - scoop - Feb. 24, 2013, 07:10 PM
RE: Sites that use DISQUS - Toppy - Feb. 24, 2013, 10:45 PM
RE: Sites that use DISQUS - JJoe - Feb. 25, 2013, 01:53 AM
RE: Sites that use DISQUS - ProxRocks - Feb. 25, 2013, 02:46 AM
RE: Sites that use DISQUS - scoop - Feb. 25, 2013, 10:24 PM
RE: Sites that use DISQUS - JJoe - Feb. 26, 2013, 04:37 AM
RE: Sites that use DISQUS - ProxRocks - Feb. 26, 2013, 12:23 AM
RE: Sites that use DISQUS - ProxRocks - Feb. 26, 2013, 02:19 PM
RE: Sites that use DISQUS - JJoe - Feb. 26, 2013 05:20 PM
RE: Sites that use DISQUS - Belarathon - May. 28, 2013, 12:38 AM
RE: Sites that use DISQUS - JJoe - May. 28, 2013, 08:19 PM
RE: Sites that use DISQUS - Belarathon - May. 28, 2013, 09:06 PM

Forum Jump: