562 posts You Reap What You Saw
  • Elite Author
  • Sold between 50 000 and 100 000 dollars
  • Has been a member for 4-5 years
  • Author had a Free File of the Month
  • Exclusive Author
  • Referred between 200 and 499 users
  • Bought between 1 and 9 items
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!

293 posts
  • Author had a Free File of the Month
  • Sold between 10 000 and 50 000 dollars
  • Indonesia
  • Referred between 200 and 499 users
  • Bought between 10 and 49 items
  • Has been a member for 3-4 years
  • Exclusive Author
amatyr4n says

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

2566 posts Put a Donk On It
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • United Kingdom
  • Exclusive Author
  • Attended a Community Meetup
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Referred between 200 and 499 users
+5 more
ThemeProvince says

Looks cool amatyr4n. :)

@revaxarts – Thanks dude great addition :)

98 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 50 and 99 users
  • Romania
  • Sold between 10 000 and 50 000 dollars
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

2566 posts Put a Donk On It
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • United Kingdom
  • Exclusive Author
  • Attended a Community Meetup
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Referred between 200 and 499 users
+5 more
ThemeProvince says

@zauan Sure.

169 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 200 and 499 users
  • Sold between 5 000 and 10 000 dollars
CallMePaul says

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

2952 posts
  • Attended a Community Meetup
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
  • Bought between 100 and 499 items
  • Contributed a Blog Post
  • Elite Author
  • Exclusive Author
+5 more
DDStudios says

Using it right now and loving it.

Is there some way we can send some donation?

2566 posts Put a Donk On It
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • United Kingdom
  • Exclusive Author
  • Attended a Community Meetup
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Referred between 200 and 499 users
+5 more
ThemeProvince says

@DDStudios Emailed you.

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

2952 posts
  • Attended a Community Meetup
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
  • Bought between 100 and 499 items
  • Contributed a Blog Post
  • Elite Author
  • Exclusive Author
+5 more
DDStudios says

Donation sent ;)

2024 posts
  • Elite Author
  • Author had a Free File of the Month
  • Has been a member for 4-5 years
  • Austria
  • Exclusive Author
  • Interviewed on the Envato Notes blog
  • Envato Studio (Microlancer) Beta Tester
+3 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;
});
by
by
by
by
by
by