Skocz do zawartości
"Idzie nowe..." - o zmianach i nie tylko ×
Przeniesienie zakupów z IPS Marketplace / Moving bought items from IPS Marketplace ×

custom messgae on theme setting


ArashDev

Rekomendowane odpowiedzi

hi

I want the users see custom message when they go to a specific tab of the theme settings.

I used the code below, but this message is displayed universally for all tabs, while I want it to be displayed for only one tab.

<?php

\IPS\Output::i()->output = \IPS\Theme::i()->getTemplate( 'global', 'core', 'global' )->message( \IPS\Member::loggedIn()->language()->addToStack('custom_information'), 'warning', NULL, NULL, NULL, FALSE );
return new \IPS\Helpers\Form\YesNo( "core_theme_setting_title_{$row['sc_id']}", $value, FALSE, 
		array( 'togglesOn' => array(
		'theme_setting_forums_enbl',
		'theme_setting_posts_enbl',
		'theme_setting_topics_enbl',
	)), NULL, NULL, NULL, 'theme_setting_'.$row['sc_key'] );

 

I hope somebody can help me!

 

thanks

ArashDev.com

Odnośnik do komentarza
Udostępnij na innych stronach

9 hours ago, DawPi said:

This is whole code? Doubt that. Show me part with the tabs.

What do you mean by "whole codes"?

 

I'm going to add a settings tab in my theme, and I'm getting the output using the codes I previously sent you, like the image below. However, I want the message above the tabs to be displayed only when I navigate to that specific tab. but, the code I'm using displays the message in all tabs.

 

Spoiler

Firefox_Screenshot_2023-06-21T06-42-49_265Z.thumb.png.5dc9ed5844916c6765fcfb622e1b9210.png

 

I hope I was able to convey my meaning.

ArashDev.com

Odnośnik do komentarza
Udostępnij na innych stronach

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę.