Saturday, March 12, 2016

WordPress Contact Form 7 Save to Database - Better Plugin

Contact form 7 is one of the major plugins our there for WordPress to building forms.
It has good of features like send emails. you can write code directly or through user interface. handle html tags.

But one of the missed feature is save contact form submission.

Out there few plugins to extend CF7 functionality and save submitted forms.

But lots of them has drawbacks,
Some of them require fees, Some has donation buttons everywhere.

So i create this plugin which is really simple & professional UI and it does the job. You can download from WordPress plugins repository:


https://wordpress.org/plugins/cf7save-extension/


Screenshots:

Wednesday, July 8, 2015

Mojoportal Web.config Error 500 on

I just wast a day to figure out what's wrong with the Mojoportal CMS.
Actually its not with the CMS its my IIS Server.
It didn't recognize the <handler> because it missed some requirements to be install in the IIS.

Error

HTTP Error 500.19 - Internal Server Error

Module   IIS Web Core
Notification   BeginRequest
Handler   Not yet determined
Error Code   0x80070021

Config Source:

 1057:       <!-- Handlers for IIS 7.0 Integrated mode -->
 1058:       <handlers>
 1059: 

Go to IIS Manager and click on the website, there is an icon called handlers click that and if it gives you an error on web.config file that's the issue.

"Config Error: This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".

Fix
Go to "Turn windows features on or off"
Expand "Internet Information Services" > "World Wide Web Services" > "Application Developmetn Fetures" and make sure ASP ASP.net 4.5 3.5 and .Net Fetures and other requirement installed correctly.

Why
Requirement to run Mojoportal is Missing in the IIS

Thursday, May 28, 2015

Configure Cordova/Phonegap in IntelliJ IDEA Properly

This article for those who try and didn't success at the first time. If you are a beginner and came first time. just follow this steps .

I wasted 2 days. try to configure Cordova/Phonegap to Intellij IDEA and there are simple steps you have to follow. if you have problems in config. this article may help you.

You need,

  • Intellij IDEA ( This actually works on PHPStorm, WebStorm or Android Studio. if you have one of those you will be fine )
  • Android SDK
  • Java JDK

1. Install Java JDK.

2. Install Android SDK.https://developer.android.com/sdk/installing/index.html ( standalone SDK is the one )

3. Install the IDE and Set Up the required plugins ( i'm not gonna cover this, there is a pretty good article out there posted by official JetBrains Guys Link: https://confluence.jetbrains.com/display/IntelliJIDEA/PhoneGap%2C+Cordova+and+Ionic

After you install the Android SDK run SDK Manager and download your targeted api.
Example: If you build an App that's compatible for Android 5.1  download that. i recommend to download the latest api

3 Setup the Environment Variables

Open the CMD type below commands individually, if you receive 'command is not recognized' error you have to setup the ENV variables.

Google how to setup env for all of those commands. 

after you done restart your IDE, you are good to go.

if you see an error. just hit the run button and in the console it gives you the error description.




Wednesday, March 25, 2015

Wordpress: Pagination with WP_Query

Note: This is not for beginners, you need some knowledge of wordpress development


Code:This code covers: customs loop, propaly add pagination, properly trim the wp_content


<!-- add this line for pagination and in wp_query -->
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ?>

<!-- now add the $paged to wp_query -->
<?php $wp_query = new WP_Query(array('posts_per_page' =>6,'paged'=>$paged)); ?>


<!-- custom standard loop -->
<?php if ($wp_query->have_posts()) : while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="header">
<h2 class="entry-title"><a href="<?php the_permalink(); ?>"> <?php the_title(); ?></a></h2>
</header>
<section class="entry-content">
<?php if (has_post_thumbnail()) { the_post_thumbnail();} ?>
<p>

<!--wp_trim_words, this function trim the content. in this case limit for 60 words -->
<?php echo wp_trim_words(get_the_content(), 60); ?>

<!--add read more link -->
<a href="<?php the_permalink() ?>">Read More &raquo;</a> </p>
</section>
</article>
<?php endwhile; ?>


<!-- pagination, (this works because in the above loop we passed 'paged' -->
<div class="nav-next alignleft"><?php previous_posts_link( '&laquo; Newer Posts' ); ?></div> <div class="nav-previous alignright"><?php next_posts_link( 'Older Posts &raquo;' ); ?></div>
<?php endif; ?>

Friday, April 18, 2014

Dialog i43 (inno i5) usb Driver Download

It was a pain to find the driver for this device, After spending a day. found it :)

How to install the driver:
After complete the download, right-click MyComputer (or "This PC" :P) you will see the missing drivers with the exclamation marks (4 or less), right click each of them and choose "update driver software" -> "choose form the the local driver" and locate the folder that you extracted!

leave a comment!