2509 posts Put a Donk On It
  • Exclusive Author
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Attended a Community Meetup
  • Referred between 100 and 199 users
  • Contributed a Tutorial to a Tuts+ Site
+5 more
ThemeProvince says

Hi there, Today I created a file switcher that might be of use the envato community. Basically it removes the preview frame automatically. Then replaces it with a custom item switcher.

Demo

For a demo view one of my items (i cant post links here sorry).

Download

Here is the source code: http://labs.burntfeathers.com/themeselector/themeselector.zip

Installation (Very Easy)

1. Firstly unzip and place the folder on your server. Place it in a directory like this: http://themes.yoursite.com/ – Though make sure its a new directory with nothing else in so you can use the root of the folder as the url.

2. Open index.php and you will see a php array called $theme_array. You dont have to know php. For every item you create a new array like below:


$theme_array = array (

array ("id" => "adventure",
       "url" => "http://labs.burntfeathers.com/adventure",
       "themeforest" => "http://themeforest.net/item/adventure-a-unique-photography-wordpress-theme/155571" 
      ),
array ("id" => "attique",
       "url" => "http://labs.burntfeathers.com/attique",
       "themeforest" => "http://themeforest.net/item/attique-a-stylish-multi-purpose-wordpress-theme/168724" 
      )

);

3. In your item settings (Click Edit on your item page) set the preview url to this:

http://themes.yoursite.com/redirect.php?theme=yourthemename

So if you defined the theme in the php array $themearray as “adventure” then replace yourthemename above with adventure.

4. Thats it, easy peasy :D

Attribution

One more thing this is open source so you can change the logo, marry it or whatever. No attribution required.

Hope you find this useful.

;)

375 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 3-4 years
  • United Kingdom
  • Referred between 100 and 199 users
  • Bought between 1 and 9 items
  • Exclusive Author
EugeneO says

Thanks for this. I’ll probably be using it.

1666 posts Time is what you desire most, but waste carelessly.
  • Sold between 100 000 and 250 000 dollars
  • Elite Author
  • Bought between 50 and 99 items
  • Referred between 100 and 199 users
  • Grew a moustache for the Envato Movember competition
  • Exclusive Author
  • Has been a member for 4-5 years
  • Microlancer Beta Tester
  • Europe
+1 more
Firsh says

I don’t get it can you post a screenshot? I looked at your items but what is the difference?

2509 posts Put a Donk On It
  • Exclusive Author
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Attended a Community Meetup
  • Referred between 100 and 199 users
  • Contributed a Tutorial to a Tuts+ Site
+5 more
ThemeProvince says

I don’t get it can you post a screenshot? I looked at your items but what is the difference?

What browser?

1666 posts Time is what you desire most, but waste carelessly.
  • Sold between 100 000 and 250 000 dollars
  • Elite Author
  • Bought between 50 and 99 items
  • Referred between 100 and 199 users
  • Grew a moustache for the Envato Movember competition
  • Exclusive Author
  • Has been a member for 4-5 years
  • Microlancer Beta Tester
  • Europe
+1 more
Firsh says


I don’t get it can you post a screenshot? I looked at your items but what is the difference?
What browser?

FF 3 .0.16 I know I know. Gonna check it with my chrome then. OK I see it on a TF item of yours. But can it be used so that there is no frame because of the deeplinking of flash templates? That’s the main reason people don’t like the frame at all. Anyway, nice solution.

2509 posts Put a Donk On It
  • Exclusive Author
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Attended a Community Meetup
  • Referred between 100 and 199 users
  • Contributed a Tutorial to a Tuts+ Site
+5 more
ThemeProvince says

Thx for reporting ive fixed the firefox error and updated the download.

ProgressionStudios
ProgressionStudios Recent Posts
Threads Started
221 posts
  • Attended a Community Meetup
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Author had a Free File of the Month
  • Exclusive Author
  • Interviewed on the Envato Notes blog
  • United States
+4 more
ProgressionStudios says

This is awesome Phoenix and thanks for sharing it! I don’t think I’ll be using it myself but I’m sure a lot of authors will find it useful and be using it in the near future.

1947 posts Do the Needful
  • Envato Staff
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Has been a member for 3-4 years
  • United States
  • Support Staff
  • Author had a Free File of the Month
  • Microlancer Beta Tester
  • Contributed a Blog Post
+7 more
JamiGibbs Staff says

You’re a star, Phoenix! Another bookmark for me! :)

1564 posts Chris Robinson
  • United States
  • Sold between 250 000 and 1 000 000 dollars
  • Elite Author
  • Has been a member for 5-6 years
  • Author had a File in an Envato Bundle
  • Referred between 500 and 999 users
  • Author had a Free File of the Month
+5 more
contempoinc says

Nice work, been thinking about implementing something similar on mine for quite awhile. Thanks for sharing!

1141 posts
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
KarmaThemes says

That’s way too cool! I’ve always loved that at Orman’s themes. Thanks for sharing!!

by
by
by
by
by
by