Post Reply 
how to setup a comment block delete with sidki's config
May. 26, 2011, 02:28 PM
Post: #1
how to setup a comment block delete with sidki's config
using latest from sidki's config

what would be the simplest way to setup a comment block to remove all code

<!-- START HEADER -->
...get rid of all of this...
<!-- END HEADER -->

already tried exceptions-u.ptxt with the url address and
$SET(sComment=§<START HEADER§>/END HEADER)

that did not work
Add Thank You Quote this message in a reply
May. 27, 2011, 06:24 PM
Post: #2
RE: how to setup a comment block delete with sidki's config
Quote:<!-- END HEADER -->

does not contain a "/"

Try

Quote:$SET(sComment=§<START HEADER§>END HEADER)

HTH
Add Thank You Quote this message in a reply
May. 28, 2011, 10:53 AM
Post: #3
RE: how to setup a comment block delete with sidki's config
>> $SET(sComment=§<START HEADER§>END HEADER)

did not work, address is http://www.ritholtz.com/blog/
Add Thank You Quote this message in a reply
May. 28, 2011, 02:14 PM
Post: #4
RE: how to setup a comment block delete with sidki's config
Code:
<div id="header"><!-- START HEADER -->

        <h1 id="logo">
          <a href="http://www.ritholtz.com/blog">The Big Picture - Macro Perspective
on the Capital Markets, Economy, Technology, and Digital Media</a>
        </h1>

        <ul id="main_navigation">
          <li ><a class="btn1" href="/blog/category/thinktank/">think tank</a></li>
          <li ><a class="btn2" href="/blog/category/video/">video</a></li>
          <li ><a class="btn3" href="/blog/category/books/">book club</a></li>
          <li ><a class="btn4" href="/blog/category/weekend/">weekend</a></li>
        </ul>

        <!-- SEARCH FORM -->
        <div id="search">
          <form action="/blog/?s=Search">
              <input type="hidden" name="domains" value="http://www.ritholtz.com/" />
              <input type="hidden" name="sitesearch" value="http://www.ritholtz.com/" />
              <input type="hidden" name="cx" value="015905226837203657063:x1cwdcykvvw" />
              <input type="hidden" name="ie" value="UTF-8" />
              <input type="hidden" name="oe" value="UTF-8" />
              <input type="hidden" name="cof" value="FORID:11" />
              <input type="hidden" name="s" value="Search" />
              <div class="text_field_container">
                <input id="s" type="text" class="styled_text_field replace_text" value="Search" name="q" />
              </div>

              <input type="image" name="sa" src="http://www.ritholtz.com/blog/wp-content/themes/thebigpicture/images/forms/btn_go.gif" alt="Search" />
          </form>
        </div>
        <!-- END SEARCH FORM -->

        <!-- START HEADER IMAGE, NEWSLETTER SIGNUP -->
        <div class="header_image ">

        </div>
        <!-- END HEADER IMAGE, NEWSLETTER SIGNUP -->

        <!-- START SUBNAVIGATON, RSS FEED -->
        <div id="sub_navigation">
          <div class="rss_feed">
            <a type="application/rss+xml" rel="alternate" href="http://feeds.feedburner.com/TheBigPicture" class="feed_icon">
              <img alt="subscribe via RSS" src="http://www.feedburner.com/fb/images/pub/feed-icon16x16.png"/>
            </a>
            <a href="http://feeds.feedburner.com/TheBigPicture" class="feedburner">
              <img width="88" height="26" alt="feedburner stats" src="http://feeds.feedburner.com/~fc/TheBigPicture?bg=FFFFFF&amp;fg=000000&amp;anim=0"/>
            </a>
          </div>
          <ul>
            <li id="about" ><a href="/blog/about/">About</a></li>
            <li id="contact" ><a href="/blog/contact/">Contact</a></li>
            <li id="managed_assets"  ><a href="/blog/managed-assets/">Managed Assets
</a></li>
            <li id="speaking" ><a href="/blog/conferences-speaking-engagements/">Speaking
</a></li>
            <li id="disclosure" ><a href="/blog/disclosures/">Disclosures</a></li>
            <li>
              <!-- SUBSCRIBE FORM -->
<form action="http://www.feedburner.com/fb/a/emailverify" method="post" target="popupwindow" onsubmit="window.open('http://www.feedburner.com/fb/a/emailverifySubmit?feedId=40016', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true">
  <div id="subscribe_textbox" class="email_subscribe_container">
    <input type="text" class="text replace_text" name="email" value="Enter email address" />
    <input type="image" class="submit" src="http://www.ritholtz.com/blog/wp-content/themes/thebigpicture/images/forms/btn_subscribe.gif" alt="Subscribe" />
  </div>

  <input type="hidden" name="url" value="http://feeds.feedburner.com/~e?ffid=40016"/>
  <input type="hidden" name="title" value="The Big Picture"/>
  <input type="hidden" value="en_US" name="loc"/>

</form>
<!-- END SUBSCRIBE FORM -->            </li>
          </ul>
        </div>
        <!-- END SUBNAVIGATON, RSS FEED -->

    </div><!-- END HEADER -->

Code:
www.ritholtz.com/blog/        $SET(sComment=§<START HEADER§>END HEADER)

matches from "<!-- START HEADER -->" to the first "<!-- END HEADER" which is "<!-- END HEADER IMAGE, NEWSLETTER SIGNUP -->".
I don't see a way to specify matching to only <!-- END HEADER -->.

Code:
www.ritholtz.com/blog/        $SET(sComment=§<START HEADER§>END SUBNAVIGATON, RSS FEED -)

matches from "<!-- START HEADER -->" to "<!-- END SUBNAVIGATON, RSS FEED -" and continues to the next "-->".
In other words, "<!-- START HEADER -->" to "<!-- END HEADER -->".

Code:
www.ritholtz.com/blog/  $SET(sAdKey=$GET(sAdKey)header.)

The "Manage: Specific Containers on sel. Sites" filter removes the div that contains the header.

HTH
Add Thank You Quote this message in a reply
May. 28, 2011, 04:06 PM
Post: #5
RE: how to setup a comment block delete with sidki's config
(May. 28, 2011 02:14 PM)JJoe Wrote:  
Code:
www.ritholtz.com/blog/        $SET(sComment=§<START HEADER§>END SUBNAVIGATON, RSS FEED -)

matches from "<!-- START HEADER -->" to "<!-- END SUBNAVIGATON, RSS FEED -" and continues to the next "-->".
In other words, "<!-- START HEADER -->" to "<!-- END HEADER -->".

Brilliant! Thumbs Up
Add Thank You Quote this message in a reply
May. 30, 2011, 11:11 AM
Post: #6
RE: how to setup a comment block delete with sidki's config
> The "Manage: Specific Containers on sel. Sites" filter removes the div that contains the header.

it was http://www.ritholtz.com/blog/ $SET(sAdKey=$GET(sAdKey)header.) in adkeys-s.ptxt that took care of it

thanks, took a little while to figure out where to place the filter
Add Thank You Quote this message in a reply
Jun. 12, 2011, 12:17 AM
Post: #7
RE: how to setup a comment block delete with sidki's config
(May. 30, 2011 11:11 AM)susa Wrote:  thanks, took a little while to figure out where to place the filter

Sorry about that. I put them in Exceptions-U and either should have worked...
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump: