WSN Knowledge Base https://scripts.webmastersite.net/wsnkb/manual en-us Offers The offers system, which you can enable at Admin -> Settings -> Switches -> Larticles -> Offers, allows article owners to set up special offers which https://scripts.webmastersite.net/wsnkb/manual/administrative-tasks/switches/offers-660.html Thu, 06 Sep 2018 15:36:33 GMT https://scripts.webmastersite.net/wsnkb/manual/administrative-tasks/switches/offers-660.html
Offers are treated as a field, so you can manage the input and display code via the field manager at Admin -> Articles -> Article Fields.

Submitters add and remove offers from the submit article or edit article page, and they're displayed to all on the article details page. Offers may be held for validation by an admin if you so choose in the usergroup permissions.

Template variables:

{OFFERID} - The database id number
{OFFERTITLE} - The title of the offer
{OFFERDESCRIPTION} - The description of the offer
{OFFEREXPIREDATE} - The date on which the offer expires, if applicable
{OFFERIMAGEATTACHTHUMBIMAGE} - Thumbnail of the offer's image (complete img tag)
{OFFERIMAGEATTACHTHUMBURL} - URL of thumbnail of the offer image
{OFFERVALIDATED} - True if approved, false if pending admin validation
{OFFERLINKDETAILSURL} - URL of article details page of article this offer is for
{OFFERLINKTITLE} - Title of the article this offer is for

{LINKNUMOFFERS} - The number of validated, non-expired offers a given article has at the moment

You can also make toplists of offers with the toplist generator.]]>
Open Hours At Admin Panel -> Settings -> Switches, you have an 'Open hours' option. https://scripts.webmastersite.net/wsnkb/manual/administrative-tasks/switches/open-hours-656.html Wed, 17 May 2017 23:10:48 GMT https://scripts.webmastersite.net/wsnkb/manual/administrative-tasks/switches/open-hours-656.html
Note that up to two sets of hours are supported for each day (this allows a place to have split hours with a break for lunch, like 8 AM - 12 PM and 1 PM - 5 PM). Using 3 or more sets for the same day may not sort correctly if entered non-chronologically, but very few businesses have 3 sets.

If you'd like to display the hours somewhere outside of the default location, you can use {LINKSHOWFIELD[hours]} or for a customized version you can copy and modify the custom display html from the Link Fields page into any other template where you're within the scope of a article.

In the open hours display, today's hours are automatically bolded. This styling is from the application of the css class todayhours to all sets of hours that are for today. You can re-style as desired by adding .todayhours { } to your stylesheet.

There are a few useful template variables related to the hours:
{LINKHASHOURS} - Tests if the article has any hours entered (for use in conditioanls).
{LINKISOPEN} - Tests if the business is currently open, for use in conditionals. Returns false if it's closed or has no hours entered.
{LINKCLOSINGSOON} - Tests if the business is currently open but is going to close within the next 60 minutes. For use in conditionals. Returns false if closed or if open for more than another hour. You can pass a parameter for a different number of minutes, like {LINKCLOSINGSOON[30]).
{LINKOPENSTATUS} - Displays "open", "closing soon" or "closed" (in English, so best used in conditionals)... or blank if there are no hours entered.
{LINKSHOWDAYHOURS[today]} - Displays the open hours (e.g. 8 AM - 5 PM) for the specified day parameter. The parameter can be 'today' or it can be a day of the week like Monday (which can be written out as Monday or as just Mon).

Note: these variables make the assumption that the viewer is in the same timezone as the business.

People can search by hours with either the simple or advanced search. For advanced searching, four radio options appear: "Any Time" (does not filter by hours), "Now" (filters to businesses currently open), "On __ at __" (filters to a particular time) and "On __ from __ until at least __" (filters to businesses open for the entirity of that length of time).

For any search form you may be using, whether it's simple or advanced search, you can include this simple checkbox to allow people to filter to businesses currently open: <input type="checkbox" name="openhoursquerytype" value="now">

Because the filtering by hours happens mostly on the php side rather than in the database query (which only filters by day open), you will notice that searches with large numbers of results have a different number of articles per page than normal. To account for the probability that the majority of the articles may be currently closed, WSN queries several times more articles than usual on the first page and then dynamically alters the number of articles per page for the subsequent pages to a value that seems appropriate to the results, in hopes of giving you something similar to the number of displayed results you want.]]>
EU Cookie Privacy Notice European Union law requires websites which use cookies to display a privacy notice. https://scripts.webmastersite.net/wsnkb/manual/administrative-tasks/switches/eu-cookie-privacy-notice-648.html Sat, 15 Oct 2016 07:17:37 GMT https://scripts.webmastersite.net/wsnkb/manual/administrative-tasks/switches/eu-cookie-privacy-notice-648.html
When this switch is enabled, a semi-transparent bar will display at the bottom of non-admin pages. By default it will show the text "This website uses cookies to enhance your experience. Read our <a href="index.php?action=privacy">privacy policy</a> for details." On a multilingual site, you can edit this language by going to Admin -> Customizations -> Languages and searching for general_cookienotice. On an English-only site, you can edit the language at Admin -> Themes -> Manage Templates -> Wrapper -> ctrl+f to find "This website uses cookies" which will be at the bottom of the template.

The privacy policy page which that text links to is the template Admin -> Themes -> Manage Templates -> "Privacy Policy". English-only users can edit the text in the templates, multilingual users can edit it at Admin -> Customizations -> Language -> search for "privacy_info". The default content should be sufficient for EU law.

The HTML (from the wrapper template) is
<div id="cookienotice" class="cookienotice">
{LANG_GENERAL_COOKIENOTICE} <a id="dismisscookienotice" class="dismisscookienotice">X</a>
</div>
so if you want to change the apperance you can use the css class .cookienotice.]]>
Image Rotation Options Sometimes you or your submitters may upload an image that was taken in portrait mode but shows in landscape mode or vice versa. https://scripts.webmastersite.net/wsnkb/manual/administrative-tasks/switches/image-rotation-options-647.html Sat, 15 Oct 2016 06:03:29 GMT https://scripts.webmastersite.net/wsnkb/manual/administrative-tasks/switches/image-rotation-options-647.html
At Admin -> Settngs -> Switches, in the attachments section, one of the options is "Image rotation options". If you activate this, small icons will appear below attachment thumbnails on the submit and edit pages. These icons will allow the submitter/editer to rotate the image clockwise or counterclockwise by 90 degrees. The rotation immediately displays in the thumbnail (WYSIWYG). They can repeat the rotation if desired. Changes to the live image which everybody else sees only take effect once the editer submits the page to save their changes, so if they abandon an edit with a rotation applied it won't have done any damage.

The clockwise and counterclockwise icons are bootstrap glyphicons for bootstrap-derived themes, and unicode characters for other themes. You can choose your own icons by saving rotateleft.png and rotateright.png to the templates/images_yourtheme directory.

Like other image manipulation options, this feature requires that you have either GD or ImageMagick on your server.]]>
Security Questions For extra security, you may want to allow members to set up a security question to protect their account. https://scripts.webmastersite.net/wsnkb/manual/administrative-tasks/switches/security-questions-636.html Tue, 16 Sep 2014 09:07:15 GMT https://scripts.webmastersite.net/wsnkb/manual/administrative-tasks/switches/security-questions-636.html
Having to answer a security question is, of course, annoying. For this reason, WSN asks the question no more than necessary. If the member is using an IP address they've previously used to access your site, they're trusted and not asked the question. If they login from a new IP location, they're questioned the first time.

When a user who has a security question set up logs in from an IP address they haven't previously used, their login and password reset will both become a two step process: first the regular part, then it asks the security question for confirmation before they're actually logged in / before the password reset email is sent. The question step uses the Admin -> Themes -> Manage Templates -> Member Templates -> "Security Question" template. Please note that the security question will not be asked when they login from a known good IP address.

If you originally installed a version older than 9.0.25 and customized the wrapper template, you must change the wrapper template to make sure <div class="warning" id="loginproblem"></div> is below the <form...> line instead of above. If you don't make this template update, the modal login will fail for people who have a security question.]]>