- Forum||Hilfe & Support
- /
- KISS Support Forum
- /
- Software Forum
- /
- KISS Advertiser
- /
- (solved) Almost integrated jomsocial features
(solved) Almost integrated jomsocial features
Hi Zorro,
you\'re welcome.
Nice to hear that:-)
Perhaps another possibilty would be a radiobutton in the backend or something comparable.
www.face-list.de/45y8
I ♥ Joomla
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
Hi LVAdmin,
thank you for your valuable work. We will try to integrate the code to the Advertiser.
Es gibt genau 10 Arten von Menschen. Die, die Binärcode verstehen und die anderen.
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
Search this code:
Ca. 3000:
<td>
<?php echo $row->contact_name;?>
After this insert that:
<br>
<?php
if ($user_id != $row->user_id && $complaints == 1) {
$db = &JFactory::getDBO();
$query = \"SELECT(thumb) FROM `#__community_users` WHERE `userid` = \'{$row->user_id}\' \";
$db->setQuery( $query );
$userAvatar = $db->loadResult();
echo \"<a href=\'index.php?option=com_community&view=profile&userid=\".$row->user_id.\"&Itemid=##\'><img src=\".$userAvatar.\"></a>\";
}
?>
And then the Avatar appears:-)
Below with Messaging:
<br>
<?php
if ($user_id != $row->user_id && $complaints == 1) {
$db = &JFactory::getDBO();
$query = \"SELECT(thumb) FROM `#__community_users` WHERE `userid` = \'{$row->user_id}\' \";
$db->setQuery( $query );
$userAvatar = $db->loadResult();
echo \"<a href=\'index.php?option=com_community&view=profile&userid=\".$row->user_id.\"\'><img src=\".$userAvatar.\"></a>\";
}
?>
<br>
<?php
if ($user_id != $row->user_id && $complaints == 1) {
$jspath = JPATH_ROOT.DS.\'components\'.DS.\'com_community\';
include_once($jspath.DS.\'libraries\'.DS.\'core.php\');
include_once($jspath.DS.\'libraries\'.DS.\'messaging.php\');
// Add a onclick action to any link to send a message
// Here, we assume $usrid contain the id of the user we want to send message to
$onclick = CMessaging::getPopup($row->user_id);
echo \'<a href=\"javascript:void(0)\" onclick=\"\'. $onclick .\'\">PN schicken</a>\';
}
?>
www.face-list.de/45y8
I ♥ Joomla
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
By the way,
I found the documentation there:
www.jomsocial.com/docs/3rd_Party_Component_Integration
But the only userid I get, is my own with the logged in profile.
www.face-list.de/45y8
I ♥ Joomla
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
hello i\'ve been trying to integrate jomsocial avatar and messaging for a few minutes. I think it\'s almost done, but I have a problem with getting userid.
Is it a great problem to make ksadvertiser getting this id?
best regards
tom
PS: here is my result:
www.don-city.de/dc-de/index.php?option=c...er&id=58&task=viewad
www.face-list.de/45y8
I ♥ Joomla
Bitte Anmelden oder Registrieren um der Konversation beizutreten.