562 posts You Reap What You Saw
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has been part of the Envato Community for over 5 years
  • Contributed a free file of the month
+4 more
Bluz says

This is really nice Phoenix! Maybe I can improve my switcher with your code :)

one suggestion:

One advantage of “iframeing” from your own domain is you don’t have problems with the same origin policy. So why don’t use this advantage?

Normally a customer clicks around a few times on your livepreview (as he should). But after reaching a location and he tries to remove the iframe it takes him back to the homepage again.

It’s really annoying (at least for me) but this could fix this:

$('.remove_frame').delegate('a','click',bind(function(){
    top.location.href=$('#iframe')[0].contentWindow.location.href;
    return false;
});

This will simply will use the current location of the iframe and use it as the top.location

Nice addition, Thanks!

294 posts
  • Had an item featured on Envato Market
  • Contributed a free file of the month
  • Has referred 200+ members
  • Has sold $10,000+ on Envato Market
+4 more
amatyr4n says

Whoa, many thanks Phoenix! I’ll be using this now ;)

2588 posts Put a Donk On It
  • Elite Author: Sold more than $75,000 on Envato Market
  • Sells items exclusively on Envato Market
  • Made it to the Authors' Hall of Fame
  • Has sold $250,000+ on Envato Market
+10 more
ThemeProvince says

Looks cool amatyr4n. :)

@revaxarts – Thanks dude great addition :)

233 posts
  • Pulled off some great moustache to raise money or awareness for Movember Australia
  • Made it to the Authors' Hall of Fame
  • Has sold $40,000+ on Envato Market
  • Sells items exclusively on Envato Market
+4 more
ThemeFuzz says

Hi Phoenix !

Can i modify your script to make it more like my zn loader script (use a database for easy management), but with a lot more features like style switcher,theme type (html, wordpress,etc) and several other stuff i had in mind for my script?I will post it here for everyone to use.

Best regards, Stefan

2588 posts Put a Donk On It
  • Elite Author: Sold more than $75,000 on Envato Market
  • Sells items exclusively on Envato Market
  • Made it to the Authors' Hall of Fame
  • Has sold $250,000+ on Envato Market
+10 more
ThemeProvince says

@zauan Sure.

169 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 500+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+1 more
CallMePaul says

Thanks so much Phoenix! I will use it on my next theme!

2952 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 200+ members
  • Has sold $125,000+ on Envato Market
  • Had an item featured in an Envato Bundle
+10 more
DDStudios says

Using it right now and loving it.

Is there some way we can send some donation?

2588 posts Put a Donk On It
  • Elite Author: Sold more than $75,000 on Envato Market
  • Sells items exclusively on Envato Market
  • Made it to the Authors' Hall of Fame
  • Has sold $250,000+ on Envato Market
+10 more
ThemeProvince says

@DDStudios Emailed you.

@all If your feeling generous you can email me to donate. :) Thanks again.

2952 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 200+ members
  • Has sold $125,000+ on Envato Market
  • Had an item featured in an Envato Bundle
+10 more
DDStudios says

Donation sent ;)

2196 posts
  • Located in Europe
  • Made it to the Authors' Hall of Fame
  • Had an item featured on Envato Market
  • Participated in a focus group or interview to improve the user experience on Envato Market
+10 more
revaxarts says
ups, found a little mistake in my snippet. Here’s the correct one:
$('.remove_frame').delegate('a','click',function(){
    top.location.href=$('#iframe')[0].contentWindow.location.href;
    return false;
});

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by