(solved) Almost integrated jomsocial features

Mehr
17 Sep 2010 14:11 #2233

Hi Zorro,

you\'re welcome.
Nice to hear that:-)

Perhaps another possibilty would be a radiobutton in the backend or something comparable.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
17 Sep 2010 11:48 #2229

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.

Mehr
16 Sep 2010 22:11 #2225

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>\';
  }
?>

Letzte Änderung: 16 Sep 2010 22:36 von LV_Admin.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
16 Sep 2010 16:53 #2223

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.

Letzte Änderung: 16 Sep 2010 17:24 von LV_Admin.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
16 Sep 2010 16:47 #2221

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

Letzte Änderung: 16 Sep 2010 22:09 von LV_Admin.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Powered by Kunena Forum
Wir benutzen Cookies

Wir nutzen Cookies auf unserer Website. Einige von ihnen sind essenziell für den Betrieb der Seite, während andere uns helfen, diese Website und die Nutzererfahrung zu verbessern (Tracking Cookies). Sie können selbst entscheiden, ob Sie die Cookies zulassen möchten. Bitte beachten Sie, dass bei einer Ablehnung womöglich nicht mehr alle Funktionalitäten der Seite zur Verfügung stehen.