Posts by Smartik

1334 posts
  • Has been part of the Envato Community for over 4 years
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 50+ items on Envato Market
+4 more
Smartik
says

Github private repository.

1334 posts
  • Has been part of the Envato Community for over 4 years
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 50+ items on Envato Market
+4 more
Smartik
says

Thanks Andrei.

Yes everything is simple there but, copy/paste of that function won’t help to everyone, there are some styling, custom functionality which are controlled from theme customizer.

Will my theme be rejected if I don’t put that functionality into the plugin, please answer…

Add the minimal styles to the plugin in a static file, for settings use WP Settings API and if you want to allow the user to change the style you can use the customizer as a bonus.

1334 posts
  • Has been part of the Envato Community for over 4 years
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 50+ items on Envato Market
+4 more
Smartik
says

Flat design doesn’t mean pale design, you should already know that.

  • All colors looks desaturated, you must review the color scheme.
  • Typography. Nothing more to say here, this is a hrad part and you have to learn it.
  • Some text block are not correctly aligned vertically.
  • White space is good, only if it used crrectly. For example to separate large blocks.
  • If is totalk about the pricing table screenshot, the first what pops up is the double border. Make it pixel perfect.
  • My advice is to avoid using animations and border-radius everywhere. Think twice before using them and the result will be exceptional.

All the best. Andrei.

1334 posts
  • Has been part of the Envato Community for over 4 years
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 50+ items on Envato Market
+4 more
Smartik
says

OK, thanks everyone. This Post LIke System is integrated into the theme, the main function which displays likes is called in index.php within the loop. I’m wondering how could other themes use this system if it can be shown only by calling function within the theme?

Well, why I said WP hooks? Because it makes simple to extend any plugin or theme.

Separate this functionalitty in a plugin and make sure it works. Once you got that done add the following line in your theme where the likes button should be.

do_action('theme_likes_area');
Now in your functions.php add this:
function add_to_theme_likes_area(){
    if( function_exists('pl_likes') ){
       echo pl_likes(); 
   }
}
add_action('theme_likes_area', 'add_to_theme_likes_area');

Replace: pl_likes with the function name that calls your plugin.

If I would like to use your plugin in a nother theme all what I’ll have to do is to copy the code above in my theme and add do_action in the place where I need the likes button. Or change add_action and the function to avoid theme modification. like this:
function add_to_theme_likes_area($content){
    if( function_exists('pl_likes') ){
       return $content . pl_likes(); 
   }
   else{
       return $content;
   }
}
add_filter('the_content', 'add_to_theme_likes_area');

See, everything is possible and simple, you just make sure that your plugin is theme independent.

Cheers, Andrei.

1334 posts
  • Has been part of the Envato Community for over 4 years
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 50+ items on Envato Market
+4 more
Smartik
says

A plugin of course. :) And use WP hooks to integrate it.

1334 posts
  • Has been part of the Envato Community for over 4 years
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 50+ items on Envato Market
+4 more
Smartik
says


Ahh, almost forget. Try to optimize the preview image, to be max 50-60kb.
Andrei, how to optimize preview that is about 590×4000 with many images inside to 50-60k ? Can this PNGGauntlet do such magic ? I compressed my JPG images to 5-6 quality but obviously it’s not enough cos they are more than 600-700k.
Well, when I said 50-60k I’m refering to preview images that are on TF, 590×300. For an image like your(590×4000) it is normal to have this size, but you know, some authors do not optimize images at all and a 590×300 can have more than 200k or one like your, more than 2mb.

PNGGauntlet, is just an example and sometimes it does magic compresing some images up to 80% if is png, for jpg it sometimes has no effect, output have the same size, sometimes 10-15%.

For GraphicRiver or other marketplaces where the height of preview image has no limits, you can show a smaller image in preview and other upluoad as screenshots. Then when the file is approved you can embed them in the item description. – <img src="http://3.s3.envato.com/files/ITEM-ID/002-image.jpg" />

So your images will be hosted on the same server as the preview.

Anyway, image optimization is important, but not as much as the title and the begin of item description. ;)

1334 posts
  • Has been part of the Envato Community for over 4 years
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 50+ items on Envato Market
+4 more
Smartik
says

Ahh, I’m so tired to write something right now, but I make a quick list anyway.

A page in this marketplace is like a page in your website, verything is important. But here abviously you can’t adjust everything, just the description and other small things.

1. The most important part is not here, in marketplaces, it is outside and it is the backlinks. If a page does not have backlinks, it doesn’t matter how much you optimize it, you’ll never get a good rank in search engines. Start with this first. Even a simple link in your website is important.

Before I go to point 2 I should say something about SEO. Search engines read the text on top and from the end after this go and search for important keywords like headings, bold text and links… and images. Also in these regions SE looks first for important tags.

2. As I said SE, first of all start reading text like an human, but it looks for what is the most important. In our case the first text it get is the title, this means that the title should contain the a few keywords that will describe the item, also this text is used as page title, so it’s very important to not include general keywords.

3. When SE detects more text it will index only the begin, 1-2 paragraphs and after this the headings, bold text and links. For description is very important to begin with something that describe the actual item and not something general.

4. Hightlight(make bold using strong tag) the keywords from description that you think are special. Again avoid general words.

5. These long, big sized images from description will kick you from SE because the page will load slower compared to others. A simple fix for this is to optimize them(using a tool like this http://pnggauntlet.com/ ) and write text when possile.

6. Tags are a very important part. You should choose them carefully. On product page they have a special role because they are the last part SE will see. This is bassically the text on bottom(at t he end). The footer I guess it is ignored because it has the tag ‘footer’ and it is the only tag.

Ahh, almost forget. Try to optimize the preview image, to be max 50-60kb.

Here are a lot of things to be said, but these have the highest priority.

Cheers, Andrei.

1334 posts
  • Has been part of the Envato Community for over 4 years
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 50+ items on Envato Market
+4 more
Smartik
says
I do something like this in a metabox class, here is a bit modified for custom fields that you already know the key. Ex: key1, key2
function smk_save_post_meta( $post_id ) {

    //Your fields
    $fields = array('key1', 'key2');

    //Check my fields for new data and save them, if empty delete.
    foreach ($fields as $value) {
        if( isset($value) ){

            $new = false;
            $old = get_post_meta( $post_id, $value, true );

            if ( isset( $_POST[$value] ) )
                $new = $_POST[$value];

            if ( isset( $new ) && '' == $new && $old ) 
            {
                delete_post_meta( $post_id, $value, $old );
            }
            elseif ( ! $new || !isset( $new ) ) 
            {
                delete_post_meta( $post_id, $value, $old );
            }
            elseif ( isset( $new ) && $new != $old ) 
            {
                update_post_meta( $post_id, $value, $new );
            }
            elseif ( ! isset( $old ) && isset( $new ) ) 
            {
                add_post_meta( $post_id, $value, $new );
            }

        }
    }

}
add_action( 'save_post',  'smk_save_post_meta');
1334 posts
  • Has been part of the Envato Community for over 4 years
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 50+ items on Envato Market
+4 more
Smartik
says

...and the question is why are they still live and making money?
Because nobody have reported them or the author has the permission to use them. If you saw that somebody is using your work(in this case photos) without your permision, than you can send a DMCA notice to Envato support and they will be down within a few hours.
1334 posts
  • Has been part of the Envato Community for over 4 years
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 50+ items on Envato Market
+4 more
Smartik
says

Hello, Do you have any suggestions for a rookie author?

Be creative. Build your framework, it doesn’t matter on what it is based, just make sure to organize things that you may use in other projects.

by
by
by
by
by
by