Posts by Smartik

887 posts
  • Author had a Free File of the Month
  • Microlancer Beta Tester
  • Has been a member for 3-4 years
  • Exclusive Author
  • Europe
  • Most Wanted Bounty Winner
  • Bought between 50 and 99 items
  • Referred between 50 and 99 users
  • Sold between 10 000 and 50 000 dollars
Smartik says
Use version_compare.
if ( version_compare(get_bloginfo('version')), 3.9 '>=' ) {
887 posts
  • Author had a Free File of the Month
  • Microlancer Beta Tester
  • Has been a member for 3-4 years
  • Exclusive Author
  • Europe
  • Most Wanted Bounty Winner
  • Bought between 50 and 99 items
  • Referred between 50 and 99 users
  • Sold between 10 000 and 50 000 dollars
Smartik says

For SEO. The title is the first that show up in search engines.

887 posts
  • Author had a Free File of the Month
  • Microlancer Beta Tester
  • Has been a member for 3-4 years
  • Exclusive Author
  • Europe
  • Most Wanted Bounty Winner
  • Bought between 50 and 99 items
  • Referred between 50 and 99 users
  • Sold between 10 000 and 50 000 dollars
Smartik says

Use global $wp_version; instead..
Try to use globals as little as possible. Use them when you really need them. Here you have no reasons why you should one or another, use any of them, but I would choose the function.

Anyways, this snipet is not perfect and it will return true on if both are numbers(integers or floats) but what if the WP version is a alpha release or RC or whatever? Here must be used native php version_compare() because it know how version naming works.

$version = get_bloginfo('version');
if( version_compare( $version, 3.9, '<' ) ) {
   //do the magic here
}
887 posts
  • Author had a Free File of the Month
  • Microlancer Beta Tester
  • Has been a member for 3-4 years
  • Exclusive Author
  • Europe
  • Most Wanted Bounty Winner
  • Bought between 50 and 99 items
  • Referred between 50 and 99 users
  • Sold between 10 000 and 50 000 dollars
Smartik says

I have Windows 7 and I don’t want to switch to Win8, no reasons for that. I tried it on my brother’s computer and I don’t like it. I mean it is beatifull and offer a good experience for simple users, but for programers like me it is not productive. I’m one of the people who don’t care about fancy effects, just speed. :)

Also, I like ubuntu, but I still prefer Windows for many reasons(one of them is the large variety of softwares).

887 posts
  • Author had a Free File of the Month
  • Microlancer Beta Tester
  • Has been a member for 3-4 years
  • Exclusive Author
  • Europe
  • Most Wanted Bounty Winner
  • Bought between 50 and 99 items
  • Referred between 50 and 99 users
  • Sold between 10 000 and 50 000 dollars
Smartik says

First of all the design looks outdated, those shadows, darck gradients and pixelated borders.
Second is the typography, line height, font size, font style and color. You should review all this.
And third is the general spacing, some elements have too much space between them and other lack this space, you should fix this and apply a global ule for all common elements.

My advice is to use this as base and start the design from scratch.

887 posts
  • Author had a Free File of the Month
  • Microlancer Beta Tester
  • Has been a member for 3-4 years
  • Exclusive Author
  • Europe
  • Most Wanted Bounty Winner
  • Bought between 50 and 99 items
  • Referred between 50 and 99 users
  • Sold between 10 000 and 50 000 dollars
Smartik says


is this ranking (that appears on fun fact) based on the number of items sold or the volume of $ales ?
?
Is this: http://themeforest.net/author/top_authors?site=all&squad=all
887 posts
  • Author had a Free File of the Month
  • Microlancer Beta Tester
  • Has been a member for 3-4 years
  • Exclusive Author
  • Europe
  • Most Wanted Bounty Winner
  • Bought between 50 and 99 items
  • Referred between 50 and 99 users
  • Sold between 10 000 and 50 000 dollars
Smartik says


Tips added. Bassically there is the typography text size non-uniform, contrast for contact form and the dotted texture opacity. Cheers.
Thank you so much. I will consider them, but about logo I see many theme use them! is it serious problem?
Now they are not allowed anymore and any theme that use theme is rejected. Some of them magically pass the review process, but I guess this is just reviewers fault.
887 posts
  • Author had a Free File of the Month
  • Microlancer Beta Tester
  • Has been a member for 3-4 years
  • Exclusive Author
  • Europe
  • Most Wanted Bounty Winner
  • Bought between 50 and 99 items
  • Referred between 50 and 99 users
  • Sold between 10 000 and 50 000 dollars
Smartik says

Tips added. Bassically there is the typography text size non-uniform, contrast for contact form and the dotted texture opacity. Cheers.

887 posts
  • Author had a Free File of the Month
  • Microlancer Beta Tester
  • Has been a member for 3-4 years
  • Exclusive Author
  • Europe
  • Most Wanted Bounty Winner
  • Bought between 50 and 99 items
  • Referred between 50 and 99 users
  • Sold between 10 000 and 50 000 dollars
Smartik says

If we talk about HTML templates and this template is already approved on ThemeForest, then look at its extended license price, this will be the best price for both, seller and buyer, IMO.

887 posts
  • Author had a Free File of the Month
  • Microlancer Beta Tester
  • Has been a member for 3-4 years
  • Exclusive Author
  • Europe
  • Most Wanted Bounty Winner
  • Bought between 50 and 99 items
  • Referred between 50 and 99 users
  • Sold between 10 000 and 50 000 dollars
Smartik says

Try to separate the PHP and HTML as much as possible. @tommusrhodus example is something that should be used, or(my preference) make your own personal templating engine and pass only variables from ‘main’ file to a ‘view’ file(it’s a long story, google for MVC).

Avoid using too many echo’s. As other said, they should be used in functions, but this can be done in a better(recommended) way. Just for your info, a bit offtopic but anyway:
<?php
function example($echo=true){
    $output = '<div class="stats">';
    $output .= '<span>text</span>';
    $output .= $example;
    $output .= '</div>';
    if($echo){
       echo $output;
    }    
    else{
       return $output;
    }
}
?>
by
by
by
by
by
by