1 amoun Feb 14, 2018 14:48
3 amoun Feb 14, 2018 15:41
Thanks very much. Will check out your ideas.
EDIT I'm using the second option to start with
disp=msgform&recipient_id=6989
Thanks again
4 achillis Feb 14, 2018 16:02
I edited my answer. Check it out. Sorry I answered out of hand but just reviewed/checked it properly now.
5 achillis Feb 14, 2018 16:11
Thanks very much. Will check out your ideas.
EDIT I'm using the second option to start with disp=msgform&recipient_id=6989
Thanks again
You should consider incorporating it into your skin class to make reduce hardcoding of data that might change, such as a user id which you can define is Skin Settings instead of having to change it in _help.dip.php everytime you need to chnage the user.
Note: My example above is NOT tested, just gave you a snippet from my thoughts.
6 amoun Feb 14, 2018 16:12
Trying the skin class option as we speak :)
7 achillis Feb 20, 2018 13:03
Did this work for you?
8 amoun Feb 20, 2018 14:01
No it didn't work straight of the box so to speak, and I was getting somewhere with my hard coding option, as usual and did this to my [/skin/***/_mgs_contact.form.php}
$title="Website Technician";
if($recipient_id ==3)
{$title="Production Manager";}
$Form->hidden( 'recipient_id', $recipient_id );
$Form->hidden( 'post_id', $post_id );
$Form->hidden( 'comment_id', $comment_id );
$Form->hidden( 'redirect_to', url_rel_to_same_host($redirect_to, '/htsrv') );
$Form->info( T_('To'), $recipient_link . ' :: ' .$title);
Thanks and may look at your recommendation again when I have more head space, but this works and is simple enough to update new versions :)
for user profile like this:
disp=user&user_ID=6989
or
for user contact page like this:
disp=msgform&recipient_id=6989
You will need to know the user ID in the above the id is 6989
you could have a field in your skin class
...skins/YOURSKIN_FOLDER/_skin.class.php
like so: