Skip to content
View in the app

A better way to browse. Learn more.

Дизайн и модификация Invision Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

уведомления на почту

Коллеги, доброго всем дня!

 

вопрос первый: мне как админу и новым пользователям приходят уведомления на мыло. но там что то с кодировкой напутано и часть букв читается, а часть - нет.

подскажите где искать настройки уведомлений и кодировок (я так понимаю с ними проблема)

IPB 3.0

 

второй вопрос задам в отдельной теме.

 

спасибо

Edited by swimm

Featured Replies

  • Author

проблема решена, заменой файла.

ClassEmail

Спасибо, может, кому-то пригодится.

  • Author

файл лежит на айпибишном форуме, кстати.

Спасибо, может, кому-то пригодится.

Неа ...

 

Автор решение Kosar

 

В файле /ips_kernel/classEmail.php

 

НАЙТИ (строки 549 - 552):

		
	$this->subject		= $subject;

	return true;
}

 

ДОБАВИТЬ:

/**
	 * Set the from display text
	 *
	 * @access	  public
	 * @param	   string		  From display text
	 * @return	  boolean
	 */
	public function setFromDisplay( $FromDisplay )
	{
			/* Fix encoded quotes, etc */
			$FromDisplay = str_replace( '"', '"', $FromDisplay );
			$FromDisplay = str_replace( ''', "'", $FromDisplay );
			$FromDisplay = str_replace( ''' , "'", $FromDisplay );
			$FromDisplay = str_replace( '!' , "!", $FromDisplay );
			$FromDisplay = str_replace( '$' , "$", $FromDisplay );

			if( $this->mail_method != 'smtp' )
			{
					$sheader		= $this->_encodeHeaders( array( 'FromDisplay' => $FromDisplay ) );
					$FromDisplay	= $sheader['FromDisplay'];
			}

			$this->from_display			 = $FromDisplay;

			return true;
	}

 

НАЙТИ (строка 813):

			$this->mail_headers['From']		= '"' . $this->from_display . '" <' . $this->from . '>';

 

ЗАМЕНИТЬ на:

			$this->setFromDisplay( $this->from_display );
		$this->mail_headers['From']		   	= $this->from_display . ' <' . $this->from . '>';

 

файл лежит на айпибишном форуме, кстати.

Этот? http://forums.ibresource.ru/index.php?/topic/59487/page__view__findpost__p__359068

  • Author

именно он.

на 3,04 встал без проблем путем замены исходного файла на скачанный

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.