Support de l'utilisationUSER_DARK_STYLE

Forum de support pour toutes les questions concernant l'utilisation de phpBB toutes versions. les problèmes rencontrés lors de manipulations et de la configuration du forum.
no_avatar
Turquie kaptangula
Auteur du sujet
Messages : 12
Enregistré le : 23 juin 2021
Localisation : Tütkiye
Pays :
Turquie (tr)
Turquie
Contact :

USER_DARK_STYLE

Message par Turquie kaptangula » 23 juin 2021, 18:17
hi how do i run this mod listener.php


can you help please


listener.php

code : Tout sélectionner

	public function ucp_prefs_get_data($event)
	{
		// Request the user option vars and add them to the data array
		$event['data'] = array_merge(
			$event['data'], array(

			'dark_style'     => $this->request->variable('dark_style', (int) $this->user->data['dark_style']),
			)
		);
}


		$this->template->assign_vars(array(
                    'S_USER_DARK_STYLE'   =>   $this->config['dark_style'],
ucp_prefs_view_select_menu_append.html

code : Tout sélectionner

<hr>
	<dl>
		<dt><label for="dark_style1">{{ lang('USERS_DARK_STYLE') }}{{ lang('COLON') }}</label><a id="darkstyle"></a></dt>
		<dd>
			<label for="dark_style1"><input type="radio" name="dark_style" id="dark_style1" value="1"{% if S_USER_DARK_STYLE %} checked="checked"{% endif %} /> {{ lang('Dark') }}</label>
			<label for="dark_style0"><input type="radio" name="dark_style" id="dark_style0" value="0"{% if not S_USER_DARK_STYLE %} checked="checked"{% endif %} /> {{ lang('Light') }}</label>
		</dd>
	</dl>
no_avatar
Turquie kaptangula
Auteur du sujet
Messages : 12
Enregistré le : 23 juin 2021
Localisation : Tütkiye
Pays :
Turquie (tr)
Turquie
Contact :

USER_DARK_STYLE

Message par Turquie kaptangula » 25 juin 2021, 08:17

code : Tout sélectionner

 
<link href="{{ BOARD_URL }}ext/kaptangula/cssmages/styles/all/theme/dark.css" rel="stylesheet">
<link href="{{ BOARD_URL }}ext/kaptangula/cssmages/styles/all/theme/custom.css" rel="stylesheet">

code : Tout sélectionner

<link rel="stylesheet" property="stylesheet" href="{{ BOARD_URL }}ext/kaptangula/cssmages/styles/all/theme/blank.css" type="text/css" class="colour-switcher" />
<script>
	if($.cookie("colour-choice")) {
		$("link.colour-switcher").attr("href",$.cookie("colour-choice"));
	}
	$(document).ready(function() {
		$("a.switch").click(function() {
			$("link.colour-switcher").attr("href",$(this).attr('rel'));
			$.cookie("colour-choice",$(this).attr('rel'), {expires: 365, path: '/'});
			return false;
		});
	});
</script>
Avatar de Sylver35
France Sylver35
Administrateur du site
Messages : 728
Enregistré le : 13 janvier 2018
Relax-Arcade :  1
Localisation : Bretagne
Pays :
France (fr)
France
Contact :

USER_DARK_STYLE

Message par France Sylver35 » 26 juin 2021, 18:09
Hello,
hi how do i run this mod
Where does this code come from?
Is it an existing extension?
In short, we cannot execute code without respecting the directives of phpBB
Des chercheurs qui cherchent, on en trouve, mais des chercheurs qui trouvent, on en cherche !
no_avatar
Turquie kaptangula
Auteur du sujet
Messages : 12
Enregistré le : 23 juin 2021
Localisation : Tütkiye
Pays :
Turquie (tr)
Turquie
Contact :

USER_DARK_STYLE

Message par Turquie kaptangula » 27 juin 2021, 06:59
I don't know how to run the code below ?

yes no how do i run it in user panel

Just listener.php and migrations pages are in the path and how


It does not work as in the example below


Help please


listener.php

code : Tout sélectionner

                    'S_USER_DARK_STYLE'   =>   $this->config['dark_style'],

migrations/
cssmages_shema.php

code : Tout sélectionner

			['config.add', ['dark_style', ]],

ucp_prefs_view_select_menu_append.html

code : Tout sélectionner

	<hr>
	<dl>
		<dt><label for="dark_style1">{{ lang('USERS_DARK_STYLE') }}{{ lang('COLON') }}</label><a id="darkstyle"></a></dt>
		<dd>
			<label for="dark_style1"><input type="radio" name="dark_style" id="dark_style1" value="1"{% if S_USER_DARK_STYLE %} checked="checked"{% endif %} /> {{ lang('Dark') }}</label>
			<label for="dark_style0"><input type="radio" name="dark_style" id="dark_style0" value="0"{% if not S_USER_DARK_STYLE %} checked="checked"{% endif %} /> {{ lang('Light') }}</label>
		</dd>
	</dl>

Avatar de Sylver35
France Sylver35
Administrateur du site
Messages : 728
Enregistré le : 13 janvier 2018
Relax-Arcade :  1
Localisation : Bretagne
Pays :
France (fr)
France
Contact :

USER_DARK_STYLE

Message par France Sylver35 » 27 juin 2021, 10:02
Re,

You don't answer my first question at all :
Where does this code come from ?
And the second :
Is it an existing extension ?
Des chercheurs qui cherchent, on en trouve, mais des chercheurs qui trouvent, on en cherche !
no_avatar
Turquie kaptangula
Auteur du sujet
Messages : 12
Enregistré le : 23 juin 2021
Localisation : Tütkiye
Pays :
Turquie (tr)
Turquie
Contact :

USER_DARK_STYLE

Message par Turquie kaptangula » 27 juin 2021, 12:59
www.sambah.net

kaptangula/cssmages

Yes I modules
Avatar de Sylver35
France Sylver35
Administrateur du site
Messages : 728
Enregistré le : 13 janvier 2018
Relax-Arcade :  1
Localisation : Bretagne
Pays :
France (fr)
France
Contact :

USER_DARK_STYLE

Message par France Sylver35 » 27 juin 2021, 13:04
You still don't answer my questions.

Until you give me the source of what you want to install, I couldn't answer and we're not going to go around in circles forever.
Des chercheurs qui cherchent, on en trouve, mais des chercheurs qui trouvent, on en cherche !
no_avatar
Turquie kaptangula
Auteur du sujet
Messages : 12
Enregistré le : 23 juin 2021
Localisation : Tütkiye
Pays :
Turquie (tr)
Turquie
Contact :

USER_DARK_STYLE

Message par Turquie kaptangula » 27 juin 2021, 18:45
Changing styles with css yes with dark no I want to run White css files.
Fichiers joints
IMG_20210622_221938.jpg
no_avatar
France Martin
Messages : 8
Enregistré le : 30 juin 2021
Pays :
France (fr)
France
Contact :

USER_DARK_STYLE

Message par France Martin » 30 juin 2021, 15:56
He is trying to work out code from a vip ext that i have created on my site he took the first version and changed my name to his :lol: so i made some major changes and a key system to prevent theft of the ext.

This ext is called cssmagic and can been seen on my youtube

My site running the ext is here https://www.martins-phpbb-test.com
no_avatar
Turquie kaptangula
Auteur du sujet
Messages : 12
Enregistré le : 23 juin 2021
Localisation : Tütkiye
Pays :
Turquie (tr)
Turquie
Contact :

USER_DARK_STYLE

Message par Turquie kaptangula » 01 juil. 2021, 14:04
You thought it was the same because your mod is similar to martin, the content is different from your mod. dancegirl whistle*
RĂ©pondre
  • Membres connectĂ©s en temps rĂ©el

    🔒 Refermer le panneau des membres connectés