Helpful Hints

Form of registration, authorization and password recovery.

Registration Form:
<form action="#" method="POST">
     <input type="text" name="name" placeholder="Name">
     <input type="email" name="email" placeholder="Email">
     <input type="password" name="password" placeholder="Password">
     <input type="password" name="password_repeat" placeholder="Repeat password">
     <input type="hidden" name="action" value="registration">
     <input type="submit" class="btn" data-s="Auth" value="Sign up">
</form>

Authorization form:

<form action="#" method="POST">
     <input type="email" name="email" placeholder="Email">
     <input type="password" name="password" placeholder="Password">
     <input type="hidden" name="action" value="auth">
     <input type="submit" class="btn" data-s="Auth" value="Input">
</form>

Password recovery form:

<form action="#" method="POST">
     <input type="email" name="email" placeholder="Email">
     <input type="hidden" name="action" value="restore_password_start">
     <input type="submit" class="btn" data-s="Auth" value="Restore">
</form>

The most important thing in forms is respecting the attributes name, the presence of a hidden field name="action" and buttons with  data-s="Auth".

How to sort news? What tag to use?

The system does not have a special tag for displaying the sort element.

Sorting works by GET parameter sort.

For example: ?sort=rating-desc or ?sort=rating-asc.

The parameter has a separator in the form of a tere, which determines which value will be sorting and in which direction.

rating-desc - sorting by rating in descending order.
rating-asc - sorting by rating in ascending order.
The following values are currently available:

id - by news ID.
title - by news title.
date - by publication date.
modify - by even changes .
rating - by rating.

Question mark before words

If you see a question mark in front of words on the site, it means that you need to add this word to the language pack for the WEB part, where the key is the word itself that comes after the question mark, and the value is its translation.

Comment is not added in AJAX mode

In order for new comments to appear immediately after sending, you must have an element with the data-comments attribute. This will add a comment inside the element.
Loading...