Update query using Socialengine or zendframework. Engine_Db_Table::getDefaultAdapter()->update(‘engine4_activity_actions’, array(‘like_count’=>sizeof($oLikes)) , array(‘action_id = ?’=>$iId) );
Fancybox intilialization and content loading from a URL
<script type=”text/javascript”> jQuery(‘document’).ready(function() { jQuery(‘#delete’).click(function(e) { e.preventDefault(); var selected_ids = new Array(); jQuery(“input:checkbox:checked”).each(function(){ selected_ids.push(jQuery(this).val()); }); if (selected_ids.length > 0){ var oDeleteUrl = ‘<?php echo $this->baseUrl();?>/messages/delete/message_ids/’+selected_ids+’/place/inbox’; jQuery(“#delete”).fancybox({ ‘type’: ‘ajax’, ‘href’ : oDeleteUrl }); } }); }); </script>
get selected radio button value using jquery
Simply use the following code jQuery(‘.global_form_popup #submit’).click (function(e){ var chkdValue = jQuery(‘input[type=”radio”]:checked’).val(); alert(chkdValue); });
check if subject is set in socialengine
Check one subject is set in socialengine if(Engine_Api::_()->core()->hasSubject()) { } We can use the above code is for avoiding multiple subject set in socialengine.
