Skip to Content Skip to Menu

Arghh, I just did the same...

  • chris.n
  • chris.n
  • OFFLINE
  • Posts: 6
  • Thanks: 0
  • Karma: 0
18 years 4 months ago #16094 by chris.n
Arghh, I just did the same... was created by chris.n
Sure next time I will search this forum deeper ;-)

I did quite the same except I add the user id to the $userinfo object:

[code:1]Hack for uddeim 0.5 integration in Joomlaboard 1.1.2 Stable:

- File: /administrator/components/com_joomlaboard/admin.joomlaboard.php

* around L593: Add uddeim option
$pmlist[] = mosHTML::makeOption( 'uddeim', 'uddeIM');

- File: /components/com_joomlaboard/view.php

* around L351: Add user id for $userinfo object
$database->setQuery("SELECT a.posts,a.karma,a.signature,a.avatar,b.id,b.name,b.username,b.gid FROM #__sb_users as a LEFT JOIN #__users as b on b.id=a.userid where a.userid='$fmessage->userid'"«»);

* around L488: Add uddeIM block (same as myPMS)
/*let's see if we should use uddeim integration */
if ($sbConfig=="uddeim" && $fmessage->userid && $my->id) {
//we should offer the user a PMS link
//first get the username of the user to contact
$PMSName=$userinfo->id;
$msg_pms = "<a href=\"" . sefRelToAbs('index.php?option=com_uddeim&amp;task=new&amp;recip='.$PMSName) . "\"><img src=\"";
if($sbIcons) {
$msg_pms .= "$mls/modules/mod_sbicons/" . $sbIcons;
} else {
$msg_pms .= "$mls/components/com_joomlaboard/emoticons/sendpm.gif";
}
$msg_pms .= "\" alt=\"" . _VIEW_PMS . "\" border=\"0\" title=\"" . _VIEW_PMS . "\" /></a>";
}[/code:1]

Please Log in or Create an account to join the conversation.

Moderators: beatnantslabbikrileon
Powered by Kunena Forum