Tuesday 27 October 2015

Wordpress : User can access only own media in

User can access only own media in wordpress



add_filter( 'ajax_query_attachments_args', 'show_users_own_attachments', 1, 1 );

function show_users_own_attachments($query){
  $id = get_current_user_id();
  if( !current_user_can('manage_options') )
  $query['author'] = $id;
  return $query;
}

Plugin 'federated' is disabled. xampp

I have find solution for this error in xampp


1) On start MySQL service we have face some problem



2) Solution for this Error Plugin 'FEDERATED' is disabled.
     Just open Task Manager and go in Details tab then find mysqld.exe file stop this task.


3) Let's Re-try  start MySQL Service and see it's working.

Select multiple items like gmail Using shift button

Shift click select multiple items like gmail. you can change any types of elements like check , div, a, label, any html tags.

Download source code.

Multiple selected view

Selected thumb id

Magento: get category tree view

Magento get category tree view

Output View


Step 1 Goto theme/layout/catalog.xml put this code in file 


    <reference name="left">
     <block type="catalog/navigation" name="category_list_sidebar" template="catalog/navigation/categorymenu.phtml"/>
    </reference>

Step 2 Goto theme/template/catalog/ thane create navigation folder and put categorymenu.phtml file inside.


<?php
     $_helper = Mage::helper('catalog/category');
     $_categories = $_helper->getStoreCategories();
     $currentCategory = Mage::registry('current_category');
    ?>
    <div class="block block-list block-categorys">
        <div class="block-title">
         <strong><span>Category</span></strong>
        </div>
     <div class="block-content">
        <ul class="category_sub">
     <?php if (count($_categories) > 0){ ?>
    
                    <?php
     global $index;
     global $data;
    
     foreach($_categories as $_category){
    
     $check_child_class = check_child_par($_category->getId());
     $collaps = ($check_child_class)? "<span class='show-cat'>+</span>" : "";
     echo "<li class='".$check_child_class."'>";
     echo "<a href='".$_helper->getCategoryUrl($_category)."'>".$_category->getName();
     echo " (".product_count($_category->getId()).")";
     echo "</a>".$collaps;
     echo check_child($_category->getId());
     echo "</li>";
    
     }
     }
     function check_child($cid){
     $_helper = Mage::helper('catalog/category');
     $_subcategory = Mage::getModel('catalog/category')->load($cid);
     $_subsubcategories = $_subcategory->getChildrenCategories();
    
     if (count($_subsubcategories) > 0){
     echo "<ul>";
     foreach($_subsubcategories as $_subcate){
    
     $check_child_class = check_child_par($_subcate->getId());
     $collaps = ($check_child_class)? "<span class='show-cat'>+</span>" : "";
    
     echo "<li class='".$check_child_class."'>";
     echo "<a href='".$_helper->getCategoryUrl($_subcate)."'>".$_subcate->getName();
     echo " (".product_count($_subcate->getId()).")";
     echo "</a>".$collaps;
     echo check_child($_subcate->getId());
     echo "</li>";
     }
     echo "</ul>";
     }else{
     return "";
     }
     }
    
    
     function check_child_par($cid){
    
     $_subcat = Mage::getModel('catalog/category')->load($cid);
     $_subsubcats = $_subcat->getChildrenCategories();
    
     if (count($_subsubcats) > 0){
     return "parent";
     }else{
     return "";
     }
     }
    
     function product_count($cid){
     $products_count = Mage::getModel('catalog/category')->load($cid)->getProductCount();
     return $products_count;
     }
    ?>
    </ul>
     </div>
    </div>

How do i remove a pre exising customizer setting in wordpress theme

Remove a pre exising customizer setting in wordpress theme



add_action( 'customize_register', 'ruth_sherman_theme_customize_register' );
function ruth_sherman_theme_customize_register( $wp_customize ) {

$wp_customize->remove_control('header_image');
$wp_customize->remove_panel('widgets');

$wp_customize->remove_section('colors');
$wp_customize->remove_section('background_image');
$wp_customize->remove_section('static_front_page');

}

Regex remove html attributes from tags

You can remove any attribute from html tag using PHP regex

<?php

$html_content = '<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. <a href="http://www.lipsum.com/">Fusce</a>
Sit amet semper elit. <a href="http://krupalpatel92.blogspot.in/">In faucibus</a> in nulla a aliquam. Nulla ultricies eget erat non bibendum. Pellentesque a pellentesque mauris. Etiam purus urna, porttitor ut massa non, vehicula pretium nulla. Donec venenatis finibus nunc vitae euismod. Morbi auctor venenatis aliquet. Etiam consequat sapien efficitur augue tincidunt rutrum</p>';

$attr_name = "href";

$content = preg_replace('/(<[^>]+) '.$attr_name.'=".*?"/i', '$1', $html_content);
echo $content;

?>

Media Queries for Standard Resolutions


Below are the mobile Media Queries for Standard Resolutions

/* mobile*/
@media (max-width: 320px) { }


/*Smartphones*/
@media (max-width: 480px) { }


/* Smartphones to Tablets */
@media (min-width: 481px) and (max-width: 767px) { }


/* Tablets */
@media (min-width: 768px) and (max-width: 959px) { }


/* Desktop */
@media (min-width: 960px) and (max-width: 1199px) { }


/* Desktop */
@media (min-width: 1200px) { }

Friday 23 October 2015

Think Differently and See the changes

The Blind Boy
A blind boy sat on the steps of a building with a hat by his feet. He held up a sign which said: “I am blind, please help.”
There were only a few coins in the hat.
A man was walking by. He took a few coins from his pocket and dropped them into the hat. He then took the sign, turned it around, and wrote some words. He put the sign back so that everyone who walked by would see the new words.
Soon the hat began to fill up. A lot more people were giving money to the blind boy. That afternoon the man who had changed the sign came to see how things were.
The boy recognized his footsteps and asked, “Were you the one who changed my sign this morning? What did you write?”
The man said, “I only wrote the truth. I said what you said but in a different way.”
What he had written was: “Today is a beautiful day and I cannot see it.”
Do you think the first sign and the second sign were saying the same thing?
Of course both signs told people the boy was blind. But the first sign simply said the boy was blind. The second sign told people they were so lucky that they were not blind. Should we be surprised that the second sign was more effective?

Be thankful for what you have. Be creative. Be innovative. Think differently and positively.

Monday 19 October 2015

IT Companies in Ahmedabad, Gandhinagar (Updated 26-Oct-2015)




Iphone Developer Click here





S.No.CompanyAddressPers.ProfileSkills /Resumes of interest
1360 Degree Technosoft4,shalimar Complex, Paldi
Ahmedabad 380007
25  Android, iphone mobile application development.  
2Bandro TechnologiesParth Apartment, Gujarat Society
Paldi
Ahmedabad 380007
5  Web Development and Software Development Company offering services in Software Development, Web Development, Database Design, Oracle Performance Tuning and Search Engine Optimization.  C, C++, Java / J2EE, PHP / Mysql, SQL server, VC++ / MFC / COM, Visual Basic, Web Developer
Electronics, Hospitality / Travel, Media / Advertising  
3Bitplus Solutions Pvt Ltd603 Abhishree Avenue, Above Axis Bank, Nr. Nehru Nagar Circle,
Ambawadi,
Ahmedabad 380015
20  Providing IT solutions softwares like, Time attendance, Payroll Management, Access Control Systems, Patrol Guards Solution.  Most IT Skills
Accounts, Administration, Front Office / Receptionist  
4Bittech Systems Pvt LtdSatellite Road
Ahmedabad 380015
8  A web development company based in Ahmedabad, India started in 2007, working in close co-operation with its sister company BiteTech Limited located in Netherlands.  
5Bluefin Associates1006 Akik Tower, S. G. Highway, Nr. Pakwan II Restaurant, Bodakdev
Ahmedabad 380015
10  One of the leading US based MNC in the area of IT-Product Development and IT services company is opening up their development office at Ahmadabad, Gujarat and requires Middle Level Ruby on Rails developers.  
6Business KingB - 212, 2nd Floor, Nilkanth Palace, Opp. Seema Hall, 100FT Road, Satellite,
Ahmedabad 380015
10  A software company offering web application development, custom software development & outsourcing services.  Java / J2EE  
7Commercepundit Technologies Pvt Ltd4/B,Vardan Tower,Nr. Vimal House,Stadium Road,Navrangpura,
Ahmedabad 380009
23  Commerce Pundit is one stop solution for any E-commerce website needs. We help our clients to optimize their website to gain the traffic they need to increase their companys visibility and profitability  
8Creative Infotech P Ltd202 J B House, Nr. Ishwar Bhuvan, Navrangpura
Ahmedabad 380009
Software developer in VB for SME and website developer  
9Cygnet Infotech Pvt Ltd2, Manikyam, Opp Samudra Annexes,
Near Shilp Cross Roads, Navrangpura
Ahmedabad 380009
100  It is a leading offshore software development company which deals in Customized Software Development, Implementation support, Quality Assurance, hi-tech multimedia designing solutions, BPO and SEO.  
10Faqden LabsFF-1, Tirthjal Tower, Opp. ICICI Bank, Nr. Shivranjani X Road, Satellite,
Ahmedabad 380015
20  Mobile Applications development & Web Applications  
11Fourth Media Technologies Pvt LtdA-203, Krishna Center, Opp. Devashish School,
Nr. Satyagrah Chavni, S.G. Road
Ahmedabad 380054
30  It is a software and consulting company with over 8 years of experience in serving clients globally. We specialize in providing end to end e-business solutions across wide range of industries and verticals.  
12Gateway TechnolabsB/81, Corporate House, Judges Bungalow Road, Bodak Dev,
Ahmedabad 980054
800  Awarded with the BEST SOFTWARE COMPANY IN GUJARAT, CORP EXCEL AWARD by the Finance Minister and various other CORPORATE EXCELLENCE Awards, we have been serving our clients since a decade across 18 verticals, spanning 21 countries globally.  C, C++, Coldfusion, Dot net, SQL server, Web Developer  
13Grako Online Pvt Ltd17/18 Narayan Chambers,
Ashram Road
Ahmedabad 380009
5  We are proud to introduce ourselves as one of the hot and happening Online Shopping Portal from Ahmedabad. Grako promise is to offer the best products at the most reasonable rates.  C, C++, Java / J2EE, PHP / Mysql, Web Developer  
14Hem InfotechB/ 7, Prathmma Appts., 1 St Floor,
B/ H Dharnidhar Jain Temple, Vasna
Ahmedabad 380007
10  It is one of the most Dynamic Information Technologies Company. Since last few years, Hem Infotech has undergone a phenomenal rate of growth, establishing an enviable reputation for delivering professional and optimal quality solutions.  Computer operator, Device drivers, Networking
Administration, Electronics, Front Office / Receptionist, Marketing / Sales  
15HeXapartners Communications Pvt Ltd1 Samyak Apartment, Nr. Prerna Tirth Derasar, Jodhpur Satellite,
Ahmedabad 380058
50  We are please to introduce our self heXapartners Communications Pvt. Ltd as a leading software Company. We are offshore based I. T. Company.  PHP / Mysql  
16HorizonCore InfoSoft Pvt Ltd305, Shant Prabha Height, Opp. Vallabhwadi, Ram Baug, Maninagar.
Ahmedabad 380008
25  An Offshore web and Software development, Outsourced web and Product Development and PHP, ASP. NET, Java/ JSP/ Struts/ J2EE, Web Application Development Outsourcing Company in India, offering IT software services.  
17IFlair Web Technologies Pvt LtdIFlair Web Technologies Pvt Ltd.,Karma Tower,Nr.Paldi Bus Station
Ahmedabad 380007
40  It is the leading Website Design, Custom Web Application Development and Open source Development Outsourcing Company. At iFlair, we strive for better performance of both the employee and the organization, through various methods.  
18Infibeam1004, GNFC Info Tower
SG High Way
Ahmedabad 380054
50  An exciting new on line destination and community that focuses on selling cool new and used cars, bikes, scooters, mopeds and mobile phones at guaranteed lowest price.  
19Innova Systems (India) Pvt Ltd`4, Samyak, Gitabaug Soc., Paldi
Ahmedabad 380007
50  ISO 9001:2008 Certified, Innova Systems (India) Pvt Ltd established in 1992. We provide various services like IT Support System, Software Development and also in Retail Sector. We have an International as well as Local Clients.  
20Innovative Softech Pvt Ltd304,305 Heritage Plaza
Opp Gurukul Towers
Ahmedabad 380052
6  It is running TCIL gurukul a franchise of TCIL a govt of india enterprise. Aprt from training it is also developing websites for companies. The present openeings are for s/ w development.  Dot net, Java / J2EE, Web / Graphic Design, Web Developer  
21Insigno Quipment TechnologiesA-212, Shivalik Corporate Park ,
Near IOC Petrol Pump, Satellite,
Ahmedabad 380015
50  Focuses on Research & Development on Mobile Device Management System, Taxi industry products and other automotive product domains.  
22ISummation Technologies304, SHAPATH-3, Nr. GNFC Info Tower,
S. G. Road, Bodakdev
Ahmedabad 380054
35  CMS DMS KMS company | Cold Fusion. Net web application development developers programmers | Content Management System | Document Management system| Knowledge Management system | E-commerce  Coldfusion, Dot net, ERP, SQL server, Visual Basic, Web / Graphic Design, Web Developer
Most non-IT Skills  
23ITechno Solution101,Mahashakti Complex, Opp.Loha Bhavan,
Nr.Old High Court, Income Tax
Ahmedabad 380009
10  Its offers you the complete range of web design & development solution. Our highly experience team consists of experts specialized in every branch Web Design, ASP Web Development, PHP Web Development, Content Management System(CMS)  
24IWebAlley SolutionsOrange Mall, Chandkheda
Ahmedabad 382424
10  Iweballey, a web development company, is a pool of skilled professionals. Providing offshore services is our specialty so we have gathered the talented and experienced professionals to work in team for providing ultimate web services.  
25Krutarth InfosysD/ 302, Sagun Plaza, Opp. Goyal Plaza,
Judges Bunglow Road,
Ahmedabad 380015
100  Its Software Outsourcing Company provides services like offshore outsourcing, Web Development, Software Development, ASP. Net Programmers, offshore development, C# programmers to clients in United States, canada, australia and Europe.  
26Majolee InfoTechA-424/425, Swaminarayan Avenue
AEC Cross Road, Naranpura
Ahmedabad 380013
5  A web-development company  ASP, PHP / Mysql, Web Developer  
27Message InfotechA-501 Wall Street 2 Opp Orient Club
Near Gujarat College Ellisbridge
Ahmedabad 380006
13  Solution provider for Web Design & Development, E-Commerce Development, CMS Website Design. We provide various technologies like PHP, WordPress, Joomla etc.  
28MindQuad Solutions Pvt Ltd203, President Plaza, Nr. Thaltej Circle, S.G. Highway
Thaltej
Ahmedabad 380054
15  Microsoft Dynamics Partner ERP (BE), product based company, Software, Website Development and product based company  
29Morpheous304, Sarita Complex,
Off C G Road
Ahmedabad 380006
15  Design and development of mobile applications for iphone 4.0, iphone 3GS, ipad, Android and Blackberry.  PHP / Mysql, Web / Graphic Design, Web Developer  
30Omicron Info Solutions202,Dev Sruti Complex,Opp. Medisurge Hospital,
Lions Hall Road,Mithakhali,
Ahmedabad 380006
10  A provider of web site development, Website Design, Content writing and Mobile Applications Development.  
31Prime Technologies203, Shantam Complex,Opp. Navneet Publication,
Gurukul Road
Ahmedabad 380052
15  Completed IT Solutions - Customized Product Development, System Integration, Data Processing, Payroll Processing Services, Consulting Services, Various types of Taxation solutions, Web Design, Flash Animation, Logo Design.  Call centre, Web / Graphic Design
Front Office / Receptionist, Marketing / Sales  
32Pyther Innovations Private Limited919-921, Devpath Complex, 9th Floor, Near Lal-Bunglow, C. G. Road,
Ahmedabad 380006
20  We are a startup company specializes in Web2. 0 based hosted ERP Solutions, our work includes technologies Spring, J2EE, GWT, EJB, Java Servlets based enterprise applications.  
33Real Infoware Pvt Ltd2D, Surayrath, Opp. Whitehouse
Panchvati
Ahmedabad 380007
50  It is engaged in today's most challenging and sophisticated field of information technology. We are one of the worlds largest on line marketplaces which were accomplished for Fortune 500 companies.  Computer operator  
34Regius IT Solutions9-B, Vardan Tower
Near Stadium Petrol Pump
Ahmedabad 380009
20  IT Services  
35Roars Technologies Pvt Ltd402, Jyoti Complex 4th Floor, Nr. Parekhs Hospital
Shyamal Cross Roads
Ahmedabad 380015
25  Web development and design studio, specializing in social media, Iphone Development and Custom Made Solutions. We provide innovative, exciting websites and rich social media solutions for UK, USA, Dubai, Australia businesses, including major big brands  
36Saltriver Infosystems Private LtdB 11 Premium House
Op. Gandhigram Railway Station
Ahmedabad 380009
40  Specializes in Wireless and Information Technology development. Leading Mobile and innovative solution provider  
37Samvith Technologies203, Virindavan Apartment, Satellite
Ahmedabad 380 015
5  We are in the software integration and doing rfid projects  
38Saturn Techweb Pvt Ltd301,Sarthik Square,Near GNFC Info Tower,
S.G.Highway
Ahmedabad 380054
40  We offer software services in the areas of internet, intra net and e-commerce and have expertise in the areas of Application Development for UNIX, Win 32 and related platforms like C, C++, Java Visual Basic etc.  Software testing, Web Developer
Marketing / Sales  
39Techfreak DevelopersA-710 Smita Towers, Opp Vishramnagar Garden,
Nr. H. B. K. School, Gurukul,
Ahmedabad 380052
5  We are offshore based IT company and used to work on the projects of USA, UK, Australia clients. We work on PHP, Joomla, OScommerce etc  
40Unmatched Solutions Pvt Ltd203, Shantam Complex, Opp. Navneet Publication, Gurukul Road,
Ahmedabad 380052
20  It is in a position to offer complete business solutions to suit the demanding needs of the industries like Pharmaceuticals, Healthcare, R & D, Stock Markets, Information Technology, NGO, Government Sector, Textile, Retailers, Hospitality, FMCG etc  
41Varologic Technologies Pvt Ltd103, Tower 2
103, Info Tower 2
Gandhinagar 382007
25  Software and web development company  
42Verve Systems Pvt Ltd607, Venus Atlantis, 100 Ft Road,
Anandnagar Road,
Ahmedabad 380015
85  It is a Global Consulting and Software Development organization with a strong focus in Offshore Software Development and Outsourced IT Solutions provision.  Most IT Skills  
43Vstreet Netserve Private LimitedFf1 Anshi Avenue Building Polytechnic Road
Ahmedabad 380015
15  Game development, hosting, design etc