| 1 |
<p> |
| 2 |
{Display the closest matching pages by using the shortcode [abj404_solution_page_suggestions].} |
| 3 |
<BR/><BR/> |
| 4 |
{This shortcode can be used on the 404 page and will display a list of suggested pages. This is for when a user requests a page that doesn't exist and they are not automatically redirected to a matching page.} |
| 5 |
<BR/> |
| 6 |
<BR/> |
| 7 |
{Note: The "scores" that appear in the format of "(75.7576)" after the page links are only displayed for admin users.} |
| 8 |
<HR/> |
| 9 |
<p> |
| 10 |
<label for="update_suggest_url">{Update the URL bar}:</label> |
| 11 |
<input type="checkbox" name="update_suggest_url" id="update_suggest_url" value="1" {SELECTED_SUGGEST_URL}> |
| 12 |
<BR/> |
| 13 |
{When checked the URL will be changed from the custom 404 page URL to the URL originally requested (after the page headers load).} |
| 14 |
{This will not change the URL if the destination 404 page is set to (Default 404 Page) or Home Page.} |
| 15 |
</p> |
| 16 |
<p> |
| 17 |
<label for="suggest_cats">{Allow category suggestions}:</label> |
| 18 |
<input type="checkbox" name="suggest_cats" id="suggest_cats" value="1" {SELECTED_SUGGEST_CATS}> |
| 19 |
</p> |
| 20 |
<p> |
| 21 |
<label for="suggest_tags">{Allow tag suggestions}:</label> |
| 22 |
<input type="checkbox" name="suggest_tags" id="suggest_tags" value="1" {SELECTED_SUGGEST_TAGS}> |
| 23 |
</p> |
| 24 |
<p> |
| 25 |
<label for="suggest_minscore_enabled">{Require minimum match quality}:</label> |
| 26 |
<input type="checkbox" name="suggest_minscore_enabled" id="suggest_minscore_enabled" value="1" {SELECTED_SUGGEST_MINSCORE_ENABLED}> |
| 27 |
<BR/> |
| 28 |
{Only show suggestions that closely match the requested URL. This filters out weak matches that may confuse visitors.} |
| 29 |
</p> |
| 30 |
<p> |
| 31 |
<label for="suggest_max">{Maximum number of suggestions to display}:</label> |
| 32 |
<input type="text" name="suggest_max" id="suggest_max" value="{SUGGEST_MAX_SUGGESTIONS}" style="width: 50px;"> |
| 33 |
<BR/> {Even if more pages could be suggested, show at most this many (default: 5)} |
| 34 |
</p> |
| 35 |
<p> |
| 36 |
<label for="suggest_title">{Page suggestions title}:</label> |
| 37 |
<input type="text" name="suggest_title" id="suggest_title" value="{SUGGEST_USER_TITLE}" style="width: 400px; background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABHklEQVQ4EaVTO26DQBD1ohQWaS2lg9JybZ+AK7hNwx2oIoVf4UPQ0Lj1FdKktevIpel8AKNUkDcWMxpgSaIEaTVv3sx7uztiTdu2s/98DywOw3Dued4Who/M2aIx5lZV1aEsy0+qiwHELyi+Ytl0PQ69SxAxkWIA4RMRTdNsKE59juMcuZd6xIAFeZ6fGCdJ8kY4y7KAuTRNGd7jyEBXsdOPE3a0QGPsniOnnYMO67LgSQN9T41F2QGrQRRFCwyzoIF2qyBuKKbcOgPXdVeY9rMWgNsjf9ccYesJhk3f5dYT1HX9gR0LLQR30TnjkUEcx2uIuS4RnI+aj6sJR0AM8AaumPaM/rRehyWhXqbFAA9kh3/8/NvHxAYGAsZ/il8IalkCLBfNVAAAAABJRU5ErkJggg=="); background-repeat: no-repeat; background-attachment: scroll; background-size: 16px 18px; background-position: 98% 50%;"> |
| 38 |
<BR/> {This text will appear before the list of suggestions (default: <h3>Here are some other great pages</h3>)} |
| 39 |
</p> |
| 40 |
<p> |
| 41 |
<label for="suggest_before">{Display Before/After page suggestions}:</label> |
| 42 |
<input type="text" name="suggest_before" id="suggest_before" value="{SUGGEST_USER_BEFORE}" style="width: 150px;"> / |
| 43 |
<input type="text" name="suggest_after" value="{SUGGEST_USER_AFTER}" style="width: 100px;"> |
| 44 |
<BR/> {This creates the list. For example, use <ol style="list-style-type: none;"> to hide the numbers in the list. (defaults: <ol> / </ol>)} |
| 45 |
</p> |
| 46 |
<p> |
| 47 |
<label for="suggest_entrybefore">{Display Before/After each suggested page}:</label> |
| 48 |
<input type="text" name="suggest_entrybefore" id="suggest_entrybefore" value="{SUGGEST_USER_ENTRY_BEFORE}" style="width: 100px;"> / |
| 49 |
<input type="text" name="suggest_entryafter" value="{SUGGEST_USER_ENTRY_AFTER}" style="width: 100px;"> |
| 50 |
<BR/> {This surrounds each item in the list. (defaults: <li> / </li>)} |
| 51 |
</p> |
| 52 |
<p> |
| 53 |
<label for="suggest_noresults">{Display if no suggestion results}:</label> |
| 54 |
<input type="text" name="suggest_noresults" id="suggest_noresults" value="{SUGGEST_USER_NO_RESULTS}" style="width: 400px;"> |
| 55 |
<BR/> {If no suggested pages are found, then this text will be displayed. (default: <p>No suggestions. :/ </p>)} |
| 56 |
</p> |
| 57 |
|