I use Opera!

Wordpress SEO theme

Here is theme used on this blog as I promised. Sulumits Retsambew wp theme is based on Seo Simple by Internet Wealth Master, but I changed a lot of things, so that it fits my purpose. It is easily possible that this is most optimized wordpress seo theme ever.

Main characteristics of this improved theme are:

-         content close to the body (in original theme content is even closer)
-         valid xhtml/css
-         optimized h1 h2 h3 tags. Frontpage of the site has name of the site in h1, and blogposts in h2, blogposts pages have title of blogposts in h1.
-         works in Opera 10, Opera 9, Firefox, IE 6, IE 7, IE 8, Chrome and other browsers
-         lightweight (no images except logo, everything is done by using css)
-         static frontpage option with latest post on it
(to activate this set your Wordpress to use some page as frontpage then assign the Sulumits page template to that page, modify code of the sulumits.php to show all posts or to show posts only from certain category)

Some things are hard coded in to the template, so remember to check my code if you don’t have a clue how to change something.

DOWNLOAD SULUMITS RETSAMBEW SEO THEME

wordpressseotheme 500x429 Wordpress SEO theme

Posted in Sulumits Retsambew, wordpress — Hellas @ 1:42 pm @ August 18, 2009

Change number of recent posts in Wordpress to more then 15

I just worked on some site where I needed to have more then 15 recent posts listed in wordpress sidebar. However when I changed value in the default wordpress widget it did not worked. After researching little bit I found solution for Wordpress 2.8.
What you need is to do little hack on some wordpress core files. You can see example at above mentioned site.
(more…)

Posted in wordpress — Hellas @ 2:10 pm @ July 9, 2009

Sulumits Retsambew Content Management Systems

I decided to check first twenty Sulumits Retsambew entries for which CMS they use.

1. sulumitsretsambew.org – wordpress
2. sulumitsretsambew.biz – joomla
3. sulumitsretsambewno.com – wordpress
4. sulumitsretsambew.com – static page
5. webmasterstimulus.org – wordpress
6. mygulfcoastbeachteam.com/sulumits-retsambew/ – wordpress
7. slideshare.net/guestce90ce/sulumits-retsambew – web 2.0
8. pedeee.com – wordpress
9. sulumits—retsambew.blogspot.com – blogger
10. tadkashadka.com – wordpress (more…)

Posted in Uncategorized — Hellas @ 10:35 pm @ June 10, 2009

Wordpress SEO paging navigation

I was not satisfied how my blog paging looks like, and I realized on the SEO side it would be better that I have more links to pages available, so search engine spiders can hit the articles with the less steps. So I found this guy http://robertbasic.com/blog/wordpress-paging-navigation/ and his code. It works flawless and it is right what I needed. However since I like to have my pages validated, and his code break validation I decided to fix it. You need to add this code into your link-template.php which is located in the wp-includes folder (p.s. you can find wordpress pager plugin but it is also not valiadated). (more…)

Posted in wordpress — Hellas @ 10:52 am @ May 2, 2009

Latest post in my Wordpress theme frontpage

I just did some upgrades on my Sulumits Retsambew theme. I added latest blog post to the static frontpage. I wanted to have combination of static page with dynamic content. So my fixed text is always above with the latest blog post from some category. Since I lost an hour with that I thought maybe you would have use of it.

Here is how to do it:

First thing if you use static page is to make template for that specific page. So first make the template let say frontpage.php. On the beginning of the code add this:

<?php
/*
Template Name: Front page
*/
?>

Then just copy all content from page.php bellow above code in frontpage.php.
Now we have customized code for our page. Go to Wordpress -> edit pages, on assign this template to our given page. Usually frontpage page.

Now we well add Latest post to our frontpage.

This code

<?php query_posts('showposts=1&cat=23'); ?>   
<?php while (have_posts()) : the_post(); ?>   
<div class="post"> 
<h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<div class="storycontent">
<?php the_excerpt(); ?>
<div class="date">
<div class="meta">
<?php _e("Posted in "); ?> <?php the_category(',') ?> &#8212; <?php the_author() ?> @ <?php the_time() ?> @ <?php the_date('','',''); ?> <?php edit_post_link(__('Edit This')); ?>
</div>
</div>  
</div>
</div>  
<?php endwhile; ?>

will show last post title, link, and default number of words from last post. Put it on needed position in your frontpage.php. Make wanted tweaks in css for post, storycontent, date, meta or just replace this with equilalents from your template. Also you can wrap all this in another div and gave the latest post special look.

Now we want to change the amount of text that the excerpt() function return us!

In your theme function.php file add this:

add_filter('excerpt_length', 'my_excerpt_length');
function my_excerpt_length($length) {
return 150; }

This code will modify excerpt and instead of default 100 it will show 150 words from given post.

You will notice that excerpt function has missing „Read more“ link at the end, and instead it will show [...].
You will replace [...] with the „Read more“ link with this code:

function excerpt_ellipse($text) {
   return str_replace('[...]', ' <a href="'.get_permalink().'">Read more...</a>', $text); }
add_filter('the_excerpt', 'excerpt_ellipse');

Add it also into your theme functions.php.

Be careful, to not add any space to the beginning or the end of the functions.php or you will get the „Cannot modify header information – headers already sent function.php wordpress“ error.

That is it. To see how this work check my Sulumits Retsambew frontpage. Notice that I show posts only from category that is related to the Sulumits Retsambew.

Posted in Sulumits Retsambew, wordpress — Hellas @ 10:59 am @ April 28, 2009

iframe worms: xtrarobotz.com, superbetfair.cn, lotmachinesguide.cn

I found that lot of people sites (joomla, wordpress, smf forum, static ones) get infected with these versions of iframe viruses too. Probably they are same variants of goooogleadsence.biz, cutlot.cn, google-ana1yticz.com, mixante.cn worms. You can read my problems with this worms in one of my previous posts, also there is bunch of useful comments there… My server antivirus detects them all as exploit.html.iframe-6. As it is known these viruses infect your pc, and take ftp password from your ftp programs like filezilla and then infect every index file on you server that you have right to write.
Steps to clean this pest are to download latest antivirus software and clean your pc. NOD32 2.7 with latest definitions or Avast free will clean this worms from your pc. Then change all cpanel and user accounts passwords. After that, bring your clean backup of public html files. If your site is too big for bringing backup files there is removal tool you can download it here: iframe worms removal tool.
Thanks to Dragos for this. He left it in my comment for previous thread about this pest.

Be careful by using this script. I destroyed all my .php and .html files with it on one of my sites. First download your site offline and try this on some standalone php mysql apache server (wamp, lamp, jsas).  Also your antivirus will maybe detect this file as a virus since it contain line bellow with the instruction which virus it needs to remove.

iframe worm removal tool

(more…)

Posted in Uncategorized — Hellas @ 1:38 pm @ April 18, 2009