Kampung Toys




WordPress: PDF and PPT Viewer (plugin for embedding PDF file)

Category : Wordpress · No Comments · by Feb 24th, 2013

Recently searching for a way to embed PDF file directly into a post, which can help readers to eliminate the step of download actual file on local machine and open it with dekstop application such as Adobe Reader.

Then i found a plug-in called “PDF and PPT Viewer“, a WordPress plugin for embedding documents to posts, created by Vladimir Kadalashvili. the plug-in make use of web-based Google Docs Viewer that automatically opens linked PDF, PowerPoint and Word documents. Although this plugin hasn’t been updated in over 2 years, but it still works perfectly.

Step to install PDF and PPT Viewer plug-in:

  • Go to WordPress Dashboard -> Plugins -> Add New
  • Search “PDF and PPT Viewer”
  • install and activate it at “Installed Plugins”
  • After activated, you can now start writing a new post, insert a PDF file to your post by “Add Media”, then upload the needed file. Insert the code as below, input the correct link at the “href” to embed the PDF, you can manage the size by changing the value for width and height.

    WordPress: Display only summary on Home Page

    Category : Wordpress · No Comments · by Jan 27th, 2013

    Wanted to show blog post’s first paragraph or summary on the main page, tried on Dashboard -> Setting -> Reading -> For each article in a feed, show: “Summary”, but doesn’t work as I expect because it only shows summary on feeds reader (ex: Google reader, Netvibes).

    After done web search, it cannot be done in a universal way throughout the blog, gotto insert one by one with 3 simple methods to do so: Excerpt at “Screen Options:, The more tag in “Visual” Editor and The more tag “Text” Editor.

    i) Excerpt

    To enable it, go to Dashboard -> Add New Post -> “Screen Options” -> tick “Excerpt”. A new column will be added under post editor (where you write content), write in summary or just copy-paste paragraph from your blog entry and it will display in main page.

    Check out WordPress official support, Excerpts: http://goo.gl/Gf0Fm

    WordPress: “Theme Test Drive” plug-in

    Category : Wordpress · No Comments · by Jan 16th, 2013

    Got to change the WordPress blog theme from time to time to keep it look fresh, else i’ll be bored to the same old look. Installing a new theme will not visually present properly right-away for my blog, because the blog is previously customized by editing the PHP files and CSS stylesheets according to my preferences. Means the more you edited previously, the more time you’ll need to work on new theme’s codes.

    There are two methods that i done previously,

    i) active new themes directly and work it on there without caring the undone side will be seen by visitors
    ii) install another WordPress on sub-domain, copy everything in another folder (which now a totally mess) and work over there, then copy the edited new theme files to the root folder.

    Now, the 3rd method, easiest way that recently found is by install a WordPress plaugin “Theme Test Drive“. This is one of the coolest free WordPress plugin i ever used other than Crayon Syntax Highlighter.

    To install the Theme Test Drive plug-in, head to links below,

  • Official Site: VLADIMIR PRELOVAC “Theme Test Drive
  • WordPress Plugin Directory: Theme Test Drive
  • install from your WordPress “Dashboard” -> “Plugins” -> “Add New” -> Search “Theme Test Drive” -> “Install Now”
  • After done installed, choose the new theme to edit and click “Enable Theme Drive” as image above. While Theme Test Drive is enable, the “current” theme will be set as default, stay untouch and display to visitors like it used to. Now, you can start messing with new theme’s codes without worry on affecting the “current” display.

    Here are the modification can be made while Theme Test Drive enabled:

  • Menus & Widgets (for preview only)
  • Themes option
  • Themes template .php files (ex: index.php, header.php or single.php)
  • CSS Style Sheets
  • After done modification and satisfied with new look, disable “Theme Test Drive” and activate new themes at “Appearance”-> “Themes”. Do take note there will be 2 more left to touch up right after the new theme activated:

    i) Menus – There will be no header menu or global menu, so you need to set it at “Appearance” -> “Menus”
    ii) Widgets – it will be empty, so you need to add-in desired widgets and arrange it at “Appearance” -> “Widgets”


    Zamzar: Convert PDF file to Image online

    Category : Tech News, Wordpress · No Comments · by Jan 12th, 2013

    Just figured it out on how to convert a PDF (Portable Document Format) file to image, so i can share the content easier in WordPress blog. Instead of using software, i tried a Free Online Conversion Services, dubbed as Zamzar.

    Steps:

    i) head to official site http://www.zamzar.com. Choose your file to upload, type of conversion file (ex: .BMP, .PNG or .JPG) and key in your email address.

    ii) after conversion process done (takes within 30 seconds for my 3 pages PDF file), converted image links will be email to the address you keyed-in.

    iii) Click on the link from the email and it will redirect to a site where you can download all converted images.

    For more methods other than zamar.com, refer to “How to Convert PDF to Image Files“.