I want to show you how to make working your Post Notes 1.1.1 app for IPS 4.5x.
You have to open your forum FTP and go to forum/applications/postnotes/hooks and open file "postNotes_template.php". In this file you have to remove all code and paste this code:
//<?php
/* To prevent PHP errors (extending class does not exist) revealing path */
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
{
exit;
}
class postnotes_hook_postNotes_template extends _HOOK_CLASS_
{
/* !Hook Data - DO NOT REMOVE */
public static function hookData() {
return array_merge_recursive( array (
'post' =>
array (
0 =>
array (
'selector' => 'div[data-controller=\'core.front.core.comment\'].ipsComment_content.ipsType_medium > div.cPost_contentWrap > div.ipsItemControls > ul.ipsComment_controls.ipsClearfix.ipsItemControls_left[data-role=\'commentControls\'] > li.ipsHide[data-role=\'commentLoading\']',
'type' => 'add_inside_end',
'content' => '{template="addNote" group="post" location="front" app="postnotes" params="$comment"}',
),
1 =>
array (
'selector' => 'div[data-controller=\'core.front.core.comment\'] > div.cPost_contentWrap > div.ipsItemControls',
'type' => 'add_after',
'content' => '{template="notes" group="post" location="front" app="postnotes" params="$comment"}',
),
),
'topic' =>
array (
0 =>
array (
'selector' => '#elClubContainer > div[data-controller=\'core.front.core.commentFeed,forums.front.topic.view, core.front.core.ignoredComments\']',
'type' => 'add_attribute',
'attributes_add' =>
array (
0 =>
array (
'key' => 'data-controller',
'value' => 'core.front.core.commentFeed,forums.front.topic.view, core.front.core.ignoredComments,postnotes.front.notes',
),
),
),
),
), parent::hookData() );
}
/* End Hook Data */
}
After that you can save file, go clear cache and enjoy your working Post Notes app!