Jump to content

Sticky Notes (support topic)


Recommended Posts

18 hours ago, .Ian said:

Is there a copyright showing on this app and if so where. Not sure if the examples I have seen have copyright removed.

There is only one, it is not global etc nor does it show on any sticky notes, it is on the members my stickynotes page where they can check all their sent / recieved notes

Link to comment
  • 2 weeks later...
  • 2 weeks later...
  • 1 month later...
  • 3 weeks later...
  • 2 weeks later...
  • 2 weeks later...

There's a bug in the SendDirectNote hook.

\IPS\Output::i()->redirect( \IPS\Http\Url::createFromString( $_SERVER['HTTP_REFERER'] ), 'sticky_note_sent' );

won't work for some people. 

https://stackoverflow.com/questions/5551094/http-referer-coming-back-with-null-key-does-not-exist-in-server

 

You should use \IPS\Request::i()->referrer() which was introduced in 4.4 to get the referrer, but keep in mind that this method could still return NULL, so you'll need to take care of this before you send it to the createFromString method.

Link to comment
2 hours ago, Daniel F said:

There's a bug in the SendDirectNote hook.


\IPS\Output::i()->redirect( \IPS\Http\Url::createFromString( $_SERVER['HTTP_REFERER'] ), 'sticky_note_sent' );

won't work for some people. 

https://stackoverflow.com/questions/5551094/http-referer-coming-back-with-null-key-does-not-exist-in-server

 

You should use \IPS\Request::i()->referrer() which was introduced in 4.4 to get the referrer, but keep in mind that this method could still return NULL, so you'll need to take care of this before you send it to the createFromString method.

It is updated for 4.4 with all that added already, I did let the person know once 4.4 is released by IPS I can update it, until then the newest update won't work with 4.3 as it has no \IPS\Request::i()->referrer()

Link to comment
  • Recently Browsing   0 members

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