The Techjoomla Blog

Stay updated with all the latest happenings at Techjoomla. From news about the developments in your favourite extensions to Tips & Tricks about the Joomla CMS, Framework & Development.

Beware of these mistakes while coding in PHP

Beware-of-these-mistakes-while-coding-in-PHP

As a PHP developer, I am sure we all write some lines of code every day where we use library functions, creates new functions, Writes for, for each loop and also we use some statements and many more things that we need to do for solving a problem by PHP. Do we use the right library functions in the right place? Do we write correct loops? In my opinion, we do common mistakes while doing these things, so what are those mistakes and how to get rid of it, what will be the solutions for it? These are the common questions that arise in every PHP developer’s mind while coding.  

I will be covering these common mistakes and their solutions in a series of blogs, Let’s start with the first blog of this series.

Misunderstandings of isset()

As the name suggests, isset() function returns true if the item exists and returns false if the item does not exist but it returns false for null values too. This turns into a problematic behavior in some cases and becomes a common source of problems.

Continue reading
0
  489 Hits
  0 Comments
489 Hits
0 Comments

Difference between let and var keyword in JavaScript

Difference-between-Let-and-Var-in-JS

When any developer is working in JavaScript, He/She often uses let, var keywords. Most of us use it randomly as there has been a lot of confusion regarding the use of let and var in JavaScript. So, I am trying to clear most of the confusion by presenting one example.

So let’s check the difference between `let` and `var `with one example:

Continue reading
0
  1789 Hits
  0 Comments
1789 Hits
0 Comments

Tips for your Crowdfunding success

Tips for your Crowdfunding success

Achieving the goal amount of a Crowdfunding campaign in that particular time is crucial. The reason why it is crucial, because some campaigns are time bound. People fall short to reach out to the masses and end up failing the campaign.

Key factors to achieve your goal!Be Heard and Found

Getting noticed is where everything starts. You should leave no path for your campaign to get noticed whether it is through word of mouth or Social Media Platforms, Advertisements (usually the budget is low, so most of them don’t go for this) and having a campaign website with a strong SEO so that Search Engines help you get noticed ;).

There is another cool Idea you can invite people to contribute to your campaign. So if it is a personal email with some information about your campaign and a link to the site can help. Make sure that the message you send does not look like a spam email.  Invitex is one such extension for Joomla! which will help you send such invitations with ease.

Continue reading
2
  4331 Hits
  0 Comments
4331 Hits
0 Comments

In Conversation with Erik Folberth: From Creating a product to Launching it!

In Conversation with Erik Folberth: From Creating a product to Launching it!

Have you ever wondered what are the best practices in planning a new concept or idea and what goes into the process of turning ideas to realities?

We ourselves do a lot of Product Development here at Techjoomla as well as at our parent company. We have closely seen the process of  product development from ideation to production and marketing it. So it was very interesting to get another perspective at this when we interviewed  Erik Folberth from thePHPfactory (one of our partners). Let's see what he has to say!

What is your first thought on creating a new product?

It's always a good idea to analyze the mistakes from the past when working towards the creation of a new product, or of a new website.

Continue reading
7
  3372 Hits
  0 Comments
3372 Hits
0 Comments

jQuery Basics - How to Set values of Form Inputs using jQuery?

jQuery Basics - How to Set values of Form Inputs using jQuery?

In the previous blog on JQuery we saw - “How to Get Values of Form Inputs Using jQuery”.

In this post we will cover how to set up values for Form Inputs using jQuery for form fields including inputs, textarea, radio, single select list and multi-select list.

Below is sample code that shows a form with all types of form inputs for input, textarea, selects, radios, checkboxes.

Continue reading
17
  6899 Hits
  0 Comments
Tags:
6899 Hits
0 Comments

Migrating from Bootstrap 2 to Bootstrap 3? Let’s make your Job Simple!

Migrating from Bootstrap 2 to Bootstrap 3? Let’s make your Job Simple!

We just finished transforming one of our extension Quick2Cart from Bootstrap 2 to Bootstrap 3. It was a fun task to do. We thought of sharing some of the migration stuff with you.

Before starting the migration

You need to learn Bootstrap 3 coding standard, what’s new, what’s removed, major class changes.

To know everything, please go through the following guidelines and documentation links.

Continue reading
3
  4675 Hits
  0 Comments
4675 Hits
0 Comments

CSV export using php

CSV export using php

A CSV referred to Comma separated values. This is widely supported format for transferring data between applications. Data can be exported with a .CSV file and it also can be imported by uploading .CSV file. However, in this blog we’ll see the implementation of CSV exports using php. Implementing a code for exporting data to CSV is useful in many applications. We have written this code in our product JGive to export donor data.

Note: This blog is purely targeted to developers!

Continue reading
8
  2545 Hits
  0 Comments
2545 Hits
0 Comments

How to get ‘btn-group’ buttons in plain html?

How to get ‘btn-group’ buttons in plain html?

We all know how to get those nice colored buttons for Radio form field type, its by adding class="btn-group” in the xml argument for that field.

There can be an exception to this, if you are not able to have a form field in your view? And you still crave for those nice colored buttons?

Here is how you can have those buttons with some plain HTML, CSS and bootstrap!Following is a sample HTML for a radio field for yes no option which, you will need in your layout file.

 

Continue reading
1
  5309 Hits
  0 Comments
Tags:
5309 Hits
0 Comments

Ways to delete documents in Solr!

Ways to delete documents in Solr!

Solr is a open source standalone enterprise search server. It comes with great features like full-text search, auto suggest, faceted search, database integration and many more. To know more you can visit http://lucene.apache.org/solr/.

Solr extension is a light-weight, very fast and feature-rich library which allows to communicate with the Apache Solr Server in PHP. To know more solr-php methods visit http://php.net/manual/en/book.solr.php

We have been using Apache Solr in one of our service project. The project is a website which is basically collection of artefacts, posters and other memorabilia from across the globe, importantly India. It currently has about 75,000 objects in our database. In addition, there are roughly 100,000 items in ‘masterlists’. Within the masterlists we have the list of people, films etc, which are the related data for the objects.

Continue reading
5
  9941 Hits
  0 Comments
9941 Hits
0 Comments

How to generate video thumbnails in PHP?

How to generate video thumbnails in PHP?

A Video link without a thumbnail is like a smartphone without a camera, you can use it but no one would like to use it. If you want your visitors to see your video, you need to make sure that your video link has a thumbnail which is forcing users to click on the link.

How can we do this?

Continue reading
22
  30308 Hits
  0 Comments
30308 Hits
0 Comments

Roadmap for the Mobile App v2.0

Roadmap for the Mobile App v2.0

Hiya Everyone!

First, thank you very much for all the suggestions and improvements you suggested to all of the apps. As promised, putting down here the features and plan for the v2.0 of the combined app (P.S. It's v2.0 directly to avoid any version naming confusion). The combined app will sport Easysocial, Easyblog & JGive to start with. Here's a list of features for each section that will be available in v2.0. Most of these features were already available in the respective singular apps, but since the combined app is a significant rewrite, listing down all the features.

We're still working out a date for this release, and late October / early November seems to be working out. I'm still discussing with the Stackideas team in regards to the Easysocial APIs, will update with a date soon!

Continue reading
11
  4215 Hits
  0 Comments
4215 Hits
0 Comments

jQuery Basics - Getting Values of Form Inputs Using jQuery

jQuery Basics - Getting Values of Form Inputs Using jQuery

As a web developer how many times we need to get values entered into text-boxes, text-areas or we need to get selected option from a dropdown select list or from radio buttons. As a novice programmer we all struggle with this situation several times.

In this post we are quickly going to cover how to deal with getting entered or selected values from all types of form fields including inputs, textarea & selects.

Below is sample code that shows a form with all types of form fields for input, textarea, selects, radios, checkboxes. And as you type or select options for those fields, selected options or entered text is shown.
To get values we will be using jquery.

Continue reading
29
  46359 Hits
  0 Comments
46359 Hits
0 Comments

What's a bad Blog post and why not to write one..

What's a bad Blog post and why not to write one..

Blogs are the one of the biggest and fastest growing medium of publishing on web..Blogs have brought in a personal publishing revolution …Blogs this Blogs that.. Blah Blah Blah !!!

You will find similar lines all over the web glorifying blogging. And actually all of them are very much true. Blogging has changed mass media in a big way and is still doing so now.

Blogging was one of the earliest manifestations of Individual freedom of expression on the Internet and one that has had a big impact on life outside the Internet as well.

The low entry barrier to blogging however also often leads to generation of a mass of low quality content on the web, the authenticity of which can be doubtful. With the growing importance of blogs in online marketing and the stress given on ‘Content Strategy’ and ‘Content Marketing’, recently there has been a huge infusion of content on the web.

Continue reading
4
  23317 Hits
  0 Comments
23317 Hits
0 Comments

Clone html element using jquery

Hello!

Guys, This blog is about adding multiple html elements using jQuery and display the cloned field. If you are a developer, you might be interested in this. Hope this Helps! :)

So this is Quick guide to create multiple fields as many as with in minimum efforts

Continue reading
4
  11299 Hits
  0 Comments
11299 Hits
0 Comments

Sorting Nested List using jQuery

Hello!

This is informative Blog for Sorting Nested List using jQuery. 

If you want to sort elements of UL/LI in another UL/LI using drag and drop, Here is a quick guide to achieve that.

Continue reading
0
  8584 Hits
  0 Comments
8584 Hits
0 Comments

Amazon Cloudfront or S3 - What should I use ?

I've often seen confusion about these two - Amazon S3 vs Cloudfront. People do get confused on what is the best option for them, and I don't blame them. The whole Amazon jungle is a tough one to navigate around! I always find myself writing long emails or having long conversations explaining the difference. We were very recently planning a Joomla 1.5 -> Joomla 3 migration for a news/video site and a part of the plan was of course performance improvements. Eventually, this question did come up. So here's a quick primer on how to decide what's the right thing for you.

Amazon S3

S3 is the name of Amazon's file storage service (Remember ImageShack or Photobucket ?). You upload your files - images, video, CSS, javascript, documents and any file to Amazon servers rather than storing that on your server. So what S3 really does is improve your storage costs since storing such media on S3 is cheaper, especially you are on SSD storage. So S3 isn't exactly a site optimization service. However, most often than not, this does end up being a performance improvement due to 2 reasons

Continue reading
2
  18133 Hits
  0 Comments
18133 Hits
0 Comments

Getting back your DISQUS comments after a site migration

gettingbacktoyourdisquscommentsafterasitemigratio_20180417-093317_1

Lot of us love to have DISQUS comments on our sites. It's one of those hosted commenting systems that adds virality to all content and comments on your site. Techjoomla uses DISQUS too, and during our recent site upgrade we had a challenge ensuring that our comments get carried over since the migration meant that the links/URLs to all our pages got changed. We were really glad that we chose DISQUS, since they have some really useful tools for migrating comments when changing URLs. 

We wrote a neat little script that could read the export file that DISQUS generates and find out the 404s. Then we added these 404 links as aliases to the correct SEF URLs. Re-ran the script to get a mapping file that could be uploaded to DISQUS. Done!

Here are detailed steps along with links to resources to get the job done!

Continue reading
0
  7815 Hits
  0 Comments
7815 Hits
0 Comments