Not This Section
<txp:if_section name="notthissection">
<!-- do nothing -->
<txp:else />
blah blah
</txp:if_section>
2831 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
<txp:if_custom_field name=“eng”> <a href=”<txp:custom_field name=“eng” />”>this page in english</a> </txp:if_custom_field>
<txp:if_custom_field name=“ukr”> <a href=”<txp:custom_field name=“ukr” />”>this page in ukrainian</a> </txp:if_custom_field>
<ul><txp:asy_wondertag><txp:article_custom limit="9999" form="listarticles" section="<txp:section />" category="<txp:category1 />" /></txp:asy_wondertag></ul>
<txp:php> if(gps('q') == '') echo 'Hey, remember to search something!'; </txp:php>
<a href="http://pookmark.jp/post?url=<txp:permlink />&title=<txp:title />" title="">POOKMARK THIS</a>
<script src="http://embed.technorati.com/linkcount" type="text/javascript"></script> <a href="http://technorati.com/search/<txp:permlink />" rel="linkcount">View blog reactions</a>
post to <a href="http://del.icio.us/post?url=<txp:permlink />&title=<txp:title />">del.icio.us</a>
post to <a href="http://www.digg.com/submit?phase=2&url=<txp:permlink />">digg</a>
post to <a href="http://ma.gnolia.com/bookmarklet/add?url=<txp:permlink />&title=<txp:title />">ma.gnolia</a>
else { $Body = ''; // If there's no excerpt, use body as content instead of body as summary if (!trim($Excerpt)) $Body = fixup_for_feed($thisarticle['body'], permlinkurl($a)); }
// hack to get pictures to syndicate if ($a['Section'] == "photo") { $img_url = hu."images/".$a['Image'].'.jpg'; $Body = doSpecial('<a href="'.permlinkurl($a).'"><img src="'.$img_url.'" alt="the latest and greatest" /></a>'); } // /hack
// hack to get pictures to syndicate if ($a['Section'] == "photo") { $img_url = hu."images/".$a['Image'].'.jpg'; $Body = doSpecial('<a href="'.permlinkurl($a).'"><img src="'.$img_url.'" alt="the latest and greatest" /></a>'); } // /hack
function glx_if_not_category_list($atts, $thing) { global $pretext, $is_article_list; return (empty($pretext["c"]) && $is_article_list == true) ? parse($thing) : ""; }
<txp:glx_if_section_frontpage> <h2>Archives</h2> <dl class="archivelist"> <txp:article section="article" form="article_archive" /> </dl> </txp:glx_if_section_frontpage> <txp:if_individual_article> <txp:article /> </txp:if_individual_article>
<txp:if_different> <dt><txp:posted format="%B %Y" /></dt> </txp:if_different> <dd><txp:permlink><txp:title /></txp:permlink> <br /><txp:excerpt /></dd>
<txp:glx_if_category_list> <h2>Articles in <txp:upm_category_title /></h2> <p><a href="/article/">View all articles</a></p> <dl class="archivelist"> <txp:article section="article" form="article_archive" /> </dl> </txp:glx_if_category_list> <txp:glx_if_not_category_list> <txp:article limit="2" form="article_newest" /> </txp:glx_if_not_category_list>
server.error-handler-404 = "/index.php"
svn switch --relocate http://textpattern.com/svn/repos/current/textpattern http://svn.textpattern.com/current/textpattern
svn info | grep URL
URL: http://svn.textpattern.com/current/textpattern
<fieldset> <legend>Buy this product:</legend> <p>Our fine <txp:rei_show_custom /> is available for the low, low price of $<txp:rei_show_custom customid="2" />.</p> <p><label for="os0">What sort of <txp:rei_show_custom /> would you like?</label></p> <form action="https://www.paypal.com" method="post"> <p><input type="hidden" name="on0" value="variable" /><select name="os0" id="os0"> <option selected="selected" value="type1">Type 1</option> <option value="type2">Type 2</option> <option value="type2">Type 3</option> </select> </p> <p> <input type="hidden" name="cmd" value="_cart" /> <input type="hidden" name="business" value="yourbiz@yourdomain" /> <input type="hidden" name="item_name" value="<txp:rei_show_custom />" /> <input type="hidden" name="amount" value="<txp:rei_show_custom customid="2" />" /> <input type="image" id="add_to_cart" src="/path/to/your_cart_image" name="submit" alt="Add this item to your cart" /> <input type="hidden" name="add" value="1" /> </p> </form> <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <p> <input type="hidden" name="cmd" value="_cart" /> <input type="hidden" name="business" value="yourbiz@yourdomain" /> <input type="image" id="view_cart" src="/path/to/your_view_cart_image.png" name="submit" alt="View all items currently in your cart" /> <input type="hidden" name="display" value="1" /> </p> </form> </fieldset>
URL='http://www.mysite.com/textpattern/' LOGIN='simplename' PASS='yourpassword' COOKIE=$(curl -s -D - -d "p_userid=$LOGIN&p_password=$PASS" \ $URL | head -n10 | sed -n 's/^Set\-Cookie\: //p') if [ -z $COOKIE ] then echo "Can't log in." exit 1 else echo "Cookie: "$COOKIE fi for file in $(ls -1|egrep '(gif)|(jpe?g)$') ; do echo "Sending "$file curl -s -H "Cookie: $COOKIE" -F "thefile=@$file" \ -F "event=image" -F "step=image_insert" $URL > /dev/null done
svn co http://svn.textpattern.com/current/ .
nano textpattern/config.php
svn update