Our blog, keeping you up-to-date on our latest news.

 

My First WordPress Plugin: Slick HTML Sitemap

March 4, 2012 at 10:36 am | Blog, Download | 11 comments

 
My First WordPress Plugin: Slick HTML Sitemap

It is my first wordpress plugin. This simple plugin adds a slick HTML (Not XML) sitemap of you site by entering the shortcode [slick-sitemap] in the page or post content. This simple plugin is configurable in the dashboard. Settings include the “menu”, “column”, “utility menu”. You can select a menu you created. It utilize the SlickMap CSS for the layout. It’s suitable for most web sites – accommodating up to three levels of page navigation and additional utility links. It is compatible to all web browsers, even including IE 6.

This plugins is perfect for those who use WordPress as a CMS.
Read more…

 

Get a Random Post From a Category

February 26, 2012 at 10:51 am | Blog | No comment

 

When i was trying to implement a new feature for corporattica theme, i wanted to get a random post from a category. btw, the new feature is to display a static picture for pages except for the home page, as users found that the sliders in normal pages disturbing.

At the beginning, i think about the most straight forward way, to know the number of posts in the category, and then to use the rand() function of PHP to get a number between 0 and the count. And then use the “offset” of wordpress query parameter to show the random post. However, i did not find the function to get the count of posts in a specific category.

And then, i was thinking further and i switched to another direction. Although i can not the post counts in the category, i can always the get first post in the category. If the first post in the category is random for each query, then my requirements fulfilled. We can order the queried posts randomly, and the first post in this list is also random. And the best part is, wordpress has already had this feature.

$args = array( 'category'=>'featured','numberposts' => 1, 'orderby' => 'rand' );
$rand_posts = get_posts( $args );

Sometimes the best way is not the straight forward way. And now the corporattica theme has the new feature of displaying a random static picture for pages other than Home Page.

 

Redbusiness Theme Installation Manual

December 29, 2011 at 9:56 am | Blog | 7 comments

 

Thank you for choosing my theme. If you have any questions that are beyond the scope of this manual, please feel free to comment or to email via my contact form.

A) Getting Started

In order to begin installing Redbusiness theme. You need the WordPress version above 3.0, the latest one is better. Here is the download URL. Once you downloaded and set it up, You are ready to go.

Installation
Upon downloading the zip file, you will unzip the file. Upload this folder to your themes folder at: your WordPress installation root directory /wp-content/themes

Log into WordPress administration and click on the Appearance >> Themes tab. After that is done, activate the theme as you would activate any other theme.


B) Home Page options

Read more…

 

Christmas and New Year Special Deals

December 24, 2011 at 4:04 am | Blog | No comment

 
Christmas and New Year Special Deals

Christmas is on the corner, and new year is approaching. Thanks my dear friends for your support during the past year! Pengbos.com would like to present you special deals on my theme and service.

From Dec 24th 2011 to Jan 2ed 2012
– wordpress theme with regular license (no credit links)Red Business for $ 5 instead of $ 17. Buy it from the shop: pengbosShop


From Dec 24th 2011 to Jan 2ed 2012
– sell on us for free instead of 10% fee. You can sell your digital goods (downloadable) on pengbosShop without payment. Submit your digital goods details to me through the contact form. Once it is confirmed by Admin, your good will appear on the PengbosShop.

I sincerely hope that you find our offer valuable goods and services to you, and perhaps you can use the theme to build a website for your client. Please keep in mind that this special deal is valid only for 10 days and then will be offered at the normal price.

[updated on Jan 3rd]
The offer is ended, and the template and services are back to normal prices. Thanks for your attention.

 

Premium Single Page Portfolio WordPress Theme: Red Business

December 17, 2011 at 12:57 pm | Blog, Download, Featured, Theme | No comment

 
Premium Single Page Portfolio WordPress Theme: Red Business

Red Business is a free wordpress theme. It is designed as a single page portfolio theme. Red is the most favorite color in China, and it means prosperous, wealthy and passionate. people who run their own company, always wish their business prosperous. so in china, people wish their business in red.
The features of this theme:
* Single Page
* grids based layout
* elegant coda slider.
* fancyzoom enabled portfolio
* SEO friendly Read more…

 

Corporattica Theme: Version 0.2

September 20, 2011 at 5:48 pm | Announcement, Blog, Download, Featured, Theme | 66 comments

 
Corporattica Theme: Version 0.2

First of all, thank you all like this theme. And I also received a lot emails complaining that this theme is not so friendly to wordpress plugins. There are thousands of plugins in the wordpress community, and most of them are very helpful to the wordpress users. So a rule of thumb for a good wordpress theme should be plugin friendly besides the design (of course, design is also the major rule to choose a theme).

In the new version, i fixed this significant issue by including the wp_head() call in the header.php. Besides this, the issues mentioned in the prior blogs like Read more…

 

URGENT: Security Vulnerability in Timthumb

September 6, 2011 at 4:49 pm | Blog | No comment

 

Recently, I was made aware of a security vulnerability within the Timthumb image resizing php script, which is utilized in pengbos.com wordpress themes for dynamic image resizing, including the most favorate Aurelius and Corporattica. It is also widely used in other WordPress themes and plugins.

This security vunlnerability may lead to hacker’s attack to the wordpress site. So it is very urgent to fix this issue.

The good news is the author of TimThumb and the author of WordThumb have worked together to release TimThumb v2 which fixes these security issues.

Now all wordpress themes from Pengbos.com are patched with the latest TimThumb v2, you can download any of them, and reinstall theme to fix this issue.

You can also replace the timthumb manually by yourself like described below.

1. download the latest timthub script from http://timthumb.googlecode.com/svn/trunk/timthumb.php

2. replace the timthumb.php in the scripts folder in the theme location with the latest version.

That’s it.

Please upgrade the timthumb as soon as possible!!

If you have any more questions, please don’t hesitate to send me an email, i will try my best to help.

 

Corporattica Theme: How to Enable Lightbox in Post

August 6, 2011 at 3:59 am | Blog | 4 comments

 

Corporattica theme has already embodied with Lightbox feature by Fancyzoom. For example, images in the bit sections in the home page and portfolio page.

But, how to enable the lightbox feature in your own post too? Here is the demo http://demo.pengbos.com/corporattica/?p=13

First, let’s look at the javascript, which enables the fancyZoom, in the header.php

		$(document).ready(function() {
			$('div.photo a').fancyZoom();
                }

This will add the Zoom Effect to any a tag in the div tag classed with photo, and will show content relating to the id referenced in the href of the a tag.
Read more…

 

Corporattica Theme: Can’t Send Email Bug Fixed

July 27, 2011 at 2:05 am | Announcement, Blog | 4 comments

 

A Corporattica user reported that the contact form is broken, as he cannot send messages. This is a bug in the js code.

To fix this bug:

1. Just download the theme again, I have already uploaded the fixed version. Replace the theme files with the latest files.

2. You can also fix it by yourself follow the steps:

  • go to js\contact.js
  • go to line 62. Change the “#contact_form” to “#contacts”
  • $.post(theme_template_dir+"/send_email.php", $("#contacts").serialize(),function(result){
  • go to line 66. Change “#button” to “#send_message”.
  • 	 $('#send_message').remove();

    All set!!

     

    A Bug in JQuery Latest Release(v1.6.2)

    July 16, 2011 at 7:33 pm | Blog | 2 comments

     

    One of My colleagues asked for help on a JavaScript feature. He had several input boxes, and a button. By default, all input boxes are not editable, only when the user clicks the button. It is a very simple feature, and he had already implemented. The problem was, he could not get it work in IE. (IE 8 support is a “must” in the company) .
    Read more…

     

    next page