| 
Welcome, Guest

link to new message to specific user
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: link to new message to specific user

link to new message to specific user 2 years, 3 months ago #122826

  • carsten888
  • carsten888
  • ONLINE
  • Expert Boarder
    Expert Boarder
  • Posts: 132
  • Karma: 1
I want to link to the 'new message' page and have a specific user selected to mail to.

I tried this code
index.php?option=com_comprofiler&task=emailUser&uid=780&Itemid=30


as this is mentioned in this post:
www.joomlapolis.com/component/option,com...d,58/id,84673/#84673

but it does not seem to work.

What am I doing wrong?

joomla 1.5.15
CB 1.2.1
Uddeim 1.9
The topic has been locked.

Re:link to new message to specific user 2 years, 3 months ago #122832

  • slabbi
  • slabbi
  • ONLINE
  • Moderator
    Moderator
  • Posts: 2890
  • Karma: 127
Please check the FAQ. There is a section that describes how to call uddeIM from third party components. There is no need to go through comprofiler (CB).
uddeIM & uddePF Development
Google+ profile: plus.google.com/u/0/b/117839921924782901705/
CB Language Workgroup
CB 3rd Party Developer
The topic has been locked.

Re:link to new message to specific user 2 years, 3 months ago #122836

  • carsten888
  • carsten888
  • ONLINE
  • Expert Boarder
    Expert Boarder
  • Posts: 132
  • Karma: 1
I really try to work with your faqs each time, but the search just never gets me where I need to.

anyway, I fixed it like this:
url:
index.php?option=com_uddeim&task=new&Itemid=100150&fid='.$profile_id.'

code in site-template:
 
if(JRequest::getVar('option', '')=='com_uddeim' && JRequest::getVar('task', '')=='new' && JRequest::getVar('fid', '')){
//get friends name
$fid = intval(JRequest::getVar('fid', ''));
$database->setQuery("SELECT username "
."FROM #__users "
."WHERE id='$fid' "
."LIMIT 1"
);
$friends_name = $database->loadResult();
?>
<script type="text/javascript">
var select_uddeim_friend_jQuery = jQuery.noConflict();
select_uddeim_friend_jQuery(document).ready(function() {
//select the friend from the url
friends_name = '<?php echo $friends_name; ?>';
document.sendeform.userlist.value = friends_name;
document.sendeform.input_to_name.value = friends_name;
});
</script>
<?php
}
 

this uses jQuery, but it can be used with some basic javascript onload event.
The topic has been locked.

Re:link to new message to specific user 2 years, 3 months ago #122838

  • slabbi
  • slabbi
  • ONLINE
  • Moderator
    Moderator
  • Posts: 2890
  • Karma: 127
Maybe we are talking about different FAQs:

Especially for you:

13.1 Calling uddeIM from a 3rd party program
How can I call uddeIM from my own component/module?
You can use following links to call uddeIM from your component or module:
Call settings dialog when "show settings" is off in backend (no menu link is shown in uddeIM):
http://yoursite/index.php?option=com_uddeim&task=settings
Open new message dialog to user with userid XX:
http://yoursite/index.php?option=com_uddeim&task=new&recip=XX [&nouserlist=Y]
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
uddeIM & uddePF Development
Google+ profile: plus.google.com/u/0/b/117839921924782901705/
CB Language Workgroup
CB 3rd Party Developer
The topic has been locked.

Re:link to new message to specific user 2 years, 3 months ago #122843

  • carsten888
  • carsten888
  • ONLINE
  • Expert Boarder
    Expert Boarder
  • Posts: 132
  • Karma: 1
index.php?option=com_uddeim&task=new&recip=XX 

that would have saved me some work.

Maybe we are talking about different FAQs

so how to go about finding this faq?
I searched for 'uddeim link' and 'uddeim link to user'. On each search I get 5-6 categories, altogether containing about 100 articles. Sifting through all that takes more time then me making a workaround.
The topic has been locked.

Re:link to new message to specific user 2 years, 3 months ago #122846

  • slabbi
  • slabbi
  • ONLINE
  • Moderator
    Moderator
  • Posts: 2890
  • Karma: 127
Its in the README folder of the uddeIM package or you could have read the sticky that points to the FAQ.
uddeIM & uddePF Development
Google+ profile: plus.google.com/u/0/b/117839921924782901705/
CB Language Workgroup
CB 3rd Party Developer
The topic has been locked.
  • Page:
  • 1
  • 2
Moderators: slabbi
Time to create page: 1.16 seconds