How to Restore DLL Files on Your Computer

0

Posted by touhid | Posted in PC Troubleshooting | Posted on 28-02-2010

Missing Dll files that somehow disappear can cause your computer to act in mysterious ways, such as not shutting down properly. A means to determine this is a system disk scan which comes with Norton anti-virus. For instance Norton has a good ‘Windoctor’ that makes repairs automatically. It is suggested that if one removes Norton anti virus for a free virus program, they retain Norton Utilities/ WinDoctor and Speed Disk for defragging.

Always run a virus check on anything one downloads before they open it. Remove programs that one doesn’t use or need. Too many programs clog up the machine. Do periodic defragging. Anytime one downloads or removes programs, music etc. plus the normal creation of files, it fragments the computer and slows and confuses its proper function. “When system files are overwritten, such as .sys, .dll, .ocx, .ttf, .fon, and .exe files, system performance becomes unpredictable, programs behave erratically, and the operating system fails”.

If it is determined that one has one or more missing Dll file(s) that can be identified, they can be replaced. Find on say Google, a site that offers free Dll file downloads. Look for missing Dll. Download and Unzip the file to desktop. For this you need Winzip or WinRAR to extract file.

Now one needs to put the Dll file in proper folder. A way to find the program from which the Dll file is missing is by entering it into Google. For instance

q_encutl.dll+program’. Take for example the message as may be posted by ‘Norton Windoctor’: “C:\Program Files\Common Files\InstallShield\Professional\RunTime\0701\

Intel32\DotNetInstaller.exe” cannot access a necessary file, “mscoree.dll.” Download the Dll file mscoree.dll.

By using ‘Windows Explorer’, one would in this case go to Local Disk [C] Program files/Common Files/Install Shield/ and look through the sub-folders until one would find in this case Professional/Run Time/Intel32. In this case one could cut and past or copy Dll into that Folder. By copy instead of cut and paste, one can put the still desktop Dll download into something like ‘My Documents’ as an extra copy.

Or you can go to the “run” menu. Type “SFC” it will search for missing files or altered one. If this doesn’t work type the missing .dll manually overwrite it with your windows cd.

GD Star Rating
loading...
GD Star Rating
loading...
  • Share/Bookmark

Fixed: WordPress Language Translator Plugin

0

Posted by touhid | Posted in wordpress | Posted on 12-02-2010

This language translator plugin and widget for WordPress is based solely on Trevors old translator widget plugin. His WordPress Translate plugin worked fine for me up to the latest WordPress version release. Starting with WordPress 2.2, there was a complication that caused his great plugin to break. The main problem was that one of the functions in WP 2.2 was named translate which caused an error when the plugin was activated.

I have simply changed or fixed the function name, making this “WordPress Translator Plugin” work with WordPress version 2.5 and beyond. I am providing the fixed version for others in hopes that I might help those who are having trouble with the original WordPress Translate Widget plugin on newer WordPress versions.

WordPress Language Translator Screenshot:

WordPress 2.2.2 Language Translator plugin

How to install the WordPress Language Translator Widget:

  1. Download the Language Translator Plugin.
  2. Unzip the plugin and upload the (translate folder and it’s contents) to your /wp-content/plugins/ directory.
  3. Log in to your WordPress Admin Panel, navigate to the plugins section and activate the Language Translator Plugin.
  4. From the Admin Panel, navigate to Presentation -> Widgets and drag and drop the ltranslate widget into the position where you would like it to appear in your sidebar.
  5. Save the changes and go view your site :)

Note: If you would like to place the translator outside of the sidebar, for example in your header.php, footer.php etc, simply add the code <?php ltranslate(); ?> where ever you would like to call in the plugin.

The Reason for this plugin:

Errors a person might encounter with the old translate plugin when upgrading:

Fatal error: Cannot redeclare translate() (previously declared in /wp-includes/l10n.php:20) in /wp-content/plugins/translate/translate.php on line 13
Warning: Missing argument 1 for translate() in /wp-includes/l10n.php on line 20
Warning: Missing argument 2 for translate() in /wp-includes/l10n.php on line 20

GD Star Rating
loading...
GD Star Rating
loading...
  • Share/Bookmark

WordPress – Show more than 15 recent posts

0

Posted by touhid | Posted in wordpress | Posted on 12-02-2010

This tutorial explains how to modify the WordPress recent posts sidebar widget entry to display more than 15 recent posts. By default the number of posts to show is (at most 15). Maybe you want to display 20 recent posts? Or more? I’ll show you how.

WordPress – How to display or show more than 15 recent posts:

  1. Using your favorite FTP application, navigate to your wp-includes directory on your server and copy widgets.php to your PC
  2. Using Notepad ++ open widgets.php and find the following:
  3. $title = empty($options['title']) ? __(’Recent Posts’) : $options['title'];
    if ( !$number = (int) $options['number'] )
    $number = 10;
    else if ( $number < 1 )
    $number = 1;
    else if ( $number > 15 )
    $number = 15;

  4. Change 15 to 20 to display up to 20 posts
  5. Next find the first occurance of the following:
  6. at most 15

  7. Change to at most 20
  8. Save your widgets.php file and upload overwriting the old file on the server
  9. Now when you go to your Design-> Widgets section, you’ll have the ability to set your recent posts to the max value you set in step 3.
GD Star Rating
loading...
GD Star Rating
loading...
  • Share/Bookmark

WordPress – Show more than 15 recent posts

0

Posted by touhid | Posted in wordpress | Posted on 12-02-2010

This tutorial explains how to modify the WordPress recent posts sidebar widget entry to display more than 15 recent posts. By default the number of posts to show is (at most 15). Maybe you want to display 20 recent posts? Or more? I’ll show you how.

WordPress – How to display or show more than 15 recent posts:

  1. Using your favorite FTP application, navigate to your wp-includes directory on your server and copy widgets.php to your PC
  2. Using Notepad ++ open widgets.php and find the following:
  3. $title = empty($options['title']) ? __(’Recent Posts’) : $options['title'];
    if ( !$number = (int) $options['number'] )
    $number = 10;
    else if ( $number < 1 )
    $number = 1;
    else if ( $number > 15 )
    $number = 15;

  4. Change 15 to 20 to display up to 20 posts
  5. Next find the first occurance of the following:
  6. at most 15

  7. Change to at most 20
  8. Save your widgets.php file and upload overwriting the old file on the server
  9. Now when you go to your Design-> Widgets section, you’ll have the ability to set your recent posts to the max value you set in step 3.
GD Star Rating
loading...
GD Star Rating
loading...
  • Share/Bookmark

How to make a WordPress Page or Post use a different sidebar

0

Posted by touhid | Posted in wordpress | Posted on 12-02-2010

How to add a second sidebar widget for use on separate pages or posts: The following tutorial covers the process of building a second widget compatible sidebar that can be used on specific pages or posts. Using a different WordPress sidebar for pages and posts allows the user to display different sidebar content on a given post or page. In addition, the user could add the duplicate sidebar widgets plugin to add the same widget content to both sidebars.

Adding a second widget compatible sidebar to WordPress:

This process assumes your using Kubrick or a theme based on Kubrick. Please backup any files before editing.

  1. Navigate to Design ->Theme Editor from your WordPress admin panel
  2. Open the functions.php file from the theme file list and find:

    if ( function_exists(’register_sidebar’) )
    register_sidebar(array(
    ‘before_widget’ => ‘<li id=”%1$s”>’,
    ‘after_widget’ => ‘</li>’,
    ‘before_title’ => ‘<h2>’,
    ‘after_title’ => ‘</h2>’,
    ));

  3. Replace it with the following code, then update the file:

    if ( function_exists(’register_sidebar’) )
    register_sidebar(array(’name’=>’Sidebar 1′,));
    register_sidebar(array(’name’=>’Sidebar 2′,));

    You should now have two widget compatible sidebars that show up under Design-> Widgets.
    Next we will add a Sidebar template to use for Sidebar 2 and then call it into the page or post we wish to have display the new sidebar.

  4. Download the sidebar2.zip file and upload the sidebar2.php within to your WordPress wp-content/themes/yourthemename/ directory
  5. Now to use Sidebar 2, simply replace the following code found in any of your template files. For example (Single Post) single.php

    <?php get_sidebar();  ?>

  6. With the following code:

    <?php include(”sidebar2.php”);  ?>

    Note: You can build a custom template that specifically calls in Sidebar 2 and elect to use it whenever you write a page that you wish to use this alternate Sidebar.

GD Star Rating
loading...
GD Star Rating
loading...
  • Share/Bookmark