-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhelp.lng
More file actions
executable file
·186 lines (178 loc) · 17.9 KB
/
Copy pathhelp.lng
File metadata and controls
executable file
·186 lines (178 loc) · 17.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<?php
$help_sections['title']['templates'] ="Templates";
$help_sections['body']['templates'] = <<<HTML
Templates are used to change the view of news. You can change various parts of the template that are used to display different parts of the news. For example, "Article Annotation" is used to change the look of active news, "Full Article" is used to change the look of the full article, "Comments" is used to change the look of comments, etc.<br><br>
You can use HTML to change the various structures when you edit the part of a template. You need to add some special symbols in your templates to define the place for a news title, author’s name, date, etc. Each part of the pattern corresponds to a specific designation.<br>
Values of the variables can be viewed on the template edit page. Click on the name of the template part to access this page. For example: <b>{title}</b> is the title of the article, <b>{author}</b> is the article’s author, etc.<br><br>
You can use several different templates.
HTML;
$help_sections['title']['xfields'] ="Extra Fields";
$help_sections['body']['xfields'] = <<<HTML
Extra fields can be enabled via <b>Settings</b> > <b>Extra Fields</b>. This feature is useful, for example, when publishing a reference to the original source in the article. <br>
Add a new field by clicking on the "Add Field". On the next page you must enter a unique name for the field, description of the field, and the content of the field by default. You also need to choose whether you want to use optional fields. If you will not use a field like that, you can just leave it blank when you add/edit the article. The module will not be included in this case.<br><br>
If you want to use this field on the news page, you need to add a variable <b>[xfvalue_X]</b> to the template, where <b>X</b> - is a value of the field (the name that you have entered when you added a new field). You can also use <b>[xfgiven_X]...[/xfgiven_X]</b> which displays the text specified between them if the additional field has been set. Also you can use <b>[xfnotgiven_X]...[/xfnotgiven_X]</b> which displays the text specified between them if the additional field has not been set.<br><br>
Example:
<div class="code">
<b>1)</b>- Field name: stit<br>
- Description: Information Source<br>
- Default Value: Me<br>
- Optional: yes<br>
<b>2)</b>- Field name: source<br>
- Description: Link to the Information Source <br>
- Default Value: http://server.com/<br>
- Optional: yes<br><br>
[xfgiven_source]Source - <a href=[xfvalue_source] target=_blank>[xfvalue_stit]</a>.[/xfgiven_source]<br>
[xfnotgiven_source]Source Not Specified[/xfnotgiven_source]</div>
If this field has been set during the publication, then the following HTML-code will be shown as a result:
<div class="code">Source - <a href=http://server.com/ target=_blank>Me</a>.</div>
If this field has not been set during the publication, then you’ll see this:
<div class="code"> Source Not Specified </div>
Remember that only Latin characters and numbers can be used for the field name of the field.
HTML;
$help_sections['title']['xprofile'] ="Extra Fields in users profiles";
$help_sections['body']['xprofile'] = <<<HTML
This function is used to add new fields to the user profile in addition to existing ones.<br><br>
Add a new field by clicking on the "Add Field". On the next page you must enter a unique name for the field and a field description. You also need to choose whether you want to allow the user to add additional information during the registration, whether the field is purely personal, as well as whether the user can further edit the contents of this field.<br><br>
Additional fields are available when viewing comments and user profile. You need to add [xfvalue_X] to the templates, where X – is a value of the field (the name that you have entered when you added a new field). You can also use [xfgiven_X]...[/xfgiven_X].<br><br>
Example:
<div class="code">
- Field name: city<br>
- Description: City<br>
- Filed Type: One Srting<br>
- Add to the registration page: yes<br>
- Field can be changed by the user: yes<br>
- Make this field personal: no<br><br>
in comments.tpl and userinfo.tpl you need to add<br>
[xfgiven_city] City: [xfvalue_city] [/xfgiven_city]</div>
If user adds any city in user profile, for example "Moscow", then the following HTML-code will appear as the result:
<div class="code">City: Moscow</div>
Remember that only Latin characters and numbers can be used for the title of the field.
HTML;
$help_sections['title']['banners'] ="Advertising Management";
$help_sections['body']['banners'] = <<<HTML
This module is designed to place and manage your advertising materials on this site quick and easy. You only need to add the tag of the banner into the template to place your banner on the website. After that you will be able to change or edit the banner code in Administration Panel, without touching templates.<br /><br />
After you add your banner, you can place it’s tag into <b>main.tpl</b> or <b>fullstory.tpl</b> templates. If you want to add the banner between the articles’ annotations, then you don’t need to add this tag. It will be placed there automatically.
<br />Example:
<div class="code">
- Title: header<br>
- Description: Top Banner<br>
- Enable banner display: Yes<br>
- Show only on the Homepage: No<br>
- Fix location: No<br>
- Place between the short articles: No<br><br>
After than you can add your banner’s tag <b>{banner_header}</b> into <b>main.tpl</b> or <b>fullstory.tpl</b>. <br />
</div>
You can use HTML and JavaScript when you add a banner code.
HTML;
$help_sections['title']['date'] ="Local time and date format";
$help_sections['body']['date'] = <<<HTML
The following symbols can be recognized in the format string:
<ul>
<li><b>a</b> - "am" or "pm"</li>
<li><b>A</b> - "AM" or "PM"</li>
<li><b>B</b> - Swatch Internet time </li>
<li><b>d</b> - day of the month, 2 digits with the leading zero if necessary; from "01" to "31"</li>
<li><b>D</b> - day of the week, alphabetic, 3 letters; for example "Fri"</li>
<li><b>F</b> - month, alphabetic, long; for example "January"</li>
<li><b>g</b> - hour, 12-hour format without leading zeros; from "1" to "12"</li>
<li><b>G</b> - hour, 24-hour format without leading zeros; from "1" to "23"</li>
<li><b>h</b> - hour, 12-hour format; from "01" to "12" </li>
<li><b>H</b> - hour, 24-hour format; from "00" to "23" </li>
<li><b>i</b> - minutes; from "00" to "59"</li>
<li><b>I</b> (uppercase 'i') - "1", if Daylight Savings Time is used; otherwise - "0".</li>
<li><b>j</b> - the day of the month without leading zeros; from "1" to "31" </li>
<li><b>l</b> (lowercase 'L') - day of the week, alphabetic, long; for example "Friday" </li>
<li><b>L</b> - boolean, indicating whether a leap year or not; "0" or "1"</li>
<li><b>m</b> - month; from "01" to "12"</li>
<li><b>M</b> - month, alphabetic, 3 letters; for example "Jan" </li>
<li><b>n</b> - month without leading zeros; from "1" to "12" </li>
<li><b>O</b> - Difference from Greenwich Mean Time, in hours; for example, "+0200" </li>
<li><b>r</b> - RFC 822 date format; for example "Thu, 21 Dec 2000 16:01:07 +0200" (introduced in PHP 4.0.4) </li>
<li><b>s</b> - seconds; from "00" to "59"</li>
<li><b>S</b> - English suffix for the day of the month, 2 characters; "st", "nd", "rd" or "th"</li>
<li><b>t</b> - the number of days in a given month; from "28" to "31" </li>
<li><b>T</b> - setting Time Zone on this computer; i.e. "EST" or "MDT" </li>
<li><b>U</b> - seconds since Unix Epoch (since January 1, 1970 00:00:00 GMT) </li>
<li><b>w</b> - day of the week, numeric, from "0" (Sunday) to "6" (Saturday) </li>
<li><b>W</b> - ISO-8601 week number of year, weeks start with Monday
(introduced in PHP 4.1.0) </li>
<li><b>Y</b> - year, 4 digits; for example, "1999"</li>
<li><b>y</b> - year, 2 figures; for example, "99" </li>
<li><b>z</b> - day of the year; from "0" to "365"</li>
<li><b>Z</b> - Time Zone offset, in seconds (from "-43200" to "43200"). </li>
Time Zone offset is always negative for zones to the west from UTC, and is always positive to the east from UTC.</li></ul>
HTML;
$help_sections['title']['social'] ="Configure authorization";
$help_sections['body']['social'] = <<<HTML
<div class="bg-primary-700" style="padding:10px;">Configure authorization using Vkontakte</div>
The first thing you need is to create a new application for <a href="http://vk.com/editapp?act=create" target="_blank">Vkontakte</a> network.<br><br>
In the opened form you should enter the name of the application. Select "Веб-сайт", and enter your website’s address: http://yoursite.com/index.php?do=auth-social&provider=vk. Replace yoursite.com with your basic domain.
<br /><br /><div style="text-align:center;"><img src="engine/skins/images/vk1.jpg" /></div>
<br />After you click "Подключить сайт", you must enter a verification code from the SMS that will come in the short term. If the code will be verified, the following form with the application settings should be shown:
<br /><br /><div style="text-align:center;"><img src="engine/skins/images/vk2.jpg" /></div>
<br />You will need the data such as "ID приложения" and "Защищённый ключ" from this form, which you must enter in the Administration Panel of the script, in the Social Network Settings. These fields will be unique for your site, they cannot be copied from the screenshot above.
<br /><br />After that place the following code into <b>login.tpl</b>:
<div class="code">[vk]<a href="{vk_url}" target="_blank">Log in using Vkontakte</a>[/vk]</div>
Where tags [vk] … [/vk] display the text enclosed between them if the authorization using Vkontakte network is enabled. Tag {vk_url} displays the URL link to the authorization in the social network.
<br><br>
<div class="bg-primary-700" style="padding:10px;">Configure authorization using Odnoklassniki</div>
You need to fill <a href="http://www.odnoklassniki.ru/devaccess" target="_blank">the form and get the developer account</a> to register the website where the authorization using Odnoklassniki network will be performed. After that, open <a href="http://www.odnoklassniki.ru/games" target="_blank">"Игры"</a> section and find a link on the right side of the menu<a href="http://www.odnoklassniki.ru/dk?st.cmd=appsInfoMyDevList&st._aid=Apps_Info_MyDev" target="_blank">"Мои загруженные"</a>. Click "добавить приложение" and fill in the form:<br><br>
<br /><br /><div style="text-align:center;"><img src="engine/skins/images/odnoklassniki1.jpg" /></div>
<br />Specify “Веб” application type there, and check "External". In "Ссылка на приложение" and "Список разрешённых redirect_uri" specify: http://yoursite.com/index.php?do=auth-social&provider=od , and check "Разрешить клиентскую OAuth авторизацию". After adding a new application, you will receive an email with the needed settings.
<br /><br /><div style="text-align:center;"><img src="engine/skins/images/odnoklassniki2.jpg" /></div>
<br />You will need the following options: "Application ID", "Публичный ключ приложения", "Секретный ключ приложения", that you should enter to Administration Panel of the script in Social Network Settings. These fields will be unique for your site, they cannot be copied from the screenshot above.
<br /><br />After that place the following code into <b>login.tpl</b>:
<div class="code">[odnoklassniki]<a href="{odnoklassniki_url}" target="_blank">Log in using Odnoklassniki</a>[/odnoklassniki]</div>
Where tags [odnoklassniki] … [/odnoklassniki] display the text enclosed between them if the authorization using Odnoklassniki network is enabled. Tag {odnoklassniki_url} displays the URL link to the authorization in the social network.
<br><br>
<div class="bg-primary-700" style="padding:10px;">Configure authorization using Facebook</div>
The first thing you need is to create a new application for <a href="https://developers.facebook.com/apps" target="_blank">Facebook</a> network.<br><br>
Click "+ Создать новое приложение" in the upper right corner. Then enter the name of the application:
<br /><br /><div style="text-align:center;"><img src="engine/skins/images/fc1.jpg" /></div>
<br /> Next, on the settings page of your application click "Add Platform". Then choose "Website" and enter your website’s address: http://yoursite.com/
<br /><br /><div style="text-align:center;"><img src="engine/skins/images/fc2.jpg" /></div>
<br /> Then save all your settings. For further work you need the options that you can find in the following fields:
<br /><br /><div style="text-align:center;"><img src="engine/skins/images/fc3.jpg" /></div>
<br />that you should enter to Administration Panel of the script in Social Network Settings. These fields will be unique for your site, they cannot be copied from the screenshot above.
<br /><br />After that place the following code into <b>login.tpl</b>:
<div class="code">[facebook]<a href="{facebook_url}" target="_blank">Log in using Facebook</a>[/facebook]</div>
Where tags [facebook] … [/facebook] display the text enclosed between them if the authorization using Facebook network is enabled. Tag {facebook_url} displays the URL link to the authorization in the social network.
<br><br>
<div class="bg-primary-700" style="padding:10px;">Configure authorization using Google</div>
The first thing you need is to create a new application <a href="https://code.google.com/apis/console/" target="_blank">Google</a>. After navigating to the page click on "Create project".
<div style="text-align:center;"><img src="engine/skins/images/google1.jpg" /></div>
After completing the form, go to the library and click on the Google+ API (note that the top should be the name of your created project)
<br /><br /><div style="text-align:center;"><img src="engine/skins/images/google2.jpg" /></div>
<br />Include this API, and after activation You will be prompted to create credentials. Fill in the form. And save:
<br /><br /><div style="text-align:center;"><img src="engine/skins/images/google3.jpg" /></div>
<br />Fill the form:
<br /><br /><div style="text-align:center;"><img src="engine/skins/images/google4.jpg" /></div>
<br /><br /><div style="text-align:center;"><img src="engine/skins/images/google5.jpg" /></div>
<br /><br /><div style="text-align:center;"><img src="engine/skins/images/google6.jpg" /></div>
<br />You will need the following options: "Client ID" and "Client Secret" that you should enter to Administration Panel of the script in Social Network Settings. These fields will be unique for your site, they cannot be copied from the screenshot above.
<br /><br />After that place the following code into <b>login.tpl</b>:
<div class="code">[google]<a href="{google_url}" target="_blank">Log in using Google</a>[/google]</div>
Where tags [google] … [/google] display the text enclosed between them if the authorization using Google is enabled. Tag {google_url} displays the URL link to the authorization in the network.
<br><br>
<div class="bg-primary-700" style="padding:10px;">Configure authorization using Mail.Ru</div>
First you need to create a new application on <a href="http://api.mail.ru/sites/my/add" target="_blank">Mail.Ru</a>.<br><br>
On the next page you need to agree with the rules. Next, fill in the form below:
<br /><br /><div style="text-align:center;"><img src="engine/skins/images/mailru1.jpg" /></div>
<br />Then click "Продолжить" and move to the next step. Now you need to download receiver.html, place it to your project’s directory and let Mail.ru check the availability of this file. When you successfully add your website to Mail.ru, you should see the following message with the special parameters:
<br /><br /><div style="text-align:center;"><img src="engine/skins/images/mailru2.jpg" /></div>
<br />You will need the following options: "ID" and "Секретный ключ", that you should enter to Administration Panel of the script in Social Network Settings. These fields will be unique for your site, they cannot be copied from the screenshot above.
<br /><br />After that place the following code into <b>login.tpl</b>:
<div class="code">[mailru]<a href="{mailru_url}" target="_blank">Log in using Mail.Ru</a>[/mailru]</div>
Where tags [mailru] … [/mailru] display the text enclosed between them if the authorization using Mail.Ru is enabled. Tag {mailru_url} displays the URL link to the authorization in the network.
<br><br>
<div class="bg-primary-700" style="padding:10px;">Configure authorization using Yandex</div>
First you need to create a new application on <a href="https://oauth.yandex.ru/client/new" target="_blank">Yandex</a>.<br><br>
<div style="text-align:center;"><img src="engine/skins/images/yandex1.jpg" /></div>
<br />The title will be "Yandex Auth". Choose "Яндекс.Логин" and select all items: e-mail address, date of birth, username of the full name. We will get the access to them if user entered all the data in the user profile. Block with the special parameters will be shown on the next page:
<div style="text-align:center;"><img src="engine/skins/images/yandex2.jpg" /></div>
<br />You will need the following options: "ID приложения" and "Пароль приложения", that you should enter to Administration Panel of the script in Social Network Settings. These fields will be unique for your site, they cannot be copied from the screenshot above.
<br /><br />After that, place the following code into <b>login.tpl</b>:
<div class="code">[yandex]<a href="{yandex_url}" target="_blank">Log in using Yandex</a>[/yandex]</div>
Where tags [yandex] … [/yandex] display the text enclosed between them if the authorization using Yandex is enabled. Tag {yandex_url} displays the URL link to the authorization in the network.
HTML;
?>