308 posts
  • Has referred 1+ members
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+5 more
brainbuzzmedia
says

Holy crap themeblvd, thank you so much. That worked. The frustrating this is that I understood everything you were doing because I tried several other php methods and knew how they were supposed to work, yet still couldn’t get them going for some reason. Very generous of you.

1035 posts
  • Has referred 500+ members
  • Has sold $500,000+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Became a Top 20 Author of the Month
+8 more
ThemeBlvd
says

Holy crap themeblvd, thank you so much. That worked. The frustrating this is that I understood everything you were doing because I tried several other php methods and knew how they were supposed to work, yet still couldn’t get them going for some reason. Very generous of you.

No problem. I’m glad it helped.

296 posts themesdepot.org
  • Had an item that became a weekly top seller
  • Has sold $250,000+ on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Won a Most Wanted contest
+7 more
ThemesDepot
says

.....

Thank you for your code, i was looking for something like this, i was testing it on one of my themes (localhost)

it works but once i click the link i get this message

Warning: Cannot modify header information – headers already sent by (output started at /path/to/my/theme/template-home-default.php:7) in /path/to/my/theme/header.php on line 24

on line 7 i’ve got

get_header();

and on line 24

setcookie(‘theme-demo-style’, $demo_style);

what’s wrong ?

606 posts Themes and Graphics
  • Has been part of the Envato Community for over 5 years
  • Has referred 50+ members
  • Has sold $250,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+10 more
Bebel
says

Blank space before ”<?” ?

296 posts themesdepot.org
  • Had an item that became a weekly top seller
  • Has sold $250,000+ on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Won a Most Wanted contest
+7 more
ThemesDepot
says

Lol yeah now it works :D today i’m a bit sleepy >_>

1 post
  • Has been part of the Envato Community for over 3 years
busker
says

Could anyone give me a quick hand with this please? Or am I a year too late?! Thanks

438 posts
  • Has been part of the Envato Community for over 3 years
  • Has sold $5,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Sells items exclusively on Envato Market
Pixelous
says

i use my own code. with form, selects and plain and simple php post and cookies. why not try simple?

One year past, but I am new at TF, so, duotive, could you please share with your code or maybe I could buy it or maybe it will be cool if you upload it to Code Canyon and another developers could buy it?

by
by
by
by
by
by