User selects number of posts to view
January 7th, 2015Made use of Free HTML widget and placed at top of #sidebar. Also added a link to view all posts. The maximum number of posts per page displayed by the later is set in [/skins/_postidx.disp.php]
Line 28: 'limit' => 57,
Code
<form id="nOp" action="https://calstock.org.uk/elf.php"> | |
<div> | |
<label>1 to 19 </label> | |
<input type="hidden" id="disp" name="disp" value="posts" /> | |
<input type="number" style="width:3em" id="posts" name="posts" type="text" size="1" value="" min="1" max="19" /> | |
<input type="submit" value="Go" /> | |
</div> | |
</form><br /> | |
<a href="https://calstock.org.uk/elf.php?disp=postidx">View Index of All Plots</a> |
In [/inc/_core/_.template.funcsphp] changed tile to Plot Index
Line 389: 'postidx_text' => T_('Plot Index'),
Printer Friendly Layout
January 3rd, 20151. make new skin [Print] with
- index.main.php : The index page is simplified to show only the post and code from _item_block.inc.php has been edited to remove unwanted calls and inserted rather than calling via php
- _skin.class.php : just modified to be recognised
- style.css and print.css: Still being worked on to get better formatting
2. Insert in /skin/myskin/single.main.php [Print] link with this code.
echo'<a href="http://' .$_SERVER['HTTP_HOST'] .$_SERVER['REQUEST_URI'] . '?tempskin=print" target="_blank"> <img class="print_icon" src="../../rsc/icons/print_icon.png" alt="print" title="print" /> Printer Friendly Layout </a> '
index.main needs two links to a stylesheet. (they could be the same file)
1. media="screen"
2. media="print"
For updates see http://forums.b2evolution.net/printer-friendly-layout







