Archive for the 'Tips' Category
Friday 29 July 2005 @ 2:49 pm
We have seen the news 2 days ago, of the launching of Microsoft’s Windows® Genuine Advantage (WGA), which requires Windows users to validate their copies of Windows before being allowed to download any updates from Microsoft. Yesterday, this “compulsory” check has been cracked within 24 hours after launching !!
Here is how it works,
Continue Reading »
Trick To Crack Windows Genuine Advantage
Wednesday 6 July 2005 @ 6:53 pm
Ok, as promise to a blog buddy of mine, Kah Soon, that I will share a small plugin to show the post count in each for the the article as shown in the picture below.
Please follow the steps:-
- 1. Download Top10 plugin for WordPress.
- 2. Login to your database, either through phpMyAdmin or telnet.
Create a table called mostAccessed, by using this SQL query:-
[sql]create table mostAccessed
(
postnumber int not null,
cntaccess int not null,
primary key(postnumber),
unique id(postnumber)
);[/sql] - 3. Find this line to your index.php:-
[php]
< ?php if (have_posts()) : while (have_posts()) : the_post(); ?>
[/php]
Then add the following code below the line:-
[php]< ?php if ($id > 0) { add_count($id); } ?>[/php] - 4. Look for this line in index.php too:-
[php]< ?php the_title(); ?>[/php]
Then, add the following code below the line:-
[php]< ?php if (!( is_home() || is_page() )) { ?>
< ?php show_post_count($post->ID,
$before=”This post has been viewed “,
$after=” times since “); ?>
< ?php } ?>[/php] - That’s it. :)
The post count will appear whenever the single page of the article is shown.