Can anyone help with this please, I've been banging my head on it for two days, and still can't figure it out!

I have a "send private message to" link on the profile page. The link seems to format correctly (i.e. /privatemsg/msgto/45), but when you arrive there you are actually at your inbox (not on the "compose" tab with "To" already filled out).

Am I missing something, or is this a bug?

Thanks a bunch :-)

Comments

G Gavitt’s picture

I just made this link and it seems to be working on my site..

<a href=<?php global $base_url; echo $base_url;?>/privatemsg/msgto/<?php echo $user->uid?> title="Send a PM"><b>Send Personal Message</b></a>

This is in my user_profile.tpl.php file.

sopia’s picture

Thanks a bunch for the try, but mine is still not working. The link on the profile page is fine (i.e. it goes to privatemsg/msgto/93), but it just brings me to the inbox, not compose message!!! I just can't figure it out.

G Gavitt’s picture

Does /privatemsg/msgto go to your inbox as well?
BTW I am using privatemsg 5x 1.8 ... Maybe they changed the url of msgto in 5x 2.x ?

sopia’s picture

Title: Why is privatemsg/msgto/45 etc. sending users to inbox? » Yes, privatemsg/msgto also sends users to inbox

Yeah, it sure does!

Thanks for your help.

sopia’s picture

Suede,

Thanks so much for helping me. You totally gave me the idea just now to check in the contacts folder and see where the link leads. Guess what? Not privatemsg/msgto but privatemsg/new !!! Well, it's fixed, hope this thread helps someone else.

G Gavitt’s picture

So glad it worked out for ya! I am also glad that I now know about that msgto link ...in case I ever go down the 2.x path as well.

kpaul’s picture

Title: Yes, privatemsg/msgto also sends users to inbox » 5.x-1.8.x == privatemsg/msgto and 5.x-2.x-dev == privatemsg/new
Component: Code » Documentation

I can confirm this. You need to change your link to point to privatemsg/new on your user profile page for it to work correctly.

This should probably be put into the readme for the 5.x-2.x-dev version?

I changed the title of this for others who may be running into this...

Thanks, guys.

K. Paul Mallasch
kpaul media

kpaul’s picture

Title: 5.x-1.8.x == privatemsg/msgto and 5.x-2.x-dev == privatemsg/new » user_profile.tpl.php link different in 5.x-1.8 and 5.x-2.x-dev

changed title again. better?

G Gavitt’s picture

Works fine for me.. Good Idea to change it.

litwol’s picture

Status: Active » Closed (won't fix)

Drupal 5 private message branch is no longer actively maintained (in fact it is actively unmaintained). Please upgrade to drupal 6 which is supported (and will continue to be supported).