<script type=”text/javascript”> jQuery(document).ready(function(){ jQuery.fancybox.open({ href: ‘<?php echo $this->baseurl(); ?>/user/index/verifypopup’, type: ‘ajax’, wrapCSS : ‘fancybox-emailverify’, closeBtn : false, helpers : { overlay : {closeClick: false, css: {‘z-index’: ‘8010 !important;’} } }, keys : { close : null } }); }); </script>
prevent parent click event
<script type=”text/javascript”> jQuery(‘#friendul’).click(function(e) { e.stopPropagation(); });
How to get desktop files in ubuntu terminal
smarttips@smart-System-Product-Name:~/Desktop$ cd /home/<username>/Desktop Example:marttips@smart-System-Product-Name:~/Desktop$ cd /home/smarttips/Desktop
Socialengine video uploading source code
public function jquerycreateVideo($params, $file, $values) { if( $file instanceof Storage_Model_File ) { $params[‘file_id’] = $file->getIdentity(); } else { // create video item $video = Engine_Api::_()->getDbtable(‘videos’, ‘video’)->createRow(); $file_ext = $file[‘extension’]; $video->code = $file_ext; $video->type…
Signup or login through facebook
<div><a href=’javascript:void(null);’ onclick=”login();”>Signup/ login through facebook</a></div> <div id=”fb-root”></div> <script src=”http://connect.facebook.net/en_US/all.js”></script> 1. Include the above facebook all.js first. <script> 2. Initialize the facebook app settings. jQuery(function() { FB.init({ appId : ” <12356666>”, status : true, // check login status cookie : true, // enable cookies to allow the server to access the session xfbml : true //…
