Links in demo updated - Radio in all styles adapted
-----

rmcgirr83 - activity24hours

Gesperrt
Forum Member
Site Admin
Beiträge: 649
Registriert: 3. Apr 2019, 17:36
Vorname: Jutta
Dein Land: Schweiz
Wohnort: Zuchwil / SO
Kontaktdaten:

rmcgirr83 - activity24hours

Beitrag von Forum Member » 20. Apr 2019, 09:14

Wichtig: Diese Anpassungsänderung gilt nur für den Silver_Xmas_Modern ab Styleversion 3.2.5.1 (Anleitung für ältere Styleversionen siehe im Antwortbeitrag)
Important: This change is only valid for the Silver_Xmas_Modern from style version 3.2.5.1 on (Instructions for older style versions can be found in the answer article).

Extension version 1.0.9

Damit diese Erweiterung im Statistikblock mit Font Awesome Icon angezeigt wird, muss man einige Änderungen vornehmen. (Scroll down for EN instruction)

- Gehe zu Extensions - rmcgirr83 - activity24hours - styles
- Kopiere den Ordner prosilver und nenne ihn in Silver_Xmas_Modern um
- Öffne den Ordner Silver_Xmas_Modern - template - event
- Öffne die Datei index_body_stat_blocks_after suche

Code: Alles auswählen

<h3 id="twentyfourhour_stats">{{ lang('TWENTYFOURHOUR_STATS') }}</h3>
und ersetze mit

Code: Alles auswählen

<h3 id="twentyfourhour_stats" class="add-fa">{{ lang('TWENTYFOURHOUR_STATS') }}</h3>
- Erstelle in Deinem Editor (zBsp. Notepad++) eine Datei mit folgendem Inhalt:

Code: Alles auswählen

<!-- INCLUDECSS @rmcgirr83_activity24hours/24stats.css -->
Speichere diese Datei in Silver_Xmas_Modern - template - event mit der Bezeichnung overall_header_head_append als html.

Im Ordner Silver_Xmas_Modern, erstelle einen Ordner theme.
Erstelle eine leere css mit dem Namen 24stats.css
Füge in die erstellte css folgenden Inhalt ein:

Code: Alles auswählen

.add-fa::before {
	font-family: FontAwesome;
	font-size: 19px;
	color: #8B0000;
	margin-right: 5px;
	margin-left: 1px;
	padding-right: 6px;
	content: '\f005';
	text-decoration: none;
	vertical-align: middle;
}
Speichere die erstellte css im Ordner theme.

*********
EN instruction

To display this extension in the statistics block with font Awesome icon, you need to make some changes.

- Go to Extensions - rmcgirr83 - activity24hours - styles
- Copy the folder prosilver and rename it to Silver_Xmas_Modern
- Open the folder Silver_Xmas_Modern - template - event
- Open the file index_body_stat_blocks_after search

Code: Alles auswählen

<h3 id="twentyfourhour_stats">{{ lang('TWENTYFOURHOUR_STATS') }}</h3>

and repleace it with

Code: Alles auswählen

<h3 id="twentyfourhour_stats" class="add-fa">{{ lang('TWENTYFOURHOUR_STATS') }}</h3>
- Create a file with the following content in your editor (e.g. Notepad++):

Code: Alles auswählen

<!-- INCLUDECSS @rmcgirr83_activity24hours/24stats.css -->
Save this file in Silver_Xmas_Modern - template - event with the designation overall_header_head_append as html.

In the Silver_Xmas_Modern folder, create a theme folder.
Create a file 24stats.css
Insert the following code into 24stats.css:

Code: Alles auswählen

.add-fa::before {
	font-family: FontAwesome;
	font-size: 19px;
	color: #8B0000;
	margin-right: 5px;
	margin-left: 1px;
	padding-right: 6px;
	content: '\f005';
	text-decoration: none;
	vertical-align: middle;
}
Save the created css in the theme folder

Forum Member
Site Admin
Beiträge: 649
Registriert: 3. Apr 2019, 17:36
Vorname: Jutta
Dein Land: Schweiz
Wohnort: Zuchwil / SO
Kontaktdaten:

Re: rmcgirr83 - activity24hours

Beitrag von Forum Member » 20. Apr 2019, 09:16

Wichtig: Diese Anleitung gilt nur für frühere Styleversionen als 3.2.5.1
Important: This manual is only valid for earlier style versions than 3.2.5.1.

Damit diese Erweiterung im Statistikblock angezeigt wird, muss man sie umbenennen. (Scroll down for EN instruction)

- Gehe zu Extensions - rmcgirr83 - activity24hours - styles
- Kopiere den Ordner prosilver und nenne ihn in Silver_Xmas_Modern um
- Öffne den Ordner Silver_Xmas_Modern - template - event
- Kopiere den Ordner index_body_stat_blocks_after und nenne ihn in index_body_birthday_block_before um
- Ersetze den Inhalt in der index_body_birthday_block_before. html mit folgendem Inhalt:

Code: Alles auswählen

{% if S_CAN_VIEW_24_HOURS %}
<div class="stat-block 24stats">
		<h3 id="twentyfourhour_stats" class="add-fa">{{ lang('TWENTYFOURHOUR_STATS') }}</h3>

		<p>{{ HOUR_POSTS }} &bull; {{ HOUR_TOPICS }} &bull; {{ HOUR_USERS }}
		<br>{{ TOTAL_24HOUR_USERS }} {{ USERS_24HOUR_TOTAL }} {{ HIDDEN_24HOUR_TOTAL }} {{ BOTS_24HOUR_TOTAL }} {{ GUEST_ONLINE_24 }} {{ lang('LAST_24_HOURS') }}{% if USERS_ACTIVE %}<br>{{ lang('REGISTERED_USERS') }} {% for lastvisit in loops.lastvisit %} {{ lastvisit.USERNAME_FULL }}{% if not lastvisit.S_LAST_ROW %}{{ lang('COMMA_SEPARATOR') }} {% endif %}{% endfor %}{% endif %}
		<br>{% if BOTS_ACTIVE %}{{ lang('G_BOTS') }}{{ lang('COLON') }} {% for bot_lastvisit in loops.bot_lastvisit %} {{ bot_lastvisit.BOTNAME_FULL }}{% if not bot_lastvisit.S_LAST_ROW %}{{ lang('COMMA_SEPARATOR') }} {% endif %}{% endfor %}{% endif %}
		</p>
</div>
{% endif %}
und speichere das.

- Öffne die index_body_stat_blocks_after, lösche den ganzen Inhalt und speichere es.

Im Ordner Silver_Xmas_Modern, erstelle einen Ordner theme.
Erstelle eine leere css mit dem Namen 24stats.css
Füge in die erstellte css folgenden Inhalt ein:

Code: Alles auswählen

.add-fa::before {
	font-family: FontAwesome;
	font-size: 19px;
	color: #8B0000;
	margin-right: 5px;
	margin-left: 1px;
	padding-right: 6px;
	content: '\f005';
	text-decoration: none;
	vertical-align: middle;
}
Speichere die erstellte css im Ordner theme.

*********
EN-Instruction

In order for this extension to appear in the statistics block, you must rename the event.

- Go to Extensions - rmcgirr83 - activity24hours - styles
- Copy the folder prosilver and rename it to Silver_Xmas_Modern
- Open the folder Silver_Xmas_Modern - template - event
- Copy the folder index_body_stat_blocks_after and rename it to index_body_birthday_block_before
+ Replace the Code into the index_body_birthday_block_before. html with this:

Code: Alles auswählen

{% if S_CAN_VIEW_24_HOURS %}
<div class="stat-block 24stats">
		<h3 id="twentyfourhour_stats" class="add-fa">{{ lang('TWENTYFOURHOUR_STATS') }}</h3>

		<p>{{ HOUR_POSTS }} &bull; {{ HOUR_TOPICS }} &bull; {{ HOUR_USERS }}
		<br>{{ TOTAL_24HOUR_USERS }} {{ USERS_24HOUR_TOTAL }} {{ HIDDEN_24HOUR_TOTAL }} {{ BOTS_24HOUR_TOTAL }} {{ GUEST_ONLINE_24 }} {{ lang('LAST_24_HOURS') }}{% if USERS_ACTIVE %}<br>{{ lang('REGISTERED_USERS') }} {% for lastvisit in loops.lastvisit %} {{ lastvisit.USERNAME_FULL }}{% if not lastvisit.S_LAST_ROW %}{{ lang('COMMA_SEPARATOR') }} {% endif %}{% endfor %}{% endif %}
		<br>{% if BOTS_ACTIVE %}{{ lang('G_BOTS') }}{{ lang('COLON') }} {% for bot_lastvisit in loops.bot_lastvisit %} {{ bot_lastvisit.BOTNAME_FULL }}{% if not bot_lastvisit.S_LAST_ROW %}{{ lang('COMMA_SEPARATOR') }} {% endif %}{% endfor %}{% endif %}
		</p>
</div>
{% endif %}
and safe it

- Open the index_body_stat_blocks_after, delete all content and safe it.

In the Silver_Xmas_Modern folder, create a Theme folder.
Create a file 24stats.css
Insert the following code into 24stats.css:

Code: Alles auswählen

.add-fa::before {
	font-family: FontAwesome;
	font-size: 19px;
	color: #8B0000;
	margin-right: 5px;
	margin-left: 1px;
	padding-right: 6px;
	content: '\f005';
	text-decoration: none;
	vertical-align: middle;
}
Save the created css in the theme folder

Gesperrt

Zurück zu „Silver-Xmas-Modern“