Jump to content

Community

Sticky Notes (support topic)


TheJackal84

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
Share on other sites

  • 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
Share on other sites

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
Share on other sites

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 link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

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

Loading...
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We use technologies, such as cookies, to customise content and advertising, to provide social media features and to analyse traffic to the site. We also share information about your use of our site with our trusted social media, advertising and analytics partners. See more about cookies and our Privacy Policy