Posts by ChapterThemes

647 posts
  • Has been part of the Envato Community for over 3 years
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
ChapterThemes says

The following situation:

I have an array with possible matches to find:

var posmatches = [ "one", "two", "three", "four" ];

This is example content i want to search in.

Suspendisse vestibulum [one] dignissim quam. Integer vel augue.
Phasellus nulla purus, [four attr="whatever"] interdum ac,
venenatis non, varius rutrum, leo. Pellentesque habitant morbi tristique
senectus et netus et malesuada fames.

I’m trying to find matches between square brackets, including everything until the closing bracket.

So i want a result as following:

0: [one]
1: [four attr="whatever"]

If i need to only find 1 certain match doing the same thing i already have the following working code:

var regmatch = "\\[four(.*?)\\]";
var re = new RegExp( regmatch, "img" );
var matches = content.match( re );

How could i do the same thing, but then let it put some sort of OR statement in place of ‘four’ in the regex, but matching the rest like in the regex.

I’ve tried the following for use in regex…

var ormatches = posmatches.join("|");

..., and this works using it inside the regex, but i want to include the square brackets like above.

Anyone? :)

647 posts
  • Has been part of the Envato Community for over 3 years
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
ChapterThemes says


Just stop discussing this. It’s the worst idea ever to do such thing.
I don’t think it’s a bad idea. If you purchase any product, you have 2 years warranty. After that you need to pay for all repairs yourself. Why would we have to support themes for free forever?

That’s the whole point: you DON’T have to!

And IF you DO want to offer it: What’s better than get your clients to pay you directly?

There’s a serious lack of business thinking here.

647 posts
  • Has been part of the Envato Community for over 3 years
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
ChapterThemes says

I think it’s close. With the right improvements it surely will be accepted.

BTW – you should change your icon, wouldn’t want adobe going after you ;)

647 posts
  • Has been part of the Envato Community for over 3 years
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
ChapterThemes says

You honestly just sound very bitter

Why would you say that? I’m just having a little fun :)

647 posts
  • Has been part of the Envato Community for over 3 years
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
ChapterThemes says
647 posts
  • Has been part of the Envato Community for over 3 years
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
ChapterThemes says

Don’t Stop ‘Til You Flat Enough :)

647 posts
  • Has been part of the Envato Community for over 3 years
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
ChapterThemes says

Heeaaalll the wooooorrrrlllddd – make it a Flatter plaaaaceeeee….

647 posts
  • Has been part of the Envato Community for over 3 years
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
ChapterThemes says

haha yeah, i do like the actual design though.. it’s just about the naming.

But your right about not ignoring a hype.

I’ll think of some theme and call it something with “Flat” in it :)

Maybe i’ll do a michael jackson remix as well “Who’s Flat!”, you know i’m Flaaaaattt i’m flaaaaat you know it!

647 posts
  • Has been part of the Envato Community for over 3 years
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
ChapterThemes says

10 mins. for such a small file is really long. Sounds like something is not functioning well or so..

Sometimes i got way larger files that import in a minute or something.

Maybe the importing images from the server where it gets it from is delaying everything?

647 posts
  • Has been part of the Envato Community for over 3 years
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
ChapterThemes says

Just stop discussing this. It’s the worst idea ever to do such thing.

by
by
by
by
by
by