By

Roundcube database error connection failed

The error “roundcube database error connection failed” indicates the MySQL password for Roudcube isn’t correct. You can usually fix this by running

however this does not always work since /var/cpanel/roundcubepass may not have the correct MySQL password for the user roundcube, the configuration file at  /usr/local/cpanel/base/3rdparty/roundcube/config/db.inc.php however always has the correct password and you can use the command below to fix the issue:

By

cPanel-libgcc_s.so.1 must be installed for pthread_cancel to work

If you ever see the error “libgcc_s.so.1 must be installed for pthread_cancel to work” for cPanel, this is most likely due to cPanel running out of memory.

You can check the current memory being used by running the command free -tm, you should see an output like the one below:

total used free shared buffers cached

Mem: 1850 1172 677 0 43 559
-/+ buffers/cache: 569 1280
Swap: 2047 0 2047
Total: 3898 1172 2725

To increase the memory limit for cPanel, go to Tweak Settings (in WHM) then search for “Max cPanel process memory”, you can then increase this to say 512MB from the default 256M, then click on Save.

By

Contact Tab

Contact tab enables you to add a contact form to WordPress which is accessed by clicking on a tab on the left, right, top or bottom of any page/post.

Features:

  • Includes five fields- name, email , subject, textbox for message, captcha code
  • Form slides out when tab is clicked and slides in after successful completion of form
  • Captcha to prevent spam (captcha is optional)
  • Ajax form submit (no webpage reload)
  • Appearance of Contact tab such as text color, background color etc can be customized to suit your theme/template
  • Email sent can be forwarded to an additional email address besides the admin email account (default)
  • Social networking Buttons-add links to your Facebook, Twitter, LinkedIn and Google Plus profiles/page to the form
  • Redirect after form submit
  • View and Reply to messages from Contact Tab right from within your WordPress Dashboard ( Pro Version)

and so much more……….. Below are screenshots

Want to see the plugin in action, take it for a spin, click on the “Contact Us” link to the left of this page

Compare Contact Tab Versions

With the Pro version, WordPress is basically turned into an email client where you can view and reply to messages sent through Contact Tab.
Below are more screenshots:
View Messages

messages

Reply to Message:

Download free version at http://wordpress.org/extend/plugins/contact-tab/

Pro Version will soon be available on CodeCanyon.net

By

This file is too big. Files must be less than 1500 KB in size.

When installing a theme or plugin for WordPress Multisite you may run into the error “This file is too big. Files must be less than 1500 KB in size.”. By default the maximum upload file limit for WordPress Multisite is set to 1500 KB. To increase this setting navigate to Network Admin -> Settings -> Network Settings and under Uploads Settings, change the “Max upload file size” limit.

By

Gmail-Delete All Unread Emails

I had thousands of unread emails in my inbox but deleting this 20 at a time will be tedious and will take  forever.  I thought, what if I could delete all at a go, that will be great right ? But I did not know how, after searching Google for a while I found , eureka there is was:

  • Type ‘is:unread(without quotes) in the Gmail search box, and hit Enter or click on the search button
  • Click ‘select all‘, this will highlight all unread emails in the current view
  • Click ‘Select all conversations that match this search’ 
  • Now click delete and this should delete all unread emails

If you want to specify  unread emails say in inbox only, you can use ‘is:unread label:inbox‘, for another label simply replace the text after ‘label:’

By

Find Joomla 2.5 Version

You can usually find the Joomla version in the libraries/joomla/version.php or libraries/joomla/version.php for Joomla 1.5 and 1.7 respectively, however this has changed with 2.5.

The version is located in the file libraries/cms/version/version.php

With bash, you can use the code below to find the version for any Joomla installation,

[code lang="bash"]egrep -i  '\$release|\$dev_level' libraries/joomla/version.php includes/version.php libraries/cms/version/version.php 2>/dev/null [/code]

Note that this command has to be run from the Joomla root folder.

By

Account Creation Status: failed Your system has run out of available ip addresses, or you do not have permission to use any more ip addresses.

If you get this error while creating an account in cPanel, most likely you are trying to use a package that has a dedicated IP assigned or you manually checked ‘dedicated IP’ on the account creation page while your server does not have any dedicated IPs.

To resolve this either edit the package (if the issue is with the package) under Packages >> Edit a Package in WHM or uncheck ‘dedicated IP’ option.

You can also manually edit the package file , if you have root access to the server. The file is located at /var/cpanel/packages/packagename (where packagename is the name of the package).

change this line

[code]IP=y[/code]

to

[code]IP=n[/code]

By

WP Float

WP Float Update, 1.8
New Feautes

  • Display on Archive Pages
  • WP Float now loads in the footer instead of the header

WP Float Update, version 1.7

New Feautes

  • Option to use WP Float as a plugin under Settings >> WP Float Options instead of just a widget
  • Option to center item when using shortcode

WP Float Updated, version 1.3

New Features

  • WP Float is now a widget instead of just a plugin, this makes it easy for your to run more than one instance of WP Float on any page or post
  • Shortcode support has been added and this is easily added to a post using a tinyMCE button
  • You can now control the speed of the float item
  • Display WP Float on only posts from a particular category

When the plugin is installed , you will see a new icon is added to the WordPress tinyMCE editor,  you can click on that icon to add the shortcut for WP Float, below are screenshots ( first image- shortcode button, second image-shortcode popup )

The shortcode looks like this

  • type – whether the item is float or fixed
  • location – the top/bottom position of the item
  • align – the left/right position of the item
  • center-set alignment from center
  • offsetlocation – the distance (in pixels) from top/bottom, if left blank this is automatically set to 0
  • offsetalign – the distance(in pixels) from left/right, if left blank this is automatically get to 0
  • speed – how fast or slow the float item moves and does not apply to fixed items , the default speed is 1500 if left blank
  • width- the width of the item , you can leave this blank and this will be set automatically

You can manually type text or HTML between the [wp_float][/wp_float] tags or you can select text or HTML you already have for the post/page and this will automatically insert it into the shortcode.

The same options apply for the widget , below is a screenshot

Demo-As you scroll on this page, you will notice there is an image that follows as you scroll.

Download the lastest version of WP Float at http://wordpress.org/extend/plugins/wp-float/

Scroll some more

and more

Update * – Check out jFloat for Joomla 1.5, 1.7 & 2.5 http://webwiki.co/jFloat

By

Add a color Picker with JSColor to your WordPress plugin

WordPress comes with the color picker Farbtastic , however I find JScolor simpler and easier to use.
To use JSColor , first head over to http://jscolor.com/download.php to download it.

To include the javascript , jscolor.js you can use admin_enqueue_scripts (if you want the color picker to load on the admin side) or use wp_enqueue_scripts (if you want the color picker on the client side). In the example below , I have this loading on the admin side.

[code]
//Load Color Picker JS
function jscolor(){
$path = plugins_url('/my-plugin/');
wp_enqueue_script('jscolor',$path. 'jscolor/jscolor.js');
}
add_action('admin_enqueue_scripts','jscolor');[/code]

Note that you have to replace my-plugin with the name of the folder for your plugin.
Also the other files for jscolor should be in the same folder as the jscolor.js file.

Now add an input field,

[code]
<input class="color {adjust:false}" type="text" name="my_plugin_colorpicker" value="&lt;?php echo $options['my_plugin_colorpicker']; ?>" />
[/code]

You can download a sample plugin with color picker options here

A screenshot of the colorpicker is below:

For more examples of how to use jscolor, check demo page.













Contact Us