jemproject / JEM-Project

JEM - an Event Manager for Joomla
https://www.joomlaeventmanager.net
GNU General Public License v3.0
25 stars 37 forks source link

PMS to author directly from JEM via UddeIM #1814

Open jojo12 opened 3 weeks ago

jojo12 commented 3 weeks ago

Actually the author is a joomla contact where you can use a contactform to mail to the author, I found in FAQ_Uddeim.pdf the following:

13.16 Eventlist Is there a way that members can contact the author by clicking on an uddeIM link. Yes, add this to views/details/tmpl/default.php: echo '<a href="index.php?option=com_uddeim&task=new&recip='. (int)$this->item->created_by.'">PM</a>';

EDIT: in the PDF there is ->row->created_by. This gave me errors: I had to change ->item->created_by

Because uddeIM 5.6 is nearby actualized, I would like to add this. But how?

EDIT 2: there is possible to add predefined text like: now you may write this /index.php?option=com_uddeim&task=new&recip=63&pm=Frage zu deiner Veranstaltung you may also use bbcodes: eg. &pm=[b]Frage zu deiner Veranstaltung[/b]

so now the "Frage zu deiner Veranstaltung" should appear at beginning of the textarea input field`

jojo12 commented 3 weeks ago

Then it would be good, to add eventtitle, date and venue, before users text. How to add this?

jojo12 commented 3 weeks ago

additional: Open new message dialog to user with username XX (this is independent from realname/username setting): http://yoursite/index.php?option=com_uddeim&task=new&runame=XX [&nouserlist=Y] when a user with username XX does not exist, XX is used untranslated in the input field, so you can also use "name 1,name 2" or "#userlist" as parameter (note: multiple recipients feature do not work with SEF). nouserlist parameter (optional): 1 = suppress user list, 2 = suppress connection list, 3 = suppress both lists add +4 when the TO field should be disabled e.g. 4 = disable TO field only, 5 = suppress user list AND disable TO field, and so on

jojo12 commented 2 weeks ago

My solution now: echo '<a href="index.php?option=com_uddeim&task=new&recip='. (int)$this->item->created_by.'&nouserlist=7&pm=Frage zu '. $this->escape($this->item->title). " am ". $this->item->dates . " um " . $this->item->times. '"> PM</a>'; in my case I get a PM grafik and I can add my question to the author