We’re trying to better integrate private messaging on our site (8tracks), and we want to add a “private message” button to 8tracks user profile pages, which would then link to their forum profile page, with the message window already open.
Is there something we can add to the URL to make the profile page appear in this state?
You should be able to do this with custom user code JavaScript…
… it’s not built in as far as I am aware.
With 3 parts…
##Part 1 - passing the parameter
A combination of ensuring the links link to a users profile page that doesn’t redirect i.e.
and not
If you include a parameter on the URL i.e.
##Part 2 - opening the private message dialog
Some of the code I have written in this topic will open the composer and start a private message
##Part 3 - read the ?pm=1 parameter
Use JavaScript to read the parameter on page load completed from the URL’s query string i.e. pm=1
then execute the opening of the private message dialog as per part 2.