Jump to content
Дизайн и модификация IPS Community IPBSkinsBETA
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
vinegredz

Где шаблон для создания нового личного сообщения?

Recommended Posts

Здравствуйте!

 

Хочу повесить цель на отправку нового сообщения в личку (событие onsubmit), но не могу найти в шаблоне где находится форма.

 

Она генерируется по ссылке вида https://site.ru/messenger/compose/?to=95&title=text

 

Может кто знает адрес такого шаблона?

Share this post


Link to post

(событие onsubmit)

 

$('form[action*="/messenger/compose/"]').on("submit", function(){
   alert();
})

Share this post


Link to post

Jquery не хочу использовать, так как не понимаю его и не знаю, какие будут подводные камни. Мне бы именно PHPH код, где эта форма на создание нового сообщения формируется.

Share this post


Link to post

\applications\core\modules\front\messaging\messenger.php

	/**
 * Compose
 *
 * @return	void
 */
protected function compose()
{

Share this post


Link to post

Хочу повесить цель на отправку нового сообщения в личку (событие onsubmit)

Или applications\core\sources\Messenger\Conversation.php

 

/**
 * Process created object AFTER the object has been created
 *
 * @param	\IPS\Content\Comment|NULL	$comment	The first comment
 * @param	array						$values		Values from form
 * @return	void
 */
protected function processAfterCreate( $comment, $values )

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...