Posts by marketslk

42 posts
  • Has been part of the Envato Community for over 2 years
  • Sells items exclusively on Envato Market
marketslk says

No, it’s not. It’s a very, very bad design. But that doesn’t matter, because your product is not the “design” but the Video Player. Go and customize a ThemeForest template. Shouldn’t take more than 30 minutes. Focus on building your product, and not making a design for it.

Thankx

42 posts
  • Has been part of the Envato Community for over 2 years
  • Sells items exclusively on Envato Market
marketslk says

with a 1280×800 background image that leaves 2/3 of the page in black (I’ve 1920×1200) is difficult to see any design ;)

Thankx

42 posts
  • Has been part of the Envato Community for over 2 years
  • Sells items exclusively on Envato Market
marketslk says

It’s hard to read and the background cuts off on my screen. I’m not a fan of the transparency either. The only thing I like is the animation when the page first loads. Just my 2 cents.
Thanks!
42 posts
  • Has been part of the Envato Community for over 2 years
  • Sells items exclusively on Envato Market
marketslk says
http://www.marketslk.com/auved/

Is it a good design?

42 posts
  • Has been part of the Envato Community for over 2 years
  • Sells items exclusively on Envato Market
marketslk says

I have a developed a web player blog . Can someone review its suitability to go premium. It is at http://www.marketslk.com/auved/ this can be easily use to do a webcast of set of videos with social blogging facility with each video. Grateful for everyone`s review.Thanks!.

42 posts
  • Has been part of the Envato Community for over 2 years
  • Sells items exclusively on Envato Market
marketslk says
Does n`t allow $name = “A.J. D’ avilla-”;





Isn’t there a space character in between the name? if so then it should be allowed as well I guess.
/^[a-z]+[a-z\s\.\'-]*[a-z\.]+$/i
When I put a number is still pass.

That’s weird, I’ve tried using number and and surely it won’t pass the regex since there’s no number matches in the pattern

<?php
$name = "A.J. D'avilla 1234567890";
$expression = "/^[a-z]+[a-z\s\.\'-]*[a-z\.]+$/i";

if(!preg_match($expression, $name1)){
    echo "The string contain illegal characters";
} else {
    echo "The string passed";
}
?>
see the output:
The string contain illegal characters

Try $name = “George”;

It’s print out The string contain illegal characters instead of the string passed.

Sorry my bad it’s typo, $name1 in preg_replace() should be $name. “George” will pass of course because if you see the pattern it will match any words more than 1 chars

<?php

$name = "George";
$expression = "/^[a-z]+[a-z\s\.\'-]*[a-z\.]+$/i";

if(!preg_match($expression, $name)){
    echo 'The string contain illegal characters';
} else {
    echo 'The string passed';
}

?>

Pal don`t waste time trying several.Please use this is 100% assured .Experiment this.what you need is achieved and test
I believe whitelist approach is much simpler to implement and easier to read and to be maintained later than blacklist approach here, because with blacklist way you must include ALL the possibility of illegal characters in your pattern instead of what only allowed chars
42 posts
  • Has been part of the Envato Community for over 2 years
  • Sells items exclusively on Envato Market
marketslk says
The only way is reverse logic the ‘if’ statement.
<?php
$name = "A.J. D' avilla";
$expression = "/[0-9!@#$%^&*_~`<>,?:;\"|()=+{}\[\]€\/\\\]/";

if(preg_match($expression, $name)) { // i reversed if logic to make the problem easier 
    echo "invalid characters";
    }else{
   echo $name;// string fit to output 
}
?>

I have tried your example but numbers are still accepted. Something is incorrect. Also * and / are passing. They should not.
42 posts
  • Has been part of the Envato Community for over 2 years
  • Sells items exclusively on Envato Market
marketslk says
This is further developed .please try these place your bad characters anywhere in the name .I`m sure that this will be the final solution
<?php
$name = "A.J. D' avilla";
$expression = "/[0-9!@#$%^&*_~`<>,?:;\"|()=+{}\[\]€\/\\\]/";

if(preg_match($expression, $name)) { // i reversed if logic to make the problem easier 
    echo "invalid characters";
    }else{
   echo $name;// string fit to output 
}
?>
42 posts
  • Has been part of the Envato Community for over 2 years
  • Sells items exclusively on Envato Market
marketslk says
Pal don`t waste time trying several.Please use this is 100% assured .Experiment this.what you need is achieved and test
<?php
$name = "A.J. D' avilla";
$expression = "/[0-9!@#$%^&*_~`<>,?:;\"|()=+{}\[\]€\/]/";

if(preg_match($expression, $name)) { // i reversed if logic to make the problem easier 
    echo "invalid characters";
    }else{
   echo $name;// string fit to output 
}
?>

42 posts
  • Has been part of the Envato Community for over 2 years
  • Sells items exclusively on Envato Market
marketslk says
Don`t be afraid i reverse logic the problem .Sorry for my first unclear answares.
<?php
$name = "A.J. D' avilla";
$expression = "/[0-9!@#$%^&*_~`<>,?:;\"|()=+{}\[\]€\/]/";

if(preg_match($expression, $name)) { // i reversed if logic to make the problem easier 
    echo "invalid characters";
    }else{
   echo $name;// string fit to output 
}
?>
by
by
by
by
by
by