DIV – Overflow Hidden

Today I got a problem to show product title in 2 lines on product’s detail page….. After some R&D……………….. I got solution by CSS to style a DIV with height for 2 line text and then overflow: hidden 🙂 I also used wordpress to wrap the text in next line for product’s description in 5 … Read more

TinyMCE load ajax

Today I got problem to load TinyMCE as dynamic loaded textareas by Ajax? Solution: <a href=”javascript:void(0)” onclick=”ajaxEdit(); showEditor();”>Edit Content</a> here ajaxEdit() is ajax function where textarea loaded by ajax as html response. here we have use showEditor(); to load TinyMCE editor … page loaded by Ajax <script> function showEditor() { setTimeout(“initEditor(‘newsdesc’)”,4000); } tinyMCE.init({……………………… …………………………………………………}); function … Read more

Hindi Text Editor

akIndicPlugin is very useful for Indian language like Hindi, Marathi, Bengoli, Gujarati, Malyalam, Telugu and Punjabi…. Source: http://amiworks.co.in/talk/akindicplugin-for-tinymce-and-joomla/ http://www.vishalon.net/IndicResources/IndicIME/tabid/244/Default.aspx

Backup Amazon S3 with PHP

This is the source code to backup/download Amazon S3 Bucket’s multimedia files to other server by PHP… here $bucketurl is XML url of Amazon S3 bucket with full ACL. $folder is path of the server where S3 files to store. This script will download all files in Amazon bucket to other server Php-Code:  1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  <?php … Read more

amcharts – dynamic data generated with PHP

AmCharts is a set of Flash charts for your websites and Web-based products. AmCharts can extract data from simple CSV or XML files, or they can read dynamic data generated with PHP, .NET, Java, Ruby on Rails, Perl, ColdFusion, and many other programming languages. Source: JavaScript Charts & Maps Download amCharts 4 Help: http://www.appfire.com/appfire-flashcharts-plugin/FusionChartsFree/Contents/ChartSS/XML_Col2DLineDY.html

Decrypt \x3d

How to decrypt string html like below: <br /> [“/imgres?imgurl\x3dhttp://crshare.com/wp-content/uploads/auto_save_image/2009/01/232021vkV.jpg\x26imgrefurl\x3dhttp://crshare.com/tag/joomla-templates/\x26usg\x3d__2r0BoANxQQ1IhXj0-dAyU-HVVYI\x3d\x26h\x3d350\x26w\x3d500\x26sz\x3d30\x26hl\x3den\x26start\x3d81\x26sig2\x3d1MTsUlM1eoJ_j8K6hvLdRQ\x26um\x3d1″,””,”c8m2Qp_jYzo4UM:”,”http://crshare.com/wp-content/uploads/auto_save_image/2009/01/232021vkV.jpg”,”130″,”91″,”Although the \x3cb\x3eJoomla\x3c/b\x3e community”,””,””,”500 x 350 – 30k”,”jpg”,”crshare.com”,””,””,”http://tbn2.google.com/images”,”1″,[],””]<br /> $html=html_entity_decode(urldecode(str_replace(‘\x’, ‘%’, $html)),ENT_QUOTES, “UTF-8”); MP3 file download link $mp3_dlink = preg_replace(‘/ /i’, ‘%20’, $mp3_link);