100 posts Norris & Tanita
  • Elite Author
  • Contributed a Tutorial to a Tuts+ Site
  • Sold between 100 000 and 250 000 dollars
  • Has been a member for 4-5 years
  • Exclusive Author
  • Referred between 10 and 49 users
  • Bought between 10 and 49 items
  • Envato Studio (Microlancer) Beta Tester
  • Europe
ThemeVillage says

Hey fellow Wordpress Theme authors – I’m wondering how do you guys generate your Dummy content? I saw that some authors give out the full demo and replace all the images with a blank black square. Do you do a regex replace on the export file or is there a plugin for that ? Cheers, Norris.

3449 posts Ruben Bristian
  • Most Wanted Bounty Winner
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 6-7 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Won a Competition
  • Bought between 100 and 499 items
  • Exclusive Author
  • Referred between 500 and 999 users
+5 more
KrownThemes says

Hey fellow Wordpress Theme authors – I’m wondering how do you guys generate your Dummy content? I saw that some authors give out the full demo and replace all the images with a blank black square. Do you do a regex replace on the export file or is there a plugin for that ? Cheers, Norris.

I copy all the images offline, process them with a free image processor software, put them back online.

100 posts Norris & Tanita
  • Elite Author
  • Contributed a Tutorial to a Tuts+ Site
  • Sold between 100 000 and 250 000 dollars
  • Has been a member for 4-5 years
  • Exclusive Author
  • Referred between 10 and 49 users
  • Bought between 10 and 49 items
  • Envato Studio (Microlancer) Beta Tester
  • Europe
ThemeVillage says

So you have a separate installation that has a “blank” demo?

3449 posts Ruben Bristian
  • Most Wanted Bounty Winner
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 6-7 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Won a Competition
  • Bought between 100 and 499 items
  • Exclusive Author
  • Referred between 500 and 999 users
+5 more
KrownThemes says

So you have a separate installation that has a “blank” demo?

Well, up until recently i’ve done this. But lately i have kept the same server and just replaced the files (in the .xml file). You can simply upload the changed images in a different place and modify all occurencies of the initial domain (uploads folder) in the xml file.

100 posts Norris & Tanita
  • Elite Author
  • Contributed a Tutorial to a Tuts+ Site
  • Sold between 100 000 and 250 000 dollars
  • Has been a member for 4-5 years
  • Exclusive Author
  • Referred between 10 and 49 users
  • Bought between 10 and 49 items
  • Envato Studio (Microlancer) Beta Tester
  • Europe
ThemeVillage says

So basically a regex search & replace…. mkei. I was hoping there was a “better” solution, but whatever works I guess :)

3449 posts Ruben Bristian
  • Most Wanted Bounty Winner
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 6-7 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Won a Competition
  • Bought between 100 and 499 items
  • Exclusive Author
  • Referred between 500 and 999 users
+5 more
KrownThemes says

So basically a regex search & replace…. mkei. I was hoping there was a “better” solution, but whatever works I guess :)

I use the word regex only for complicated solutions. If you have to search “http://demo.krownthemes.com/wp_3/wp-content/uploads/” to “http://demo.krownthemes.com/dummy_content/wp_3/uploads/”, it shouldn’t take you more than 10 sec :)

491 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Won a Competition
  • Referred between 1000 and 1999 users
  • Author had a Free File of the Month
  • Author had a File in an Envato Bundle
  • Bought between 10 and 49 items
+3 more
pixelentity says

Note that if you replace a value stored into a serialized object, the import file will break (unless both values have the same length)

100 posts Norris & Tanita
  • Elite Author
  • Contributed a Tutorial to a Tuts+ Site
  • Sold between 100 000 and 250 000 dollars
  • Has been a member for 4-5 years
  • Exclusive Author
  • Referred between 10 and 49 users
  • Bought between 10 and 49 items
  • Envato Studio (Microlancer) Beta Tester
  • Europe
ThemeVillage says

Yeah I don’t want to keep that many “black” images on my server. I would prefer to upload a single image, and then regex replace everything with that. (for example ”/some-author-Pretty_Photo09-300×300.jpg” with “black-300×300.jpg” ). Hopefully that should work.

But thanks for the idea.

By the way – in case my regex fails – what’s the “free tool” you’re using ?


Note that if you replace a value stored into a serialized object, the import file will break (unless both values have the same length)

Now that sucks. I assume you’re doing it like Ruben ?

3449 posts Ruben Bristian
  • Most Wanted Bounty Winner
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 6-7 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Won a Competition
  • Bought between 100 and 499 items
  • Exclusive Author
  • Referred between 500 and 999 users
+5 more
KrownThemes says

^ http://www.photoscape.org/ps/main/index.php .. you can also do it in PS if you have a copy (i don’t)

Note that if you replace a value stored into a serialized object, the import file will break (unless both values have the same length)

Even if you don’t replace strings in serialized data, they will still not import. So if you set up a separate “import wp install” and don’t touch the .xml file at all, you still won’t be able to import the serialized data (not without extra code of course).

491 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Won a Competition
  • Referred between 1000 and 1999 users
  • Author had a Free File of the Month
  • Author had a File in an Envato Bundle
  • Bought between 10 and 49 items
+3 more
pixelentity says

Even if you don’t replace strings in serialized data, they will still not import. So if you set up a separate “import wp install” and don’t touch the .xml file at all, you still won’t be able to import the serialized data (not without extra code of course).

why not ?

by
by
by
by
by
by