Pass username via variable into the 'To' box
-
Hi, plugin [front end PM] all working fine on my website, but here is the issue.
It’s an employment based website, and an employer can search for profiles which produces a list of profiles, click on the profile they want to view and at the top of the profile page there is a link ‘Send user a message’.On clicking the link, the profile username is passed as a variable to my messaging page [/messaging/?fepaction=newmessage]….. that part is fine, all working correctly.
NOW, my problem is (due to my very limited capabilities in php) I want to get that variable into the ‘To’ box.
Currently, I’m simply using an echo statement at the top of the page which says: ‘Enter username in the ‘TO’ box below: [username from variable $profile_nickname]’….. which is fine, but not very professional as the employer then must type the username into the ‘To’ box.
I thought this was a simple case of changing the part relevant to the [message_to] in file class-fep-form.php……
‘value’ => ‘$profile_nickname’,
…… but it didn’t work.
If anyone can advise on how to do this I’d be extremely grateful.
Thanks
Paul
The topic ‘Pass username via variable into the 'To' box’ is closed to new replies.