Introducing Item Switcher...

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"
	  )

);

  1. 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.

  1. Thats it, easy peasy :smiley:

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.

:wink:

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

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

Firsh said

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

What browser?

Phoenix said
Firsh said

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.

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

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.

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

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

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

@all Thanks :slight_smile:

Important

I forget to mention in step 3 of installation that you should change line 22 to your own url in the redirect.php file. But leave the php bit and ?theme=

Moved to ThemeForest on request.

Nice work Phoenix!

And a tip (more like reminder) from my side: don’t forget to add your referral to the Purchase link :wink:

Obviously, without the spaces (forum removes ref. links):


$theme_array = array (

array ("id" => "adventure",
       "url" => "http://labs.burntfeathers.com/adventure",
	   "themeforest" => "http://themeforest.net/item/adventure-a-unique-photography-wordpress-theme/155571 ? ref = yourusernamehere"
	  )

);

I know a few people have dismissed the idea of using this but I would strongly recommend it just for the referrals it creates.

EugeneO said

I know a few people have dismissed the idea of using this but I would strongly recommend it just for the referrals it creates.

It wouldn’t affect registered members here, so why not? :slight_smile: Many sites that showcase themes/templates link directly to the demo itself. A good amount of traffic would even make the hosting of the demo sustainable :slight_smile:

LOL. I forget about that. But thats something you can just add easily on the themeforest part of each array. By the way ive updated the download with cross browser fixes.

I never got around to making my switcher, this saves me bothering now! Nice work buddy!

Scott

George I can’t thank you enough for sharing this. You are awesome !

i’ll use this for sure!:slight_smile:
thanks mate :slight_smile:

@Paz - Much appreciated. :slight_smile:

@all - Thanks :slight_smile: