Relational Fields: Image Gallery Thumbnail
1 2 {related_entries id="fieldid"} 3 <img src="{thumb_url}" width="{thumb_width}" height="{thumb_height}" alt="{title}" class="thumb" /> 4 {/related_entries}
12730 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
1 2 {related_entries id="fieldid"} 3 <img src="{thumb_url}" width="{thumb_width}" height="{thumb_height}" alt="{title}" class="thumb" /> 4 {/related_entries}
1 2 <select name="field_id_13">{exp:query sql="SELECT field_list_items FROM exp_weblog_fields WHERE field_id = '13' "} 3 <? 4 $items ="{field_list_items}"; 5 $items = explode("\n", $items); 6 $howmany = count($items); 7 $i = 0; do { 8 $item_id = $items[$i]; 9 ?> 10 11 <option value="<?=$item_id?>"><?=$item_id?></option> 12 <? 13 $i++; } while ($i < $howmany); ?> 14 {/exp:query}</select>
1 2 <link rel="stylesheet" type="text/css" media="all" href="{stylesheet=static/style}" /> 3 4 <link media="screen" type="text/css" href="{stylesheet=static/style}" />
1 2 $randomnumber= rand(1,10);
1 <script type="text/javascript"> 2 function clickclear(thisfield, defaulttext) { 3 if (thisfield.value == defaulttext) { 4 thisfield.value = ""; 5 } 6 } 7 function clickrecall(thisfield, defaulttext) { 8 if (thisfield.value == "") { 9 thisfield.value = defaulttext; 10 } 11 } 12 </script>
1 <input type="text" name="myfield" onclick="clickclear(this, 'default text')" onblur="clickrecall(this,'default text')" />
1 {exp:snippets template="static/index"} 2 {page_title}Site: {title}{/page_title} 3 {page_section}journal{/page_section} 4 {/exp:snippets}
1 %page_title% 2 %page_section% 3 <? 4 $fof_title="%nl_title%"; 5 $fof_section="%nl_section%"; 6 ?>
1 2 update tablename set field = replace(field,'search_for_this','replace_with_this');
1 2 © Copyright 2004 - <?php echo date("Y") ?>
1 2 <?php 3 $nextmonth = mktime(0, 0, 0, date("m")+1, 1, date("Y")); 4 echo date("F", $nextmonth); 5 ?>
1 2 {exp:stats weblog="weblog1"}{total_entries}{/exp:stats}