Jump to content

Sticky Notes


Ryo
 Share

Recommended Posts

Sticky Notes


Приложение, позволяющее вам или указанным пользователям создавать закреплённые заметки для других пользователей сайта. Пользователи могут отключать заметки, а так же перемещать из по экрану.

PASSWORD PROTECTION

Global Sticky Notes ( ACP )

  • Create and display unlimited global Sticky Notes to your members
  • Choose what user groups can see each Sticky Note
  • Add a signature ( username and avatar ) to the bottom of each Sticky Note allowing members to see who wrote it, as a clickable link to said profile
  • Choose the colour of each Sticky Note
  • Choose from 9 different positions to show each individual Sticky Note
  • Set a expiry time and date for each Sticky Note with a option to just show it until the user dismisses it
  • Select where to show each Sticky Note from a list of your installed applications or to just show it everywhere ( Example only show the Sticky Note when users are browsing the forums or the downloads section etc )
  • Use a wide range of tags to engage your members more personally

Global Sticky Notes Front End Admin

  • The admin/s can create new global Sticky Notes from the front end via the create menu ( Only admins can use this feature )

Personal Sticky Notes ( MEMBERS )

  • Allow chosen user groups to send personal Sticky Notes to other members
  • Members can receive a unlimited amount of Sticky Notes
  • All Sticky Notes are dismissable
  • All personal Sticky Notes will automatically add the username and avatar, unless you have selected in the ACP to allow anonymous Sticky Notes (read ACP Menu below)
  • Personal Sticky Notes will display the time the note was sent to the member for example "just now", " 5 minutes ago", "4 hours ago", "16th July" and so on
  • Members can either send Personal Sticky notes to members by their hover card or via their forums topics and you can also send them via the users create menu
  • Each ( Non anonymous ) personal Sticky Note has a reply icon on allowing users to easily reply to other members notes

Front End ( PERSONAL STICKY NOTES )

  • Added a link to the users drop down menu linking to the new tables listed below
  • Shows a table listing all the members received Sticky Notes with the ability to restore the note bringing it back to life
  • Shows a table listing all the members sent Sticky Notes with the ability to edit and resend or just resend the Sticky Note, it also shows if the user has dismissed the Sticky Note
  • Members can view all their sent and received Sticky Notes between them and X member
  • All tables can be sorted by time and date and also have a advanced search for members or a time and date stamp

Widgets

Show a widget with a list of members who have sent the most Sticky notes

Show a widget with a list of members who have received the most Sticky Notes

ACP Menu

  • Sticky Notes (Global including personal)
    • Choose to use either a pin or a bit of sticky tape to hold the Sticky Note
    • Choose to show or hide Sticky Notes on mobile or tablet devices
    • Change the z-index of the Sticky Notes ( This is only needed for some custom themes you might have installed )
    • Allow users to drag and drop the Sticky Notes around their screen by hovering over the pin and dragging the Sticky Note
  • Personal Sticky Notes
    • Allow members to send anonymous Sticky Notes to other members (admin can view all Sticky Notes in the ACP read below)
    • Read all the Sticky Notes send by members in a nice and tidy table and you (being the admin) can even view the sender if they sent it anoymous
    • Select what member groups can use personal Sticky Notes
    • Choose from 9 different positions to place the Sticky Notes
    • Mass delete Sticky Notes by either "ALL", "READ", "UNREAD", by individual members or by chosen user groups
    • Choose the colour of personal Sticky Notes

Member Group ACP Menu

  • Choose how many personal Sticky Notes each member group can send per day, with a unlimited option

Members Settings ACP Menu

  • Block individual members from using personal Sticky Notes
  • Block individual members from receiving Sticky Notes

 

Link to comment
Share on other sites

Открываем файл applications/stickynotes/modules/admin/stickynotes/license.php

Найти:

$data = $response->decodeJson();

Ниже добавить:

$response->httpResponseCode = 200;

После этого будет принят любой ключ.

Link to comment
Share on other sites

  • 2 months later...

Я еще правил в файле GlobalNotes.php , так как при добавлении заметки, система отвечала, что лицензионный ключ - не верный.

В общем повторил тоже самое, что и Respected 

Открываем файл applications/stickynotes/sources/GlobalNote/GlobalNotes.php

Находим:

$data = $response->decodeJson();

Ниже добавляем:

$response->httpResponseCode = 200;

 

Link to comment
Share on other sites

  • 2 years later...
  • 1 month later...

В этой можно всё исправить, добавив строку

    public static $csrfProtected = TRUE;

в каждый файл в папке sources/admin следующей строкой после class ... {

Должно получится так:

class _xxxxxxx extends \IPS\Node\Controller
{
    public static $csrfProtected = TRUE;

В 4.6.12 вроде после этого работает нормально.

Link to comment
Share on other sites

  • 2 weeks later...
On 4/17/2022 at 6:58 PM, Desti said:

В этой можно всё исправить, добавив строку

    public static $csrfProtected = TRUE;

в каждый файл в папке sources/admin следующей строкой после class ... {

Должно получится так:

class _xxxxxxx extends \IPS\Node\Controller
{
    public static $csrfProtected = TRUE;

В 4.6.12 вроде после этого работает нормально.

Anyone tested this?

Link to comment
Share on other sites

On 4/17/2022 at 6:58 PM, Desti said:

В этой можно всё исправить, добавив строку

    public static $csrfProtected = TRUE;

в каждый файл в папке sources/admin следующей строкой после class ... {

Должно получится так:

class _xxxxxxx extends \IPS\Node\Controller
{
    public static $csrfProtected = TRUE;

В 4.6.12 вроде после этого работает нормально.

Just to be sure. The zip file, have a sources folder where inside are these ones:

Screenshot_131.jpg.69be4bc4b3a7b5ed0762e986cf96291b.jpg

Need to each of these files, add after class xxxx, for example on dismissed it says:

class _Dismissed extends \IPS\Patterns\ActiveRecord

the code:

public static $csrfProtected = TRUE;

And it will work with 4.6? 

Link to comment
Share on other sites

2 hours ago, Desti said:

sorry, modules/admin/, not sources/admin/

Ty, though when u install it, it asks for a license key and u can't practically use it without it

Link to comment
Share on other sites

Just now, Desti said:

third message in this topic

I did that, but still it says 

 

Screenshot_132.jpg

So the license.php is as follows:

<?php


namespace IPS\stickynotes\modules\admin\stickynotes;

/* To prevent PHP errors (extending class does not exist) revealing path */
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
{
	header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
	exit;
}

/**
 * license
 */
class _license extends \IPS\Dispatcher\Controller
{
	public static $csrfProtected = TRUE;
	/**
	 * Execute
	 *
	 * @return	void
	 */
	public function execute()
	{
		parent::execute();
	}

	/**
	 * ...
	 *
	 * @return	void
	 */
	protected function manage()
	{
		$form = new \IPS\Helpers\Form;		
		
		$form->add( new \IPS\Helpers\Form\Text( "SN_license_key", \IPS\Settings::i()->SN_license_key, TRUE, array(), function( $val ) {
		if ( $val )
		{
		    $baseKey = base64_encode( $val );
		    $domain = \IPS\Settings::i()->base_url;
		    $product = 1531912419;
		    try
		    {
		        $response = \IPS\Http\Url::external( "https://ipsdev.org/applications/licensingsystem/interface/main/licenses.php?key={$baseKey}&domain={$domain}&product={$product}&activate=1" )->request()->get();
		    }
		    catch ( \Exception $e )
		    {
		        throw new \DomainException("error");
		    }
		    $data = $response->decodeJson();
			$response->httpResponseCode = 200;
		    if ( $response->httpResponseCode != 200 )
		    {
		        throw new \DomainException( $data["message"] );
		    }
		}
		} ) );
		
		if ( $values = $form->values() )
        {
			$form->saveAsSettings();
		    \IPS\Output::i()->redirect( \IPS\Http\Url::internal( 'app=stickynotes&module=stickynotes&controller=license' ), 'License Key Accepted' );
	        return TRUE;
        }
		
		\IPS\Output::i()->title = \IPS\Member::loggedIn()->language()->addToStack( 'SN_license_key' );
		\IPS\Output::i()->output = $form;
	}
}

 

Link to comment
Share on other sites

I looked in my sources, I cleared the manage () function in license.php and cleared the storeNote() function in sources/GlobalNote/GlobalNotes.php.

I also removed the license {} block from the data/acpmenu.json

Link to comment
Share on other sites

if ( !\IPS\Settings::i()->SN_license_key )
        {
            \IPS\Output::i()->redirect( \IPS\Http\Url::internal( 'app=stickynotes&module=stickynotes&controller=license' ), 'License Key Required' );
        }

Remove it from all modules in admin/

Link to comment
Share on other sites

Yes the License stop appearing after do all the changes that Desti suggested but i can't get it to work. It doesn't appear at all on my theme, i don't know if it needs any extra code for it or it's just the older version which doesn't work on the latest one

Link to comment
Share on other sites

Thank you for the upload @by_ix - I still thought can't make the sticky note to appear. I searched the support thread on official, and somewhere Jackal, the original creator, said this: https://invisioncommunity.com/forums/topic/438959-sticky-notes-support-topic/page/10/#comment-2727869 

I use Taman's theme, specifically Magnum, so it may this the problem, although i can't understand what's custom edit i have to create for it. Anyone with some knowledge and some spare time, tell me to pm him my forum's url :) ty in advance, i believe Sticky Notes will be a very nice app to have, for guest users, to make them register or for specific members to reply to a thread / follow some procedure. 

Link to comment
Share on other sites

  • 4 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Ваша ссылка была автоматически строена.   Отображать как обычную ссылку

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...